Create a role
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/roles
Creates a role.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
Header Parameters
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
opc-retry-token: string
Minimum Length:
1Maximum Length:64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected.
Details for the new role.
Root Schema : CreateRoleDetails
Type:
objectThe details about the new role.
Show Source
-
description:
string
Maximum Length:
1024The description of the role. -
displayName(required):
string
Maximum Length:
64The role name, it can be changed. No special characters except for ???_???. Case insensitive.
Response
Supported Media Types
- application/json
200 Response
Successful operation. The role is created.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Role
Type:
objectRole details.
Show Source
-
assignees:
array assignees
Maximum Number of Items:
100The users and groups this role is assigned to. -
createdBy:
string
Minimum Length:
1Maximum Length:255The user name of the user/principal who created the role. -
description:
string
The description of the role.
-
displayName:
string
Maximum Length:
255The role name. It can be changed. -
isAssigned:
boolean
The role is assigned to the current user or a group that the user is part of.
-
key(required):
string
Minimum Length:
1Maximum Length:255A unique key for the role. It cannot be changed. -
lifecycleDetails:
string
A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
-
lifecycleState:
string
Allowed Values:
[ "ACTIVE" ]The state of the role. -
roleType:
string
Allowed Values:
[ "SYSTEM", "CUSTOM" ]Type of role. -
timeCreated:
string(date-time)
The time the role was created. An RFC3339 formatted datetime string.
-
timeUpdated:
string(date-time)
The time the Role was updated. An RFC3339 formatted datetime string.
-
updatedBy:
string
Minimum Length:
1Maximum Length:255The user name of the user/principal who updated the role.
Nested Schema : assignees
Type:
arrayMaximum Number of Items:
100The users and groups this role is assigned to.
Show Source
-
Array of:
object RoleAssignee
The user/principal/role the role can be assigned to.
Nested Schema : RoleAssignee
Type:
objectThe user/principal/role the role can be assigned to.
Show Source
-
target(required):
string
The OCID for a principal or role.
-
targetName:
string
The name for a principal or role.
-
type(required):
string
Allowed Values:
[ "USER", "ROLE", "GROUP" ]assignee type.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.