oracle.oci.oci_announcements_service_announcement_facts – Fetches details about a Announcement resource in Oracle Cloud Infrastructure¶
Note
This plugin is part of the oracle.oci collection (version 5.2.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install oracle.oci
.
To use it in a playbook, specify: oracle.oci.oci_announcements_service_announcement_facts
.
New in version 2.9.0: of oracle.oci
Synopsis¶
Fetches details about a Announcement resource in Oracle Cloud Infrastructure
Gets the details of a specific announcement.
This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 3.6
Python SDK for Oracle Cloud Infrastructure https://oracle-cloud-infrastructure-python-sdk.readthedocs.io
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
announcement_id
string
/ required
|
The OCID of the announcement.
aliases: id |
|
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_purpose
string
|
|
The auth purpose which can be used in conjunction with 'auth_type=instance_principal'. The default auth_purpose for instance_principal is None.
|
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. |
cert_bundle
string
|
The full path to a CA certificate bundle to be used for SSL verification. This will override the default CA certificate bundle. If not set, then the value of the OCI_ANSIBLE_CERT_BUNDLE variable, if any, is used.
|
|
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 . |
|
realm_specific_endpoint_template_enabled
boolean
|
|
Enable/Disable realm specific endpoint template for service client. By Default, realm specific endpoint template is disabled. If not set, then the value of the OCI_REALM_SPECIFIC_SERVICE_ENDPOINT_TEMPLATE_ENABLED variable, if any, is used.
|
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. |
|
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: Get a specific announcement
oci_announcements_service_announcement_facts:
# required
announcement_id: "ocid1.announcement.oc1..xxxxxxEXAMPLExxxxxx"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description | |||
---|---|---|---|---|---|
announcement
complex
|
on success |
Announcement resource
Sample:
{'additional_information': 'additional_information_example', 'affected_regions': [], 'affected_resources': [{'additional_properties': [{'name': 'name_example', 'value': 'value_example'}], 'region': 'us-phoenix-1', 'resource_id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx', 'resource_name': 'resource_name_example'}], 'announcement_type': 'ACTION_RECOMMENDED', 'chain_id': 'ocid1.chain.oc1..xxxxxxEXAMPLExxxxxx', 'description': 'description_example', 'environment_name': 'environment_name_example', 'id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx', 'is_banner': True, 'lifecycle_state': 'ACTIVE', 'platform_type': 'IAAS', 'reference_ticket_number': 'reference_ticket_number_example', 'services': [], 'summary': 'summary_example', 'time_created': '2013-10-20T19:20:30+01:00', 'time_one_title': 'time_one_title_example', 'time_one_type': 'ACTION_REQUIRED_BY', 'time_one_value': '2013-10-20T19:20:30+01:00', 'time_two_title': 'time_two_title_example', 'time_two_type': 'END_TIME', 'time_two_value': '2013-10-20T19:20:30+01:00', 'time_updated': '2013-10-20T19:20:30+01:00', 'type': 'type_example'}
|
|||
additional_information
string
|
on success |
Additional information about the event, expressed by using Markdown language and included in the details view of an announcement. Additional information might include remediation steps or answers to frequently asked questions. Avoid entering confidential information.
Sample:
additional_information_example
|
|||
affected_regions
list
/ elements=string
|
on success |
Impacted regions.
|
|||
affected_resources
complex
|
on success |
The list of resources, if any, affected by the event described in the announcement.
|
|||
additional_properties
complex
|
on success |
Additional properties associated with the resource.
|
|||
name
string
|
on success |
The name of the property.
Sample:
name_example
|
|||
value
string
|
on success |
The value of the property.
Sample:
value_example
|
|||
region
string
|
on success |
The region where the affected resource exists.
Sample:
us-phoenix-1
|
|||
resource_id
string
|
on success |
The OCID of the affected resource.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
|||
resource_name
string
|
on success |
The friendly name of the resource.
Sample:
resource_name_example
|
|||
announcement_type
string
|
on success |
The type of announcement. An announcement's type signals its severity.
Sample:
ACTION_RECOMMENDED
|
|||
chain_id
string
|
on success |
The sequence of connected announcements, or announcement chain, that this announcement belongs to. Related announcements share the same chain ID.
Sample:
ocid1.chain.oc1..xxxxxxEXAMPLExxxxxx
|
|||
description
string
|
on success |
A detailed explanation of the event, expressed by using Markdown language. Avoid entering confidential information.
Sample:
description_example
|
|||
environment_name
string
|
on success |
The name of the environment that this announcement pertains to.
Sample:
environment_name_example
|
|||
id
string
|
on success |
The OCID of the announcement.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
|||
is_banner
boolean
|
on success |
Whether the announcement is displayed as a banner in the console.
Sample:
True
|
|||
lifecycle_state
string
|
on success |
The current lifecycle state of the announcement.
Sample:
ACTIVE
|
|||
platform_type
string
|
on success |
The platform type that this announcement pertains to.
Sample:
IAAS
|
|||
reference_ticket_number
string
|
on success |
The reference Jira ticket number.
Sample:
reference_ticket_number_example
|
|||
services
list
/ elements=string
|
on success |
Impacted Oracle Cloud Infrastructure services.
|
|||
summary
string
|
on success |
A summary of the issue. A summary might appear in the console banner view of the announcement or in an email subject line. Avoid entering confidential information.
Sample:
summary_example
|
|||
time_created
string
|
on success |
The date and time the announcement was created, expressed in RFC 3339 timestamp format. Example: `2019-01-01T17:43:01.389+0000`
Sample:
2013-10-20T19:20:30+01:00
|
|||
time_one_title
string
|
on success |
The label associated with an initial time value. Example: `Time Started`
Sample:
time_one_title_example
|
|||
time_one_type
string
|
on success |
The type of a time associated with an initial time value. If the `timeOneTitle` attribute is present, then the `timeOneTitle` attribute contains a label of `timeOneType` in English. Example: `START_TIME`
Sample:
ACTION_REQUIRED_BY
|
|||
time_one_value
string
|
on success |
The actual value of the first time value for the event. Typically, this denotes the time an event started, but the meaning can vary, depending on the announcement type. The `timeOneType` attribute describes the meaning.
Sample:
2013-10-20T19:20:30+01:00
|
|||
time_two_title
string
|
on success |
The label associated with a second time value. Example: `Time Ended`
Sample:
time_two_title_example
|
|||
time_two_type
string
|
on success |
The type of a time associated with second time value. If the `timeTwoTitle` attribute is present, then the `timeTwoTitle` attribute contains a label of `timeTwoType` in English. Example: `END_TIME`
Sample:
END_TIME
|
|||
time_two_value
string
|
on success |
The actual value of the second time value. Typically, this denotes the time an event ended, but the meaning can vary, depending on the announcement type. The `timeTwoType` attribute describes the meaning.
Sample:
2013-10-20T19:20:30+01:00
|
|||
time_updated
string
|
on success |
The date and time the announcement was last updated, expressed in RFC 3339 timestamp format. Example: `2019-01-01T17:43:01.389+0000`
Sample:
2013-10-20T19:20:30+01:00
|
|||
type
string
|
on success |
The entity type, which is either an announcement or the summary representation of an announcement.
Sample:
type_example
|
Authors¶
Oracle (@oracle)