Dela via


Infrastructure Resources - Patch

Uppdatera en infrastrukturResurs

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}?api-version=2023-11-14-preview

URI-parametrar

Name I Obligatorisk Typ Description
infrastructureResourceName
path True

string

pattern: [a-zA-Z0-9_.()-]{0,79}$

Namnet på infrastrukturresursen i utrymmet.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

spaceName
path True

string

pattern: [a-zA-Z0-9_.()-]{0,79}$

Namnet på utrymmet

subscriptionId
path True

string

minLength: 1

ID för målprenumerationen.

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.resourceId

string

ID för infrastrukturresursen.

properties.resourceType

string

Typ av infrastrukturresurs.

Svar

Name Typ Description
200 OK

InfrastructureResource

ARM-åtgärden har slutförts.

Other Status Codes

ErrorResponse

Ett oväntat felsvar.

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

PatchInfrastructureResource

Exempelbegäran

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1?api-version=2023-11-14-preview

{
  "properties": {
    "resourceType": "Microsoft.ApiManagement/service",
    "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"
  }
}

Exempelsvar

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1",
  "name": "InfrastructureResource1",
  "type": "Microsoft.IntegrationSpaces/spaces/infrastructureresources",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceType": "Microsoft.ApiManagement/service",
    "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"
  }
}

Definitioner

Name Description
createdByType

Den typ av identitet som skapade resursen.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorDetail

Felinformationen.

ErrorResponse

Felsvar

InfrastructureResource

En infrastrukturresurs under Utrymme.

InfrastructureResourceUpdate

Den typ som används för uppdateringsåtgärder i InfrastructureResource.

object

Representera en modell

ProvisioningState

Status för den aktuella åtgärden.

systemData

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

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Ytterligare information.

type

string

Ytterligare informationstyp.

ErrorDetail

Felinformationen.

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Ytterligare information om felet.

code

string

Felkoden.

details

ErrorDetail[]

Felinformationen.

message

string

Felmeddelandet.

target

string

Felmålet.

ErrorResponse

Felsvar

Name Typ Description
error

ErrorDetail

Felobjektet.

InfrastructureResource

En infrastrukturresurs under Utrymme.

Name Typ Description
id

string

Fullständigt kvalificerat resurs-ID för resursen. Ex – /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Namnet på resursen

properties.provisioningState

ProvisioningState

Status för den senaste åtgärden.

properties.resourceId

string

ID för infrastrukturresursen.

properties.resourceType

string

Typ av infrastrukturresurs.

systemData

systemData

Azure Resource Manager-metadata som innehåller createdBy och modifiedBy information.

type

string

Resurstypen. Till exempel "Microsoft.Compute/virtualMachines" eller "Microsoft.Storage/storageAccounts"

InfrastructureResourceUpdate

Den typ som används för uppdateringsåtgärder i InfrastructureResource.

Name Typ Description
properties.resourceId

string

ID för infrastrukturresursen.

properties.resourceType

string

Typ av infrastrukturresurs.

object

Representera en modell

ProvisioningState

Status för den aktuella åtgärden.

Värde Description
Accepted
Canceled

Resursskapandet avbröts.

Deleting
Failed

Det gick inte att skapa resurser.

Provisioning
Succeeded

Resursen har skapats.

Updating

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

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

createdByType

Den typ av identitet som senast ändrade resursen.