windows_instance_initial_credentials
Creates, updates, deletes, gets or lists a windows_instance_initial_credentials resource.
Overview​
| Name | windows_instance_initial_credentials |
| Type | Resource |
| Id | oci.compute.windows_instance_initial_credentials |
Fields​
The following fields are returned by SELECT queries:
- get
The credentials were retrieved.
| Name | Datatype | Description |
|---|---|---|
password | string | The password for the username. |
username | string | The username. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | instanceId, region | 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 /> |
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 [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the instance. |
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) |
SELECT examples​
- get
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
;