Object Storage Users
Manage IAM users for your Managed Object Storage services. Users can be assigned policies and access keys to control their permissions.
Create user
Creates a new service user by given {service_uuid}.
Attributes
- Name
username- Type
- string
- Description
The name of the user to create. 1-64 characters, pattern:
[\w+=,.@-]+. Note:_upcloud-internal-useris reserved for internal use.
Request
curl -X POST https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users \
-u your_username:your_password \
-H "Content-Type: application/json" \
-d '{
"username": "example_user"
}'
List users
Returns a list of available service users by given {service_uuid}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users \
-u your_username:your_password
Get user details
Returns service user details by given {service_uuid} and {username}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user \
-u your_username:your_password
Delete user
Deletes existing user by given {service_uuid} and {username}.
Request
curl -X DELETE https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user \
-u your_username:your_password
Get user tags
Returns a user's tags by the given {service_uuid} and {username}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/tags \
-u your_username:your_password
Replace user tags
Replaces a user's tags by the given {service_uuid} and {username}.
Request
curl -X PUT https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/tags \
-u your_username:your_password \
-H "Content-Type: application/json" \
-d '{
"key": "environment",
"value": "staging"
}'
Delete user tags
Deletes a user's tag by the given {service_uuid}, {username}, and {tag_key}.
Request
curl -X DELETE https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/tags/environment \
-u your_username:your_password
Create permissions boundary
Creates a user's permissions boundary by the given {service_uuid} and {username}.
Attributes
- Name
policy_name- Type
- string
- Description
A valid string to represent the name of the IAM policy. 1-128 characters.
Request
curl -X PUT https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/permissions-boundary \
-u your_username:your_password \
-H "Content-Type: application/json" \
-d '{
"policy_name": "sample-policy"
}'
Delete permissions boundary
Deletes a user's permissions boundary by the given {service_uuid} and {username}.
Request
curl -X DELETE https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/permissions-boundary \
-u your_username:your_password
List user inline policies
Lists the user inline policies by the given {service_uuid} and {username}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/inline-policies \
-u your_username:your_password
Get user inline policy
Get the user inline policy by the given {service_uuid}, {username} and {policy_name}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/inline-policies/ECSS3FullAccess \
-u your_username:your_password
Create user inline policy
Creates a user inline policy by the given {service_uuid} and {username}.
Attributes
- Name
name- Type
- string
- Description
The name of the policy. 1-128 characters.
- Name
document- Type
- string
- Description
The policy document in JSON format.
Request
curl -X POST https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/inline-policies \
-u your_username:your_password \
-H "Content-Type: application/json" \
-d '{
"name": "ECSS3FullAccess",
"document": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Resource\":\"*\"}]}"
}'
Delete user inline policy
Deletes a user inline policy by the given {service_uuid}, {username} and {policy_name}.
Request
curl -X DELETE https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/inline-policies/ECSS3FullAccess \
-u your_username:your_password
List attached user policies
Lists the attached policies for a user by the given {service_uuid} and {username}.
Request
curl -X GET https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/policies \
-u your_username:your_password
Attach user policy
Attaches a policy to a user by the given {service_uuid}, {username} and {policy_name}.
Request
curl -X PUT https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/policies/ECSS3FullAccess \
-u your_username:your_password
Detach user policy
Detaches a policy from a user by the given {service_uuid}, {username} and {policy_name}.
Request
curl -X DELETE https://api.upcloud.com/1.3/object-storage-2/0ab2f83f-03f3-4c48-9a38-0a3e89c6d024/users/example_user/policies/ECSS3FullAccess \
-u your_username:your_password