Skip to main content

resource_discovery_services

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

Overview​

Nameresource_discovery_services
TypeResource
Idoci.resource_manager.resource_discovery_services

Fields​

The following fields are returned by SELECT queries:

A list of supported Resource Discovery services.

NameDatatypeDescription
namestringA supported service. Example: core For reference on service names, see the [Terraform provider documentation](https:​//www.terraform.io/docs/providers/oci/guides/resource_discovery.html#services).
discoveryScopestringThe scope of the service as used with Resource Discovery. This property determines the type of compartment OCID required: root compartment (TENANCY) or not (COMPARTMENT). For example, identity is at the root compartment scope while database is at the compartment scope. (TENANCY, COMPARTMENT)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionopc-request-id, compartmentIdReturns a list of supported services for [Resource Discovery](/iaas/Content/ResourceManager/Concepts/resource-discovery.htm).<br />For reference on service names, see the [Terraform provider documentation](https:​//www.terraform.io/docs/providers/oci/guides/resource_discovery.html#services).<br />For more information, see<br />[Listing Resource Discovery Services](/iaas/Content/ResourceManager/Tasks/list-discovery-services.htm).<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
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)
compartmentIdstringA filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm).
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

SELECT examples​

Returns a list of supported services for [Resource Discovery](/iaas/Content/ResourceManager/Concepts/resource-discovery.htm).<br />For reference on service names, see the [Terraform provider documentation](https:​//www.terraform.io/docs/providers/oci/guides/resource_discovery.html#services).<br />For more information, see<br />[Listing Resource Discovery Services](/iaas/Content/ResourceManager/Tasks/list-discovery-services.htm).<br />

SELECT
name,
discoveryScope
FROM oci.resource_manager.resource_discovery_services
WHERE region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND compartmentId = '{{ compartmentId }}'
;