object-storage-2
Create policy version
Creates a policy version by the given {service_uuid}, and {policy_name}.
post/1.3/object-storage-2/{service-uuid}/policies/{policy-name}/versions
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/policies/{policy-name}/versions
- Auth: HTTP bearer
Path parameters
service-uuidstring uuid required
The unique identifier for the service.
Example:01234567-89ab-cdef-0123-456789abcdef
Service UUID
policy-namestring required
A resource name.
Example:my-object-storage
The name of the policy.
Request body
Example request
{
"document": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"*\"],\"Effect\":\"Deny\",\"Resource\":\"*\"}]}",
"is_default": true
}Response
Created
Example response
{
"create_date": "2024-02-05T11:06:16Z",
"document": "%7B%22Version%22%3A%222012-10-17%22%2C%22Statement%22%3A%5B%7B%22Action%22%3A%5B%22%2A%22%5D%2C%22Effect%22%3A%22Deny%22%2C%22Resource%22%3A%22%2A%22%7D%5D%7D",
"is_default": true,
"version_id": "v2"
}Changes
No recorded changes to this operation across all 1 revision of this API.