你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Tag Rules - List By New Relic Monitor Resource

List TagRule resources by NewRelicMonitorResource

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules?api-version=2024-10-01

URI Parameters

Name In Required Type Description
monitorName
path True

string

Name of the Monitors resource

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

TagRuleListResult

ARM operation completed successfully.

Other Status Codes

ErrorResponse

An unexpected error response.

Security

azure_auth

Microsoft Entra ID OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen
TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen

TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgopenapi/providers/NewRelic.Observability/monitors/ipxmlcbonyxtolzejcjshkmlron/tagRules?api-version=2024-10-01

Sample response

{
  "value": [
    {
      "properties": {
        "provisioningState": "Accepted",
        "logRules": {
          "sendAadLogs": "Enabled",
          "sendSubscriptionLogs": "Enabled",
          "sendActivityLogs": "Enabled",
          "filteringTags": [
            {
              "name": "saokgpjvdlorciqbjmjxazpee",
              "value": "sarxrqsxouhdjwsrqqicbeirdb",
              "action": "Include"
            }
          ]
        },
        "metricRules": {
          "userEmail": "test@testing.com",
          "filteringTags": [
            {
              "name": "saokgpjvdlorciqbjmjxazpee",
              "value": "sarxrqsxouhdjwsrqqicbeirdb",
              "action": "Include"
            }
          ]
        }
      },
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NewRelic.Observability/monitors/myMonitor",
      "name": "ddoieozflu",
      "type": "roafonrkfwwuv",
      "systemData": {
        "createdBy": "wqrkemruqrvclsoevdftfeof",
        "createdByType": "User",
        "createdAt": "2022-09-02T00:39:52.964Z",
        "lastModifiedBy": "usdyoriebtakpdotcfp",
        "lastModifiedByType": "User",
        "lastModifiedAt": "2022-09-02T00:39:52.964Z"
      }
    }
  ],
  "nextLink": "http://testlink.com"
}

TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgopenapi/providers/NewRelic.Observability/monitors/ipxmlcbonyxtolzejcjshkmlron/tagRules?api-version=2024-10-01

Sample response

{
  "value": [
    {
      "properties": {},
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NewRelic.Observability/monitors/myMonitor"
    }
  ]
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

FilteringTag

The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.

LogRules

Set of rules for sending logs for the Monitor resource.

MetricRules

Set of rules for sending metrics for the Monitor resource.

ProvisioningState

Provisioning State of the Monitor resource

SendAadLogsStatus

Indicates whether AAD logs are being sent.

SendActivityLogsStatus

Indicates whether activity logs are being sent.

SendMetricsStatus

Indicates whether metrics are being sent.

SendSubscriptionLogsStatus

Indicates whether subscription logs are being sent.

systemData

Metadata pertaining to creation and last modification of the resource.

TagAction

Valid actions for a filtering tag. Exclusion takes priority over inclusion.

TagRule

A tag rule belonging to NewRelic account

TagRuleListResult

The response of a TagRule list operation.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

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.

FilteringTag

The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.

Name Type Description
action

TagAction

Valid actions for a filtering tag. Exclusion takes priority over inclusion.

name

string

The name (also known as the key) of the tag.

value

string

The value of the tag.

LogRules

Set of rules for sending logs for the Monitor resource.

Name Type Description
filteringTags

FilteringTag[]

List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.

sendAadLogs

SendAadLogsStatus

Flag specifying if AAD logs should be sent for the Monitor resource.

sendActivityLogs

SendActivityLogsStatus

Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.

sendSubscriptionLogs

SendSubscriptionLogsStatus

Flag specifying if subscription logs should be sent for the Monitor resource.

MetricRules

Set of rules for sending metrics for the Monitor resource.

Name Type Description
filteringTags

FilteringTag[]

List of filtering tags to be used for capturing metrics.

sendMetrics

SendMetricsStatus

Flag specifying if metrics should be sent for the Monitor resource.

userEmail

string

User Email

ProvisioningState

Provisioning State of the Monitor resource

Name Type Description
Accepted

string

Monitor resource creation request accepted

Canceled

string

Monitor resource creation canceled

Creating

string

Monitor resource creation started

Deleted

string

Monitor resource is deleted

Deleting

string

Monitor resource deletion started

Failed

string

Monitor resource creation failed

NotSpecified

string

Monitor resource state is unknown

Succeeded

string

Monitor resource creation successful

Updating

string

Monitor resource is being updated

SendAadLogsStatus

Indicates whether AAD logs are being sent.

Name Type Description
Disabled

string

Enabled

string

SendActivityLogsStatus

Indicates whether activity logs are being sent.

Name Type Description
Disabled

string

Enabled

string

SendMetricsStatus

Indicates whether metrics are being sent.

Name Type Description
Disabled

string

Enabled

string

SendSubscriptionLogsStatus

Indicates whether subscription logs are being sent.

Name Type Description
Disabled

string

Enabled

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

TagAction

Valid actions for a filtering tag. Exclusion takes priority over inclusion.

Name Type Description
Exclude

string

Include

string

TagRule

A tag rule belonging to NewRelic account

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties.logRules

LogRules

Set of rules for sending logs for the Monitor resource.

properties.metricRules

MetricRules

Set of rules for sending metrics for the Monitor resource.

properties.provisioningState

ProvisioningState

Provisioning State of the resource

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

TagRuleListResult

The response of a TagRule list operation.

Name Type Description
nextLink

string

The link to the next page of items

value

TagRule[]

The TagRule items on this page