나머지 API를 사용하여 만든 azure 관리 API 서비스 인스턴스의 지역을 업데이트하려고합니다.
URL- https: //management.azure.com/subscriptions/b0474e6c-9d1c-4b84-87f5-27ef6aad5e5e/resourceGroups/res1/providers/Microsoft.ApiManagement/service/cloud1? api - version=2017-03-01
신체
{
"parameters": {
"serviceName": "cloud1",
"resourceGroupName": "res1",
"api-version": "2017-03-01",
"subscriptionId": "b0474e6c-9d1c-4b84-87f5-27ef6aad5e5e",
"parameters": {
"location": "North Central US"
}
},
"responses": {
"200": {
"id": "/subscriptions/b0474e6c-9d1c-4b84-87f5-27ef6aad5e5e/resourceGroups/res1/providers/Microsoft.ApiManagement/service/cloud1",
"name": "",
"type": "Microsoft.ApiManagement/service",
"tags": {},
"location": "Central US",
"etag": "AAAAAACYO/A=",
"properties": {
"publisherEmail": "",
"publisherName": "",
"notificationSenderEmail": "[email protected]",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2017-02-14T04:33:06.0312071Z",
"gatewayUrl": "https://cloud1.azure-api.net",
"portalUrl": "https://cloud1.portal.azure-api.net",
"managementApiUrl": "https://cloud1.management.azure-api.net",
"scmUrl": "https://cloud1.scm.azure-api.net",
"hostnameConfigurations": [],
"staticIps": [
"40.66.160.152"
],
"additionalLocations": null,
"virtualNetworkConfiguration": null,
"customProperties": null,
"virtualNetworkType": "None"
},
"sku": {
"name": "Developer",
"capacity": 1
}
}
}
}
헤더
Authorization Bearer Content-Type application / json
아래 오류가 발생합니다.
{
"error": {
"code": "InvalidRequestContent",
"message": "The request content was invalid and could not be deserialized: 'Could not find member 'parameters' on object of type 'ResourceDefinition'. Path 'parameters', line 2, position 15.'."
}
}
내가 뭘 잘못하고 있니 ??
페이로드가 잘못되었습니다. 서비스 생성과 동일해야합니다.
{
"location": "westus",
"properties": {
"publisherEmail": "...",
"publisherName": "..."
},
"sku": {
"name": "Developer",
"capacity": 1
}
}
하지만 APIM 서비스의 마스터 리전 변경은 지원되지 않으므로 새 서비스를 생성하고 기존 서비스를 삭제해야합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다