oracle.oci.oci_data_connectivity_reference_info_actions – Perform actions on a ReferenceInfo resource in Oracle Cloud Infrastructure

Note

This plugin is part of the oracle.oci collection (version 4.14.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_data_connectivity_reference_info_actions.

New in version 2.9.0: of oracle.oci

Synopsis

  • Perform actions on a ReferenceInfo resource in Oracle Cloud Infrastructure

  • For action=create_de_reference_artifact, dereferenced a dcms artifact.

  • For action=create_reference_artifact, reference a data asset.

Requirements

The below requirements are needed on the host that executes this module.

Parameters

Parameter Choices/Defaults Comments
action
string / required
    Choices:
  • create_de_reference_artifact
  • create_reference_artifact
The action to perform on the ReferenceInfo.
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
    Choices:
  • service_principal
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
    Choices:
  • api_key ←
  • instance_principal
  • instance_obo_user
  • resource_principal
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.
dcms_artifact_id
string / required
The ID of a dcms artifact (DataAsset or Endpoint).

aliases: id
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.
registry_id
string / required
The registry OCID.
service_artifact_id
string / required
The unique ID of the service that is referencing a data asset.
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

Examples

- name: Perform action create_de_reference_artifact on reference_info
  oci_data_connectivity_reference_info_actions:
    # required
    registry_id: "ocid1.registry.oc1..xxxxxxEXAMPLExxxxxx"
    dcms_artifact_id: "ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx"
    service_artifact_id: "ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx"
    action: create_de_reference_artifact

- name: Perform action create_reference_artifact on reference_info
  oci_data_connectivity_reference_info_actions:
    # required
    registry_id: "ocid1.registry.oc1..xxxxxxEXAMPLExxxxxx"
    dcms_artifact_id: "ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx"
    service_artifact_id: "ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx"
    action: create_reference_artifact

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
de_reference_info
complex
on success
Details of the ReferenceInfo resource acted upon by the current operation

Sample:
{'dcms_artifact_id': 'ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx', 'description': 'description_example', 'identifier': 'identifier_example', 'key': 'key_example', 'metadata': {'aggregator': {'description': 'description_example', 'identifier': 'identifier_example', 'key': 'key_example', 'name': 'name_example', 'type': 'type_example'}, 'aggregator_key': 'aggregator_key_example', 'created_by': 'created_by_example', 'created_by_name': 'created_by_name_example', 'identifier_path': 'identifier_path_example', 'info_fields': {}, 'is_favorite': True, 'labels': [], 'registry_version': 56, 'time_created': '2013-10-20T19:20:30+01:00', 'time_updated': '2013-10-20T19:20:30+01:00', 'updated_by': 'updated_by_example', 'updated_by_name': 'updated_by_name_example'}, 'model_type': 'model_type_example', 'model_version': 'model_version_example', 'name': 'name_example', 'object_status': 56, 'object_version': 56, 'reference_count': 56, 'registry_metadata': {'aggregator_key': 'aggregator_key_example', 'created_by_user_id': 'ocid1.createdbyuser.oc1..xxxxxxEXAMPLExxxxxx', 'created_by_user_name': 'created_by_user_name_example', 'is_favorite': True, 'key': 'key_example', 'labels': [], 'registry_version': 56, 'time_created': '2013-10-20T19:20:30+01:00', 'time_updated': '2013-10-20T19:20:30+01:00', 'updated_by_user_id': 'ocid1.updatedbyuser.oc1..xxxxxxEXAMPLExxxxxx', 'updated_by_user_name': 'updated_by_user_name_example'}, 'service_artifact_id': 'ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx'}
 
dcms_artifact_id
string
on success
The unique ID of the DCMS artifact that is getting referenced.

Sample:
ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx
 
description
string
on success
User-defined description of the referenceInfo.

Sample:
description_example
 
identifier
string
on success
Value can only contain upper case letters, underscore, and numbers. It should begin with an upper case letter or underscore. The value can be modified.

Sample:
identifier_example
 
key
string
on success
Generated key that can be used in API calls to identify the referenceinfo.

Sample:
key_example
 
metadata
complex
on success

   
aggregator
complex
on success

     
description
string
on success
The description of the aggregator.

Sample:
description_example
     
identifier
string
on success
The identifier of the aggregator.

Sample:
identifier_example
     
key
string
on success
The key of the aggregator object.

Sample:
key_example
     
name
string
on success
The name of the aggregator.

Sample:
name_example
     
type
string
on success
The type of the aggregator.

Sample:
type_example
   
aggregator_key
string
on success
The owning object key for this object.

Sample:
aggregator_key_example
   
created_by
string
on success
The user that created the object.

Sample:
created_by_example
   
created_by_name
string
on success
The user that created the object.

Sample:
created_by_name_example
   
identifier_path
string
on success
The full path to identify the object.

Sample:
identifier_path_example
   
info_fields
dictionary
on success
Information property fields.

   
is_favorite
boolean
on success
Specifies whether this object is a favorite.

Sample:
True
   
labels
list / elements=string
on success
Labels are keywords or tags that you can add to data assets, dataflows, and so on. You can define your own labels and use them to categorize content.

   
registry_version
integer
on success
The registry version of the object.

Sample:
56
   
time_created
string
on success
The date and time that the object was created.

Sample:
2013-10-20T19:20:30+01:00
   
time_updated
string
on success
The date and time that the object was updated.

Sample:
2013-10-20T19:20:30+01:00
   
updated_by
string
on success
The user that updated the object.

Sample:
updated_by_example
   
updated_by_name
string
on success
The user that updated the object.

Sample:
updated_by_name_example
 
model_type
string
on success
The type of the ReferenceInfo.

Sample:
model_type_example
 
model_version
string
on success
The model version of an object.

Sample:
model_version_example
 
name
string
on success
Free form text without any restriction on the permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

Sample:
name_example
 
object_status
integer
on success
The status of an object that can be set to value 1 for shallow references across objects, other values reserved.

Sample:
56
 
object_version
integer
on success
The version of the object that is used to track changes in the object instance.

Sample:
56
 
reference_count
integer
on success
The number of times a DCMS artifact has been registered by a service.

Sample:
56
 
registry_metadata
complex
on success

   
aggregator_key
string
on success
The owning object's key for this object.

Sample:
aggregator_key_example
   
created_by_user_id
string
on success
The ID of the user who created the object.

Sample:
ocid1.createdbyuser.oc1..xxxxxxEXAMPLExxxxxx
   
created_by_user_name
string
on success
The name of the user who created the object.

Sample:
created_by_user_name_example
   
is_favorite
boolean
on success
Specifies whether the object is a favorite.

Sample:
True
   
key
string
on success
The identifying key for the object.

Sample:
key_example
   
labels
list / elements=string
on success
Labels are keywords or labels that you can add to data assets, dataflows, and so on. You can define your own labels and use them to categorize content.

   
registry_version
integer
on success
The registry version.

Sample:
56
   
time_created
string
on success
The date and time that the object was created.

Sample:
2013-10-20T19:20:30+01:00
   
time_updated
string
on success
The date and time that the object was updated.

Sample:
2013-10-20T19:20:30+01:00
   
updated_by_user_id
string
on success
The ID of the user who updated the object.

Sample:
ocid1.updatedbyuser.oc1..xxxxxxEXAMPLExxxxxx
   
updated_by_user_name
string
on success
The name of the user who updated the object.

Sample:
updated_by_user_name_example
 
service_artifact_id
string
on success
The unique ID of the service that is referencing a DCMS artifact.

Sample:
ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx
reference_info
complex
on success
Details of the ReferenceInfo resource acted upon by the current operation

Sample:
{'dcms_artifact_id': 'ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx', 'description': 'description_example', 'identifier': 'identifier_example', 'key': 'key_example', 'metadata': {'aggregator': {'description': 'description_example', 'identifier': 'identifier_example', 'key': 'key_example', 'name': 'name_example', 'type': 'type_example'}, 'aggregator_key': 'aggregator_key_example', 'created_by': 'created_by_example', 'created_by_name': 'created_by_name_example', 'identifier_path': 'identifier_path_example', 'info_fields': {}, 'is_favorite': True, 'labels': [], 'registry_version': 56, 'time_created': '2013-10-20T19:20:30+01:00', 'time_updated': '2013-10-20T19:20:30+01:00', 'updated_by': 'updated_by_example', 'updated_by_name': 'updated_by_name_example'}, 'model_type': 'model_type_example', 'model_version': 'model_version_example', 'name': 'name_example', 'object_status': 56, 'object_version': 56, 'reference_count': 56, 'registry_metadata': {'aggregator_key': 'aggregator_key_example', 'created_by_user_id': 'ocid1.createdbyuser.oc1..xxxxxxEXAMPLExxxxxx', 'created_by_user_name': 'created_by_user_name_example', 'is_favorite': True, 'key': 'key_example', 'labels': [], 'registry_version': 56, 'time_created': '2013-10-20T19:20:30+01:00', 'time_updated': '2013-10-20T19:20:30+01:00', 'updated_by_user_id': 'ocid1.updatedbyuser.oc1..xxxxxxEXAMPLExxxxxx', 'updated_by_user_name': 'updated_by_user_name_example'}, 'service_artifact_id': 'ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx'}
 
dcms_artifact_id
string
on success
The unique ID of the DCMS artifact that is getting registered.

Sample:
ocid1.dcmsartifact.oc1..xxxxxxEXAMPLExxxxxx
 
description
string
on success
User-defined description of the referenceInfo.

Sample:
description_example
 
identifier
string
on success
Value can only contain upper case letters, underscore, and numbers. It should begin with an upper case letter or underscore. The value can be modified.

Sample:
identifier_example
 
key
string
on success
Generated key that can be used in API calls to identify the referenceinfo.

Sample:
key_example
 
metadata
complex
on success

   
aggregator
complex
on success

     
description
string
on success
The description of the aggregator.

Sample:
description_example
     
identifier
string
on success
The identifier of the aggregator.

Sample:
identifier_example
     
key
string
on success
The key of the aggregator object.

Sample:
key_example
     
name
string
on success
The name of the aggregator.

Sample:
name_example
     
type
string
on success
The type of the aggregator.

Sample:
type_example
   
aggregator_key
string
on success
The owning object key for this object.

Sample:
aggregator_key_example
   
created_by
string
on success
The user that created the object.

Sample:
created_by_example
   
created_by_name
string
on success
The user that created the object.

Sample:
created_by_name_example
   
identifier_path
string
on success
The full path to identify the object.

Sample:
identifier_path_example
   
info_fields
dictionary
on success
Information property fields.

   
is_favorite
boolean
on success
Specifies whether this object is a favorite.

Sample:
True
   
labels
list / elements=string
on success
Labels are keywords or tags that you can add to data assets, dataflows, and so on. You can define your own labels and use them to categorize content.

   
registry_version
integer
on success
The registry version of the object.

Sample:
56
   
time_created
string
on success
The date and time that the object was created.

Sample:
2013-10-20T19:20:30+01:00
   
time_updated
string
on success
The date and time that the object was updated.

Sample:
2013-10-20T19:20:30+01:00
   
updated_by
string
on success
The user that updated the object.

Sample:
updated_by_example
   
updated_by_name
string
on success
The user that updated the object.

Sample:
updated_by_name_example
 
model_type
string
on success
The type of the ReferenceInfo.

Sample:
model_type_example
 
model_version
string
on success
The model version of an object.

Sample:
model_version_example
 
name
string
on success
Free form text without any restriction on the permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

Sample:
name_example
 
object_status
integer
on success
The status of an object that can be set to value 1 for shallow references across objects, other values reserved.

Sample:
56
 
object_version
integer
on success
The version of the object that is used to track changes in the object instance.

Sample:
56
 
reference_count
integer
on success
The number of times a data asset has been registered by a service.

Sample:
56
 
registry_metadata
complex
on success

   
aggregator_key
string
on success
The owning object's key for this object.

Sample:
aggregator_key_example
   
created_by_user_id
string
on success
The ID of the user who created the object.

Sample:
ocid1.createdbyuser.oc1..xxxxxxEXAMPLExxxxxx
   
created_by_user_name
string
on success
The name of the user who created the object.

Sample:
created_by_user_name_example
   
is_favorite
boolean
on success
Specifies whether the object is a favorite.

Sample:
True
   
key
string
on success
The identifying key for the object.

Sample:
key_example
   
labels
list / elements=string
on success
Labels are keywords or labels that you can add to data assets, dataflows, and so on. You can define your own labels and use them to categorize content.

   
registry_version
integer
on success
The registry version.

Sample:
56
   
time_created
string
on success
The date and time that the object was created.

Sample:
2013-10-20T19:20:30+01:00
   
time_updated
string
on success
The date and time that the object was updated.

Sample:
2013-10-20T19:20:30+01:00
   
updated_by_user_id
string
on success
The ID of the user who updated the object.

Sample:
ocid1.updatedbyuser.oc1..xxxxxxEXAMPLExxxxxx
   
updated_by_user_name
string
on success
The name of the user who updated the object.

Sample:
updated_by_user_name_example
 
service_artifact_id
string
on success
The unique ID of the service that is referencing a data asset.

Sample:
ocid1.serviceartifact.oc1..xxxxxxEXAMPLExxxxxx


Authors

  • Oracle (@oracle)