object-storage-2
Assume Role Policy
Assume a role policy by the given {service_uuid}, and {role_name}.
put/1.3/object-storage-2/{service-uuid}/roles/{role-name}/assume-role-policy
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/roles/{role-name}/assume-role-policy
- Auth: HTTP bearer
Path parameters
service-uuidstring uuid required
The unique identifier for the service.
Example:01234567-89ab-cdef-0123-456789abcdef
Service UUID
role-namestring required
A resource name.
Example:my-object-storage
The name of the role.
Request body
Example request
{
"document": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"backup.upcloud.com\"},\"Action\":\"sts:AssumeRole\"}]}"
}Response
OK
Example response
{
"document": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"backup.upcloud.com\"},\"Action\":\"sts:AssumeRole\"}]}"
}Changes
No recorded changes to this operation across all 1 revision of this API.