oci_autonomous_exadata_infrastructure_facts – Fetches details about one or multiple AutonomousExadataInfrastructure resources in Oracle Cloud Infrastructure¶
New in version 2.5.
Synopsis¶
- Fetches details about one or multiple AutonomousExadataInfrastructure resources in Oracle Cloud Infrastructure
- Gets a list of the Autonomous Exadata Infrastructures in the specified compartment.
- If autonomous_exadata_infrastructure_id is specified, the details of a single AutonomousExadataInfrastructure will be returned.
Requirements¶
The below requirements are needed on the host that executes this module.
- python >= 2.7
- Python SDK for Oracle Cloud Infrastructure https://oracle-cloud-infrastructure-python-sdk.readthedocs.io
Parameters¶
| Parameter | Choices/Defaults | Comments |
|---|---|---|
|
api_user
string
|
The OCID of the user, on whose behalf, OCI APIs are invoked. If not set, then the value of the OCI_USER_ID environment variable, if any, is used. This option is required if the user is not specified through a configuration file (See
config_file_location). To get the user's OCID, please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm. |
|
|
api_user_fingerprint
string
|
Fingerprint for the key pair being used. If not set, then the value of the OCI_USER_FINGERPRINT environment variable, if any, is used. This option is required if the key fingerprint is not specified through a configuration file (See
config_file_location). To get the key pair's fingerprint value please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm. |
|
|
api_user_key_file
string
|
Full path and filename of the private key (in PEM format). If not set, then the value of the OCI_USER_KEY_FILE variable, if any, is used. This option is required if the private key is not specified through a configuration file (See
config_file_location). If the key is encrypted with a pass-phrase, the api_user_key_pass_phrase option must also be provided. |
|
|
api_user_key_pass_phrase
string
|
Passphrase used by the key referenced in
api_user_key_file, if it is encrypted. If not set, then the value of the OCI_USER_KEY_PASS_PHRASE variable, if any, is used. This option is required if the key passphrase is not specified through a configuration file (See config_file_location). |
|
|
auth_type
string
|
|
The type of authentication to use for making API requests. By default
auth_type="api_key" based authentication is performed and the API key (see api_user_key_file) in your config file will be used. If this 'auth_type' module option is not specified, the value of the OCI_ANSIBLE_AUTH_TYPE, if any, is used. Use auth_type="instance_principal" to use instance principal based authentication when running ansible` playbooks within an OCI compute instance. |
|
autonomous_exadata_infrastructure_id
-
|
The Autonomous Exadata Infrastructure OCID.
Required to get a specific autonomous_exadata_infrastructure.
aliases: id |
|
|
availability_domain
-
|
A filter to return only resources that match the given availability domain exactly.
|
|
|
compartment_id
-
|
The compartment OCID.
Required to list multiple autonomous_exadata_infrastructures.
|
|
|
config_file_location
string
|
Path to configuration file. If not set then the value of the OCI_CONFIG_FILE environment variable, if any, is used. Otherwise, defaults to ~/.oci/config.
|
|
|
config_profile_name
string
|
The profile to load from the config file referenced by
config_file_location. If not set, then the value of the OCI_CONFIG_PROFILE environment variable, if any, is used. Otherwise, defaults to the "DEFAULT" profile in config_file_location. |
|
|
display_name
-
|
A filter to return only resources that match the entire display name given. The match is not case sensitive.
aliases: name |
|
|
lifecycle_state
-
|
|
A filter to return only resources that match the given lifecycle state exactly.
|
|
region
string
|
The Oracle Cloud Infrastructure region to use for all OCI API requests. If not set, then the value of the OCI_REGION variable, if any, is used. This option is required if the region is not specified through a configuration file (See
config_file_location). Please refer to https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm for more information on OCI regions. |
|
|
sort_by
-
|
|
The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
**Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
|
sort_order
-
|
|
The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
|
tenancy
string
|
OCID of your tenancy. If not set, then the value of the OCI_TENANCY variable, if any, is used. This option is required if the tenancy OCID is not specified through a configuration file (See
config_file_location). To get the tenancy OCID, please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm |
Notes¶
Note
- For OCI python sdk configuration, please refer to https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/configuration.html
Examples¶
- name: List autonomous_exadata_infrastructures
oci_autonomous_exadata_infrastructure_facts:
compartment_id: ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
- name: Get a specific autonomous_exadata_infrastructure
oci_autonomous_exadata_infrastructure_facts:
autonomous_exadata_infrastructure_id: ocid1.autonomousexadatainfrastructure.oc1..xxxxxxEXAMPLExxxxxx
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description | ||
|---|---|---|---|---|
|
autonomous_exadata_infrastructures
complex
|
on success |
List of AutonomousExadataInfrastructure resources
Sample:
[{'freeform_tags': {'Department': 'Finance'}, 'lifecycle_details': 'lifecycle_details_example', 'domain': 'domain_example', 'availability_domain': 'Uocm:PHX-AD-1', 'last_maintenance_run': {'lifecycle_details': 'lifecycle_details_example', 'target_resource_type': 'AUTONOMOUS_DBSYSTEM', 'description': 'description_example', 'target_resource_id': 'ocid1.targetresource.oc1..xxxxxxEXAMPLExxxxxx', 'maintenance_subtype': 'QUARTERLY', 'time_scheduled': '2013-10-20T19:20:30+01:00', 'time_ended': '2013-10-20T19:20:30+01:00', 'maintenance_type': 'PLANNED', 'time_started': '2013-10-20T19:20:30+01:00', 'lifecycle_state': 'SCHEDULED', 'display_name': 'display_name_example', 'compartment_id': 'ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx', 'id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx'}, 'next_maintenance_run': {'lifecycle_details': 'lifecycle_details_example', 'target_resource_type': 'AUTONOMOUS_DBSYSTEM', 'description': 'description_example', 'target_resource_id': 'ocid1.targetresource.oc1..xxxxxxEXAMPLExxxxxx', 'maintenance_subtype': 'QUARTERLY', 'time_scheduled': '2013-10-20T19:20:30+01:00', 'time_ended': '2013-10-20T19:20:30+01:00', 'maintenance_type': 'PLANNED', 'time_started': '2013-10-20T19:20:30+01:00', 'lifecycle_state': 'SCHEDULED', 'display_name': 'display_name_example', 'compartment_id': 'ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx', 'id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx'}, 'lifecycle_state': 'PROVISIONING', 'maintenance_window': {'hour_of_day': 56, 'day_of_week': 'ANY'}, 'time_created': '2013-10-20T19:20:30+01:00', 'subnet_id': 'ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx', 'id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx', 'license_model': 'LICENSE_INCLUDED', 'hostname': 'hostname_example', 'defined_tags': {'Operations': {'CostCenter': 'US'}}, 'shape': 'shape_example', 'compartment_id': 'ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx', 'display_name': 'display_name_example'}]
|
||
|
availability_domain
string
|
on success |
The name of the availability domain that the Autonomous Exadata Infrastructure is located in.
Sample:
Uocm:PHX-AD-1
|
||
|
compartment_id
string
|
on success |
The OCID of the compartment.
Sample:
ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
defined_tags
dictionary
|
on success |
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: `{"Operations": {"CostCenter": "42"}}`
Sample:
{'Operations': {'CostCenter': 'US'}}
|
||
|
display_name
string
|
on success |
The user-friendly name for the Autonomous Exadata Infrastructure.
Sample:
display_name_example
|
||
|
domain
string
|
on success |
The domain name for the Autonomous Exadata Infrastructure.
Sample:
domain_example
|
||
|
freeform_tags
dictionary
|
on success |
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: `{"Department": "Finance"}`
Sample:
{'Department': 'Finance'}
|
||
|
hostname
string
|
on success |
The host name for the Autonomous Exadata Infrastructure node.
Sample:
hostname_example
|
||
|
id
string
|
on success |
The OCID of the Autonomous Exadata Infrastructure.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
last_maintenance_run
complex
|
on success |
|
||
|
compartment_id
string
|
on success |
The OCID of the compartment.
Sample:
ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
description
string
|
on success |
The text describing this Maintenance Run.
Sample:
description_example
|
||
|
display_name
string
|
on success |
The user-friendly name for the Maintenance Run.
Sample:
display_name_example
|
||
|
id
string
|
on success |
The OCID of the Maintenance Run.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
lifecycle_details
string
|
on success |
Additional information about the current lifecycleState.
Sample:
lifecycle_details_example
|
||
|
lifecycle_state
string
|
on success |
The current state of the Maintenance Run.
Sample:
SCHEDULED
|
||
|
maintenance_subtype
string
|
on success |
Maintenance sub-type.
Sample:
QUARTERLY
|
||
|
maintenance_type
string
|
on success |
Maintenance type.
Sample:
PLANNED
|
||
|
target_resource_id
string
|
on success |
The ID of the target resource on which the Maintenance Run occurs.
Sample:
ocid1.targetresource.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
target_resource_type
string
|
on success |
The type of the target resource on which the Maintenance Run occurs.
Sample:
AUTONOMOUS_DBSYSTEM
|
||
|
time_ended
string
|
on success |
The date and time the Maintenance Run was completed.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
time_scheduled
string
|
on success |
The date and time the Maintenance Run is scheduled for.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
time_started
string
|
on success |
The date and time the Maintenance Run starts.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
license_model
string
|
on success |
The Oracle license model that applies to all databases in the Autonomous Exadata Infrastructure. The default is BRING_YOUR_OWN_LICENSE.
Sample:
LICENSE_INCLUDED
|
||
|
lifecycle_details
string
|
on success |
Additional information about the current lifecycle state of the Autonomous Exadata Infrastructure.
Sample:
lifecycle_details_example
|
||
|
lifecycle_state
string
|
on success |
The current lifecycle state of the Autonomous Exadata Infrastructure.
Sample:
PROVISIONING
|
||
|
maintenance_window
complex
|
on success |
|
||
|
day_of_week
string
|
on success |
Day of the week that the patch should be applied to the Autonomous Exadata Infrastructure. Patches are applied during the first week of the quarter.
Sample:
ANY
|
||
|
hour_of_day
integer
|
on success |
Hour of the day that the patch should be applied.
Sample:
56
|
||
|
next_maintenance_run
complex
|
on success |
|
||
|
compartment_id
string
|
on success |
The OCID of the compartment.
Sample:
ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
description
string
|
on success |
The text describing this Maintenance Run.
Sample:
description_example
|
||
|
display_name
string
|
on success |
The user-friendly name for the Maintenance Run.
Sample:
display_name_example
|
||
|
id
string
|
on success |
The OCID of the Maintenance Run.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
lifecycle_details
string
|
on success |
Additional information about the current lifecycleState.
Sample:
lifecycle_details_example
|
||
|
lifecycle_state
string
|
on success |
The current state of the Maintenance Run.
Sample:
SCHEDULED
|
||
|
maintenance_subtype
string
|
on success |
Maintenance sub-type.
Sample:
QUARTERLY
|
||
|
maintenance_type
string
|
on success |
Maintenance type.
Sample:
PLANNED
|
||
|
target_resource_id
string
|
on success |
The ID of the target resource on which the Maintenance Run occurs.
Sample:
ocid1.targetresource.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
target_resource_type
string
|
on success |
The type of the target resource on which the Maintenance Run occurs.
Sample:
AUTONOMOUS_DBSYSTEM
|
||
|
time_ended
string
|
on success |
The date and time the Maintenance Run was completed.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
time_scheduled
string
|
on success |
The date and time the Maintenance Run is scheduled for.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
time_started
string
|
on success |
The date and time the Maintenance Run starts.
Sample:
2013-10-20 19:20:30+01:00
|
||
|
shape
string
|
on success |
The shape of the Autonomous Exadata Infrastructure. The shape determines resources to allocate to the Autonomous Exadata Infrastructure (CPU cores, memory and storage).
Sample:
shape_example
|
||
|
subnet_id
string
|
on success |
The OCID of the subnet the Autonomous Exadata Infrastructure is associated with.
**Subnet Restrictions:** - For Autonomous Databases with Autonomous Exadata Infrastructure, do not use a subnet that overlaps with 192.168.128.0/20
These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and backup subnet.
Sample:
ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx
|
||
|
time_created
string
|
on success |
The date and time the Autonomous Exadata Infrastructure was created.
Sample:
2013-10-20 19:20:30+01:00
|
||
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Manoj Meda (@manojmeda)
- Mike Ross (@mross22)
- Nabeel Al-Saber (@nalsaber)
Hint
If you notice any issues in this documentation you can edit this document to improve it.