You can manage the roles assigned to gateways to provide access to resources in environments other than the gateway’s environment. When you assign a role to a gateway, you provide the attribute values required to identify the role and designate the role assignment scope for this gateway.
The sample shows the POST /environments/{environmentId}/gateways/{gatewayId}/roleAssignments
operation to create the role assignment for the gateway in the specified environment resource.
The request URL identifies the environment ID and gateway ID. The request body specifies the role
ID and the scope
attribute values. The scope
attribute provides the resource ID and resource type to designate the role assignment scope associated with this application. In this sample, the scope type
is ENVIRONMENT
and the specific environment to which the role assignment scope applies is specified in the id
value.