#Snaplock retention maximum: unspecified

1 messages · Page 1 of 1 (latest)

sullen kindle
#

Hi team, im getting an error while creating a volume with snaplock type enterprise: "msg": "Error creating volume BBBBBPR08: calling: storage/volumes: got {'message': 'The duration value "unspecified" is invalid. Valid values are \\"infinite\\", \\"unspecified\\" or the duration specified in ISO 8601 format. The value when specified in ISO 8061 format for retention period must be in seconds (PT0S - PT65535S), minutes (PT0M - PT60M), hours (PT0H - PT24H), days (P0D - P36500D), months (P0M - P1200M), years (P0Y - P100Y).', 'code': '918657', 'target': 'snaplock.retention.maximum'}."

While modules is called with the following:
"snaplock": {
"append_mode_enabled": null,
"autocommit_period": "none",
"privileged_delete": null,
"retention": {
"default": "PT1H",
"maximum": "unspecified",
"minimum": "unspecified"
},
"type": "enterprise"
}
collection version is 22.14.0

any suggestions?

silent tulip
#

strange, according to ONTAP, only the "default" parameter accepts unspecified as value, all others only take an actual time period or infinite.
Try your playbook with "maximum": "infinite" and "minimum": "PT0S" maybe?

#

I think the API error you receive is incorrect 🤷‍♂️

#

I mean they even got the ISO number wrong so... 😂

sullen kindle
#

must be 8601...

#

this is API response, correct?