job_associated_resources
Creates, updates, deletes, gets or lists a job_associated_resources resource.
Overview​
| Name | job_associated_resources |
| Type | Resource |
| Id | oci.resource_manager.job_associated_resources |
Fields​
The following fields are returned by SELECT queries:
- list
A list of associated resources.
| Name | Datatype | Description |
|---|---|---|
attributes | object | Resource attribute values. Each value is represented as a key-value pair. Example: {"state": "AVAILABLE"} |
region | string | Resource region. For information about regions, see [Regions and Availability Domains](/iaas/Content/General/Concepts/regions.htm). Example: us-phoenix-1 |
resourceAddress | string | Terraform resource address. |
resourceId | string | Unique identifier for the resource. |
resourceName | string | Name of the resource. |
resourceType | string | Resource type. For more information about resource types supported for the Oracle Cloud Infrastructure (OCI) provider, see [Oracle Cloud Infrastructure Provider](https:​//registry.terraform.io/providers/oracle/oci/latest/docs). |
timeCreated | string (date-time) | The date and time when the stack was created. Format is defined by RFC3339. Example: 2022-07-25T21:10:29.600Z |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | jobId, region | opc-request-id, compartmentId, terraformResourceType, limit, page | Gets the list of resources associated with the specified job.<br />For more information, see<br />[Listing Job Resources](/iaas/Content/ResourceManager/Tasks/list-job-resources.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.
| Name | Datatype | Description |
|---|---|---|
jobId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the job. |
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) |
compartmentId | string | A filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
limit | integer | The number of items returned in a paginated List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
page | string | The value of the opc-next-page response header from the preceding List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
terraformResourceType | string | A filter to return only specified resource types. For more information about resource types supported for the Oracle Cloud Infrastructure [OCI] provider, see [Oracle Cloud Infrastructure Provider](https:​//registry.terraform.io/providers/oracle/oci/latest/docs). |
SELECT examples​
- list
Gets the list of resources associated with the specified job.<br />For more information, see<br />[Listing Job Resources](/iaas/Content/ResourceManager/Tasks/list-job-resources.htm).<br />
SELECT
attributes,
region,
resourceAddress,
resourceId,
resourceName,
resourceType,
timeCreated
FROM oci.resource_manager.job_associated_resources
WHERE jobId = '{{ jobId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND compartmentId = '{{ compartmentId }}'
AND terraformResourceType = '{{ terraformResourceType }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;