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 |
---|---|---|---|---|
infrastructure
|
path | True |
string pattern: [a-zA-Z0-9_.()-]{0,79}$ |
Namnet på infrastrukturresursen i utrymmet. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
Namnet på resursgruppen. Namnet är skiftlägesokänsligt. |
space
|
path | True |
string pattern: [a-zA-Z0-9_.()-]{0,79}$ |
Namnet på utrymmet |
subscription
|
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 |
ARM-åtgärden har slutförts. |
|
Other Status Codes |
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 |
---|---|
created |
Den typ av identitet som skapade resursen. |
Error |
Ytterligare information om resurshanteringsfelet. |
Error |
Felinformationen. |
Error |
Felsvar |
Infrastructure |
En infrastrukturresurs under Utrymme. |
Infrastructure |
Den typ som används för uppdateringsåtgärder i InfrastructureResource. |
object |
Representera en modell |
Provisioning |
Status för den aktuella åtgärden. |
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 |
ErrorAdditionalInfo
Ytterligare information om resurshanteringsfelet.
Name | Typ | Description |
---|---|---|
info |
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. |
ErrorResponse
Felsvar
Name | Typ | Description |
---|---|---|
error |
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 |
Status för den senaste åtgärden. |
|
properties.resourceId |
string |
ID för infrastrukturresursen. |
properties.resourceType |
string |
Typ av infrastrukturresurs. |
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 |
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. |