Data Collection Rule Associations - Create
Skapar eller uppdaterar en association.
PUT https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}?api-version=2023-03-11
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
association
|
path | True |
string |
Namnet på associationen. Namnet är skiftlägesokänsligt. |
resource
|
path | True |
string minLength: 1 |
Resursens identifierare. |
api-version
|
query | True |
string minLength: 1 |
DEN API-version som ska användas för den här åtgärden. |
Begärandetext
Name | Typ | Description |
---|---|---|
properties.dataCollectionEndpointId |
string |
Resurs-ID för den datainsamlingsslutpunkt som ska associeras. |
properties.dataCollectionRuleId |
string |
Resurs-ID för datainsamlingsregeln som ska associeras. |
properties.description |
string |
Beskrivning av associationen. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Associationen har uppdaterats |
|
201 Created |
Associationen har skapats |
|
Other Status Codes |
Fel |
Säkerhet
azure_auth
Azure Active Directory OAuth2 Flow
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
Create or update association |
Create or update association with a data collection endpoint |
Create or update association
Exempelbegäran
PUT https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2023-03-11
{
"properties": {
"dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
}
}
Exempelsvar
{
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation",
"name": "myAssociation",
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"properties": {
"dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2024-03-22T19:15:08.2155156Z",
"lastModifiedBy": "user1",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
},
"etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
{
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation",
"name": "myAssociation",
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"properties": {
"dataCollectionRuleId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2024-03-22T19:15:08.2155156Z",
"lastModifiedBy": "user1",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
},
"etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
Create or update association with a data collection endpoint
Exempelbegäran
PUT https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint?api-version=2023-03-11
{
"properties": {
"dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
}
}
Exempelsvar
{
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint",
"name": "configurationAccessEndpoint",
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"properties": {
"dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2024-03-22T19:15:08.2155156Z",
"lastModifiedBy": "user1",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
},
"etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
{
"id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm/providers/Microsoft.Insights/dataCollectionRuleAssociations/configurationAccessEndpoint",
"name": "configurationAccessEndpoint",
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"properties": {
"dataCollectionEndpointId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2024-03-22T19:15:08.2155156Z",
"lastModifiedBy": "user1",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-03-22T19:15:08.2155156Z"
},
"etag": "00000836-0000-0100-0000-65fdd8bc0000"
}
Definitioner
Name | Description |
---|---|
created |
Den typ av identitet som skapade resursen. |
Data |
Definition av allmän ARM-proxyresurs. |
Error |
Ytterligare information om resurshanteringsfelet. |
Error |
Felinformationen. |
Error |
Felsvar |
Known |
Resursetableringstillståndet. |
Metadata |
Metadata om resursen |
System |
Metadata som rör skapande och senaste ändring av resursen. |
createdByType
Den typ av identitet som skapade resursen.
Värde | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DataCollectionRuleAssociationProxyOnlyResource
Definition av allmän ARM-proxyresurs.
Name | Typ | Description |
---|---|---|
etag |
string |
Resursentitetstagg (ETag). |
id |
string |
Fullständigt kvalificerat ID för resursen. |
name |
string |
Namnet på resursen. |
properties.dataCollectionEndpointId |
string |
Resurs-ID för den datainsamlingsslutpunkt som ska associeras. |
properties.dataCollectionRuleId |
string |
Resurs-ID för datainsamlingsregeln som ska associeras. |
properties.description |
string |
Beskrivning av associationen. |
properties.metadata |
Metadata om resursen |
|
properties.provisioningState |
Resursetableringstillståndet. |
|
systemData |
Metadata som rör skapande och senaste ändring av resursen. |
|
type |
string |
Resurstypen. |
ErrorAdditionalInfo
Ytterligare information om resurshanteringsfelet.
Name | Typ | Description |
---|---|---|
info |
object |
Ytterligare information. |
type |
string |
Ytterligare informationstyp. |
ErrorDetail
Felinformationen.
Name | Typ | Description |
---|---|---|
additionalInfo |
Ytterligare information om felet. |
|
code |
string |
Felkoden. |
details |
Felinformationen. |
|
message |
string |
Felmeddelandet. |
target |
string |
Felmålet. |
ErrorResponseCommonV2
Felsvar
Name | Typ | Description |
---|---|---|
error |
Felobjektet. |
KnownDataCollectionRuleAssociationProvisioningState
Resursetableringstillståndet.
Värde | Description |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
Metadata
Metadata om resursen
Name | Typ | Description |
---|---|---|
provisionedBy |
string |
Azure erbjuder hantering av den här resursen åt kunden. |
provisionedByImmutableId |
string |
Oföränderligt ID för Azure som erbjuder hantering av den här resursen åt kunden. |
provisionedByResourceId |
string |
Resurs-ID för Azure-erbjudandet som hanterar den här resursen för kundens räkning. |
SystemData
Metadata som rör skapande och senaste ändring av resursen.
Name | Typ | Description |
---|---|---|
createdAt |
string (date-time) |
Tidsstämpeln för resursskapande (UTC). |
createdBy |
string |
Identiteten som skapade resursen. |
createdByType |
Den typ av identitet som skapade resursen. |
|
lastModifiedAt |
string (date-time) |
Tidsstämpeln för resursens senaste ändring (UTC) |
lastModifiedBy |
string |
Identiteten som senast ändrade resursen. |
lastModifiedByType |
Den typ av identitet som senast ändrade resursen. |