object-storage-2

Set default policy version

Sets the default version for a policy. Note: This is mapped from ModifyPolicyVersion handler.

patch/1.3/object-storage-2/{service-uuid}/policies/{policy-name}

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/policies/{policy-name}
  • 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

version_idstring required

The policy version ID to set as default.

Example request

{
  "version_id": "v2"
}

Response

OK

arnstring
attachment_countinteger
created_atstring date-time
default_version_idstring
descriptionstring
documentstring
namestring
systemboolean
updated_atstring date-time

Example response

{
  "arn": "urn:ecs:iam:::policy/ECSS3FullAccess",
  "attachment_count": 0,
  "created_at": "2024-02-05T11:06:16Z",
  "default_version_id": "v1",
  "description": "Provides full access to all buckets.",
  "document": "%7B%0A++++%22Version%22%3A+%222012-10-17%22%2C%0A++++%22Statement%22%3A+%5B%0A++++++++%7B%0A++++++++++++%22Effect%22%3A+%22Allow%22%2C%0A++++++++++++%22Action%22%3A+%22s3%3A*%22%2C%0A++++++++++++%22Resource%22%3A+%22*%22%0A++++++++%7D%0A++++%5D%0A%7D",
  "name": "ECSS3FullAccess",
  "system": true,
  "updated_at": "2024-02-05T11:06:16Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.