Skip to main content

instance_default_credentials

Creates, updates, deletes, gets or lists an instance_default_credentials resource.

Overview​

Nameinstance_default_credentials
TypeResource
Idoci.compute.instance_default_credentials

Fields​

The following fields are returned by SELECT queries:

The credentials were retrieved.

NameDatatypeDescription
passwordstringThe password for the username.
usernamestringThe username.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectinstanceId, regionGets the generated credentials for the instance. Only works for instances that require a password to log in, such as Windows.<br />For certain operating systems, users will be forced to change the initial credentials.<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 [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the instance.
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)

SELECT examples​

Gets the generated credentials for the instance. Only works for instances that require a password to log in, such as Windows.<br />For certain operating systems, users will be forced to change the initial credentials.<br />

SELECT
password,
username
FROM oci.compute.instance_default_credentials
WHERE instanceId = '{{ instanceId }}' -- required
AND region = '{{ region }}' -- required
;