Rest API Commands
List of the Rest API commands for Resource Analytics.
- Resource Analytics Instance Resource Creation
- Resource Analytics Instance Resource List
- Resource Analytics Instance Resource Get
- Resource Analytics Instance Resource Update
- Create Resource Analytics Instance Tenancy Attachment
- Resource Analytics Instance Tenancy Attachment List
- Get Resource Analytics Instance Tenancy Attachment
- Put Resource Analytics Instance Tenancy Attachment
- Delete Resource Analytics Instance Tenancy Attachment
- Enable OAC Instance on Resource Analytics Instance
- Disable OAC Instance on Resource Analytics Instance
Resource Analytics Instance Resource Creation
- Request
- Path:
post /20241031/resourceAnalyticsInstancesSomething here Field Required Data Type Notes opc-retry-tokenNo string Header parameter opc-request-idNo string The client request ID for tracing. compartmentIdYes string The OCID of the compartment to store this resource in. displayNameNo string A user-friendly name. descriptionNo string A user-defined description of this resource. freeformTagsNo Object The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. definedTagsNo Object The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags.Example: {"Operations": {"CostCenter": "42"}}includedRegionsYes string[] List of region IDs to include data collection from. For example, us-ashburn-1. At least one region is required.adwAdminPasswordYes Object AdwAdminPasswordDetails (VaultSecretPasswordDetails or PlainTextPasswordDetails)Password for the ADW to be created in User Tenancy. Can either be a vault secret or plain text. If plain text, the password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It can't contain the double quote symbol (") or the username admin, regardless of casing.VaultSecretPasswordDetails{ "passwordType": "VAULT_SECRET", // required "secretId": "<ocid>", // required }PlainTextPasswordDetails{ "passwordType": "PLAIN_TEXT", // required "password": "plain_text_password", // required }subnetIdYes string The OCID of the subnet the resource is associated with. isMutualTlsRequiredNo Boolean Require mutual TLS (mTLS) when authenticating connections to the Autonomous database. Default is false. isBringYourOwnLicenseNo Boolean Use the Bring Your Own License (BYOL) feature when creating the ADW instance. Default is false.nsgIdsNo string[] List of network security groups. - Response
- Headers
Something here 2 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty
Resource Analytics Instance Resource List
- Request
- Path:
get /20241031/resourceAnalyticsInstancesSomething here Field Required Data Type Notes compartmentIdYes string The ID of the compartment in which to list resources. pageNo string The page token representing the page at which to start retrieving results. This is retrieved from a previous list call. limitNo int The maximum number of items to return. lifecycleStateNo string A filter to return only resources their lifecycleStatematches the specifiedlifecycleState.sortOrderNo string The sort order to use, either ascordesc.sortByNo string The field to sort by. Only one sort order may be provided. The default order for timeCreatedis descending. The default order fordisplayNameis ascending. If no value is specified,timeCreatedis the default.opc-request-idNo string (Header) The client request ID for tracing. - Response
- Headers
Something here 2 Name Description opc-request-idUnique identifier for the request. opc-next-pageFor pagination of a list of items. - Body
- Array of
ResourceAnalyticsInstanceSummary[{ "id" : "ocid1.TBD.oc1.phx.<unique_ID>", "compartmentId": "ocid1.tenancy.oc1..<unique_ID>", "displayName" : "my little warehouse", "description": "Home region tenancy" "lifecycleState" : "PROVISIONING", "lifecycleDetails": "string", "timeCreated" : "timestamp", "timeUpdated" : "timestamp", "freeformTags": {}, "definedTags": {}, "systemTags": {}, }]
Resource Analytics Instance Resource Get
- Request
- Path:
get /20241031/resourceAnalyticsInstances/<ocid> - Response
- Headers
Something here 2 Name Description opc-request-idUnique identifier for the request. - Body
- Returns
ResourceAnalyticsInstance{ "id": "ocid1.TBD.oc1.phx.<unique_ID>", "compartmentId": <ocid from resourceAnalyticsInstance>, "displayName": "my little warehouse", "description": "Warehouse covers our top tenancies", "includedRegions": [ "string" ], "adwId": "OCID", "adwName": "generated name", "oacId": "OCID", "oacName": "generated name", "lifecycleState": "ACTIVE", "lifecycleDetails": "string", "timeCreated": "timestamp", "timeUpdated": "timestamp", "freeformTags": {}, "definedTags": {}, "systemTags": {}, }
Resource Analytics Instance Resource Update
- Request
- Path:
put /20241031/resourceAnalyticsInstances/<ocid>Something here Field Required Data Type Notes opc-retry-tokenNo string Header parameter pageNo string The client request ID for tracing. limitNo string A user-friendly name. A user-defined description of this resource. lifecycleStateNo Object The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. sortOrderNo Object The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. For example: {"Operations": {"CostCenter": "42"}}sortByNo string[] The list of region IDs to include data collection from. For example, us-ashburn-1. At least one region is required if updating.An update replaces all existing values.
- Response
- Headers
Something here 2 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty
Create Resource Analytics Instance Tenancy Attachment
- Request
- Path:
post /20241031/tenancyAttachmentsSomething here Field Required Data Type Notes opc-retry-tokenNo string Header parameter opc-request-idNo string Header parameter. The client request ID for tracing. resourceAnalyticsInstanceIdYes string The OCID of the resource analytics instance. tenancyIdYes string The Tenancy OCID. descriptionNo string A description of the tenancy. - Response
- Headers
Something here 2 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty
Resource Analytics Instance Tenancy Attachment List
- Request
- Path:
get /20241031/tenancyAttachmentsSomething here Field Required Data Type Notes compartmentIdYes string The ID of the compartment in which to list resources. pageNo string The page token representing the page at which to start retrieving results. This is retrieved from a previous list call. limitNo int The maximum number of items to return. lifecycleStateNo string A filter to return only resources their lifecycleStatematches the givenlifecycleState.sortOrderNo string The sort order to use, either ascordesc.sortByNo string The field to sort by. Only one sort order may be provided. The default order for timeCreatedis descending. The default order fordisplayNameis ascending. If no value is specified,timeCreatedis the default.opc-request-idNo string Header parameter. The client request ID for tracing. - Response
- Returns an array of
TenancyAttachmentSummaryobjects.[{ "id": <ocid>, "description": "Tenancy used for internal business", "resourceAnalyticsInstanceId": <ocid>, "compartmentId": <ocid>, "tenancyId": <ocid>, "isReportingTenancy": boolean, "timeCreated" : "timestamp", "timeUpdated" : "timestamp", "lifecycleState": "PROVISIONING", "lifecycleDetails": "string", "systemTags": {}, }]
Get Resource Analytics Instance Tenancy Attachment
- Request
- Path:
get /20241031/tenancyAttachments/<ocid> - Response
- Headers
Something here 2 Name Description opc-request-idUnique identifier for the request. - Body
- Returns
tenancyAttachmentDetailsinstance{ "id": <ocid>, "description": "Tenancy used for internal business", "resourceAnalyticsInstanceId": <ocid>, "compartmentId": <ocid>, "tenancyId": <ocid>, "isReportingTenancy": boolean, "timeCreated" : "timestamp", "timeUpdated" : "timestamp", "lifecycleState": "PROVISIONING", "lifecycleDetails": "string", "systemTags": {}, }
Put Resource Analytics Instance Tenancy Attachment
- Request
- Path:
put /20241031/tenancyAttachments/<ocid>HeadersSomething here 1 Field Required Data Type Description descriptionYes string A description of the tenancy. Something here 2 Name Description opc-request-idUnique identifier for the request. - Response
- Headers
Something here 3 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty
Delete Resource Analytics Instance Tenancy Attachment
- Request
- Path:
delete /20241031/tenancyAttachments/<ocid> - Response
- Headers
Something here 3 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request.
Enable OAC Instance on Resource Analytics Instance
- Request
- Path:
post /20241031/analyticsWarehouses/<ocid>/actions/enableOacSomething here Field Required Data Type Description opc-retry-tokenNo string Header parameter opc-request-idNo string Header parameter. The client request ID for tracing. resourceAnalyticsInstanceIdYes string The OCID of the Resource Analytics instance. attachmentTypeYes enum The only possible value is MANAGED.attachmentDetailsYes Object For public OAC { "idcsDomainId": "<ocid>", // required "isBringYourOwnLicense": boolean, // optional, default false } For Private OAC { "idcsDomainId": "<ocid>", // required "isBringYourOwnLicense": boolean, // optional, default false "networkDetails": { "subnetId": "<ocid>", // required "nsgIds": ["<ocid>", "<ocid>"] } } - Response
- Headers
Something here 2 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty
Disable OAC Instance on Resource Analytics Instance
- Request
- Path:
post /20241031/resourceAnalyticsInstances/<resourceAnalyticsInstanceId>/actions/disableOacSomething here Field Required Data Type Description opc-retry-tokenNo string Header parameter opc-request-idNo string Header parameter. The client request ID for tracing. - Response
- Headers
Something here 2 Name Description etagFor optimistic concurrency control. opc-request-idUnique identifier for the request. opc-work-request-idThe OCID of the work request. - Body
- Empty