Update User Status

Update User Status

Operation ID: updateUserStatus
Update status of the storage user in the storage tenant

Request
URI
PATCH
https://{api_host}/osis/api/v1/tenants/{tenantId}/users/{userId}
COPY
Path Parameters
string
tenantId
Required

The ID of the storage tenantto which the user to update belongs

string
userId
Required

The ID of the storage user to update


Request Body

User status to update in the storage tenant. Only property 'active' takes effect

OsisUser of type(s) application/json
Required
{
    "user_id": "rachelw",
    "canonical_user_id": "68fb0f20-4a0c-4036-a584-cc3ee421093f",
    "tenant_id": "bb8287a9-874e-46d2-abbd-58278e1ac046",
    "active": false,
    "username": "string",
    "email": "rachelw@acme.com",
    "role": "string",
    "cd_user_id": "rachelw",
    "cd_tenant_id": "40b97e3c-c3b1-4251-b7de-e9637324683f"
}
string
user_id
Required

user id

string
canonical_user_id
Required

canonical user id

string
tenant_id
Required

ID of the storage tenant which the user belongs to

boolean
active
Required

user status

string
username
Optional

username mapped with Cloud Director username

string As email As email
email
Optional

user email

string
role
Optional

user role

Possible values are : PROVIDER_ADMIN, TENANT_ADMIN, TENANT_USER, ANONYMOUS, UNKNOWN,
string
cd_user_id
Required

Cloud Director user id

string
cd_tenant_id
Required

id of Cloud Director tenant which the user belongs to

Authentication
This operation uses the following authentication methods.
Responses
201

The storage user status is updated

Returns OsisUser of type(s) application/json
{
    "user_id": "rachelw",
    "canonical_user_id": "68fb0f20-4a0c-4036-a584-cc3ee421093f",
    "tenant_id": "bb8287a9-874e-46d2-abbd-58278e1ac046",
    "active": false,
    "username": "string",
    "email": "rachelw@acme.com",
    "role": "string",
    "cd_user_id": "rachelw",
    "cd_tenant_id": "40b97e3c-c3b1-4251-b7de-e9637324683f"
}
string
user_id
Required

user id

string
canonical_user_id
Required

canonical user id

string
tenant_id
Required

ID of the storage tenant which the user belongs to

boolean
active
Required

user status

string
username
Optional

username mapped with Cloud Director username

string As email As email
email
Optional

user email

string
role
Optional

user role

Possible values are : PROVIDER_ADMIN, TENANT_ADMIN, TENANT_USER, ANONYMOUS, UNKNOWN,
string
cd_user_id
Required

Cloud Director user id

string
cd_tenant_id
Required

id of Cloud Director tenant which the user belongs to


400

Bad Request

Returns OsisError of type(s) application/json
{
    "code": "E_BAD_REQUEST",
    "message": "invalid value for the property xyz."
}
string
code
Required

code

string
message
Optional

message