In this step, you create a custom scope associated with the custom resource you created in Step 2. This custom scope will be needed for the resource access grant in Step 5.

The GET /environments/{environmentId}/resources/{resourceId}/scopes operation creates a new scope associated with the resource entity ID specified in the request URL. The value for the {resourceId} parameter is the ID of the custom resource you created in Step 2.