你当前正在访问 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 |
---|---|---|---|---|
monitor
|
path | True |
string |
Name of the Monitors resource |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
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 |
ARM operation completed successfully. |
|
Other Status Codes |
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
Tag |
Tag |
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 |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Filtering |
The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. |
Log |
Set of rules for sending logs for the Monitor resource. |
Metric |
Set of rules for sending metrics for the Monitor resource. |
Provisioning |
Provisioning State of the Monitor resource |
Send |
Indicates whether AAD logs are being sent. |
Send |
Indicates whether activity logs are being sent. |
Send |
Indicates whether metrics are being sent. |
Send |
Indicates whether subscription logs are being sent. |
system |
Metadata pertaining to creation and last modification of the resource. |
Tag |
Valid actions for a filtering tag. Exclusion takes priority over inclusion. |
Tag |
A tag rule belonging to NewRelic account |
Tag |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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 |
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 |
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 |
Flag specifying if AAD logs should be sent for the Monitor resource. |
|
sendActivityLogs |
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. |
|
sendSubscriptionLogs |
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 |
List of filtering tags to be used for capturing metrics. |
|
sendMetrics |
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 |
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 |
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 |
Set of rules for sending logs for the Monitor resource. |
|
properties.metricRules |
Set of rules for sending metrics for the Monitor resource. |
|
properties.provisioningState |
Provisioning State of the resource |
|
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 |
Tag |
The TagRule items on this page |