Skip to main content

windows_instance_initial_credentials

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

Overview​

Namewindows_instance_initial_credentials
TypeResource
Idoci.compute.windows_instance_initial_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, regionDeprecated. Use [GetInstanceDefaultCredentials](#/en/iaas/latest/InstanceCredentials/GetInstanceDefaultCredentials) instead.<br /><br />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 />

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​

Deprecated. Use [GetInstanceDefaultCredentials](#/en/iaas/latest/InstanceCredentials/GetInstanceDefaultCredentials) instead.<br /><br />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.windows_instance_initial_credentials
WHERE instanceId = '{{ instanceId }}' -- required
AND region = '{{ region }}' -- required
;