Delen via


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
deviceName
path True

string

De naam van de apparaatresource.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

subscriptionId
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

Device

De update is voltooid. De bewerking retourneert de resulterende apparaatresource.

Other Status Codes

ErrorResponse

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

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/devices/TestDevice?api-version=2021-05-01

{
  "tags": {
    "tag1": "value1",
    "tag2": "value2"
  }
}

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
createdByType

Het type identiteit waarmee de resource is gemaakt.

Device

Apparaatresource.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ProvisioningState

De huidige inrichtingsstatus.

Status

De huidige apparaatstatus.

SubResource

Verwijzing naar een andere subresource.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

TagsObject

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

DeviceType

Het type apparaat.

properties.networkFunctions

SubResource[]

De lijst met netwerkfuncties die op het apparaat zijn geïmplementeerd.

properties.provisioningState

ProvisioningState

De inrichtingsstatus van de apparaatresource.

properties.status

Status

De huidige apparaatstatus.

systemData

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

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

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

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

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.

TagsObject

Tagsobject voor patchbewerkingen.

Name Type Description
tags

object

Resourcetags.