Dela via


Monitors - List Monitored Resources

List the resources currently being monitored by the Datadog monitor resource.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources?api-version=2023-01-01

URI Parameters

Name In Required Type Description
monitorName
path True

string

Monitor resource name

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

MonitoredResourceListResponse

Success

Other Status Codes

ErrorResponse

Default error response.

Examples

Monitors_ListMonitoredResources

Sample request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/listMonitoredResources?api-version=2023-01-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault",
      "sendingMetrics": true,
      "reasonForMetricsStatus": "CapturedByRules",
      "sendingLogs": true,
      "reasonForLogsStatus": "CapturedByRules"
    }
  ]
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

MonitoredResource

The properties of a resource currently being monitored by the Datadog monitor resource.

MonitoredResourceListResponse

Response of a list operation.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

MonitoredResource

The properties of a resource currently being monitored by the Datadog monitor resource.

Name Type Description
id

string

The ARM id of the resource.

reasonForLogsStatus

string

Reason for why the resource is sending logs (or why it is not sending).

reasonForMetricsStatus

string

Reason for why the resource is sending metrics (or why it is not sending).

sendingLogs

boolean

Flag indicating if resource is sending logs to Datadog.

sendingMetrics

boolean

Flag indicating if resource is sending metrics to Datadog.

MonitoredResourceListResponse

Response of a list operation.

Name Type Description
nextLink

string

Link to the next set of results, if any.

value

MonitoredResource[]

Results of a list operation.