更新azure api管理服务的位置时出错

时间:2017-08-08 11:57:29

标签: azure azure-api-management

我尝试使用rest api更新创建的azure管理api服务实例的区域。

网址 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": "apimgmt-noreply@mail.windowsazure.com",
                "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
            }
        }
    }
}

接头

授权承载者 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.'."
  }
}

我做错了吗?

0 个答案:

没有答案