Skip to main content

resource_principal_tokens

Creates, updates, deletes, gets or lists a resource_principal_tokens resource.

Overview​

Nameresource_principal_tokens
TypeResource
Idoci.database.resource_principal_tokens

Fields​

The following fields are returned by SELECT queries:

The RPT that has all the mapping information between instance principal and resource information.

NameDatatypeDescription
resourcePrincipalTokenstringThe base64 encoded intermediate Resource Principal Token.
servicePrincipalSessionTokenstringThe base64 encoded Session Token of the Service Principal that provided the intermediate Resource Principal Token.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectinstanceId, regionopc-request-idGets 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.

NameDatatypeDescription
instanceIdstringThe Compute Instance [OCID](/Content/General/Concepts/identifiers.htm).
regionstringOCI 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-idstringUnique identifier for the request.

SELECT examples​

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 }}'
;