问题描述:

Microsoft Azure released their usage API and have documented it here. As documented, they have released a new output format for the usage API. However, the output I receive doesn't seem to absolutely conform to how it has been documented:

{

"instanceData":{

"Microsoft.Resources":{

"resourceUri":"/subscriptions/152a5174-2ead-46e5-804d- 053bf15ca286/resourceGroups/Default-Web-SouthCentralUS/providers/Microsoft.Web/sites/ngincentiv",

"location":"southcentralus",

"additionalInfo":{

"AppServicePlanUri":"/subscriptions/152a5174-2ead-46e5-804d-053bf15ca286/resourceGroups/Default-Web-SouthCentralUS/providers/Microsoft.Web/serverfarms/Default1"

}

}

}

},

As you can see, I receive the value Microsoft.Resources, which has the other values nested in it, which isn't how the documentation says.

Is there any other reference document I can refer to, which is more exhaustive about the API output?

网友答案:

Unfortunately, the answer to your question is not really. The documentation for Azure does lag a long way behind their development cycle.

Which does bring special challenges to anyone trying to code against it. The best place to go to try to understand what is happening is the Azure Github Account. There is some specification documentation there (though it is lacking in places) and also some SDKs that you can pick through and try to find what you seek.

相关阅读:
Top