Devices - Update Tags
Hiermee worden apparaattags bijgewerkt.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/devices/{deviceName}?api-version=2021-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
device
|
path | True |
string |
De naam van de apparaatresource. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
subscription
|
path | True |
string minLength: 1 |
De id van het doelabonnement. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
Name | Type | Description |
---|---|---|
tags |
object |
Resourcetags. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De update is voltooid. De bewerking retourneert de resulterende apparaatresource. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Update hybrid network device tags
Voorbeeldaanvraag
Voorbeeldrespons
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/devices/TestDevice",
"name": "TestDevice",
"type": "Microsoft.HybridNetwork/devices",
"location": "eastus",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"status": "NotRegistered",
"provisioningState": "Succeeded",
"deviceType": "AzureStackEdge",
"azureStackEdge": {
"id": "/subscriptions/subid1/resourcegroups/rg2/providers/Microsoft.DataboxEdge/DataboxEdgeDevices/TestDataboxEdgeDeviceName"
},
"networkFunctions": [
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/TestNetworkFunction"
}
]
}
}
Definities
Name | Description |
---|---|
created |
Het type identiteit waarmee de resource is gemaakt. |
Device |
Apparaatresource. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Provisioning |
De huidige inrichtingsstatus. |
Status |
De huidige apparaatstatus. |
Sub |
Verwijzing naar een andere subresource. |
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
Tags |
Tagsobject voor patchbewerkingen. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Waarde | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
Device
Apparaatresource.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
De geografische locatie waar de resource zich bevindt |
name |
string |
De naam van de resource |
properties.deviceType |
Device |
Het type apparaat. |
properties.networkFunctions |
De lijst met netwerkfuncties die op het apparaat zijn geïmplementeerd. |
|
properties.provisioningState |
De inrichtingsstatus van de apparaatresource. |
|
properties.status |
De huidige apparaatstatus. |
|
systemData |
De systeemmetagegevens met betrekking tot deze resource. |
|
tags |
object |
Resourcetags. |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
ProvisioningState
De huidige inrichtingsstatus.
Waarde | Description |
---|---|
Accepted | |
Canceled | |
Deleted | |
Deleting | |
Failed | |
Succeeded | |
Unknown |
Status
De huidige apparaatstatus.
Waarde | Description |
---|---|
Deleted | |
NotRegistered | |
Registered | |
Unknown |
SubResource
Verwijzing naar een andere subresource.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |
TagsObject
Tagsobject voor patchbewerkingen.
Name | Type | Description |
---|---|---|
tags |
object |
Resourcetags. |