Azure / BillingCodeSamples

52 stars 24 forks source link

Is there a complete documentation on the new format for Azure usage API? #16

Open jobinar opened 8 years ago

jobinar commented 8 years ago

As documented here, the new usage API has the new field instanceData instead of infoFields. 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?