v5

latestOpenAPI 3.1.02026-07-31151195455.5 KB
groups

Adds a resource to a group.

post/groups/{group_id}/resources/{resource_id}

Path parameters

group_idstring uuid required

The ID of the group.

resource_idstring uuid required

The ID of the resource.

Query parameters

access_level_remote_idstring

The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used.

Request body

access_level_remote_idstring

The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used.

duration_minutesinteger

The duration for which the resource can be accessed (in minutes). Use 0 to set to indefinite.

Example request

{
  "access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess",
  "duration_minutes": 60
}

Response

The created GroupResource object.

group_idstring uuid required

The ID of the group.

resource_idstring uuid required

The ID of the resource.

group_namestring

The name of the group

resource_namestring

The name of the resource

expiration_datestring date-time nullable

The day and time the group's access will expire.

Example response

{
  "group_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
  "resource_id": "b5a5ca27-0ea3-4d86-9199-2126d57d1fbd",
  "access_level_remote_id": "write"
}