resource_principal_tokens
Creates, updates, deletes, gets or lists a resource_principal_tokens resource.
Overview​
| Name | resource_principal_tokens |
| Type | Resource |
| Id | oci.database.resource_principal_tokens |
Fields​
The following fields are returned by SELECT queries:
- get
The RPT that has all the mapping information between instance principal and resource information.
| Name | Datatype | Description |
|---|---|---|
resourcePrincipalToken | string | The base64 encoded intermediate Resource Principal Token. |
servicePrincipalSessionToken | string | The base64 encoded Session Token of the Service Principal that provided the intermediate Resource Principal Token. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | instanceId, region | opc-request-id | Gets a resource principal intermediate token that contains mapping information between the instance prinicpal and resource.<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
instanceId | string | The Compute Instance [OCID](/Content/General/Concepts/identifiers.htm). |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
opc-request-id | string | Unique identifier for the request. |
SELECT examples​
- get
Gets a resource principal intermediate token that contains mapping information between the instance prinicpal and resource.<br />
SELECT
resourcePrincipalToken,
servicePrincipalSessionToken
FROM oci.database.resource_principal_tokens
WHERE instanceId = '{{ instanceId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;