question

MartinD-1856 avatar image
0 Votes"
MartinD-1856 asked vipullag-MSFT answered

How can I get the instanceView json data for containers/container groups using the Azure API:s?

The Microsoft.ContainerInstance/containerGroups API isn't returning any instanceView data. In the API reference for "Container Groups - List" the example that is provided includes an "instanceView" section for each container instance in the json data. It contains information about the current state of an individual container, i.e. if it's running or not etc, which I need to get my hands on. However, when I try the API using the "Try it" feature on the web page the "instanceView" section is missing from the json body. It's also missing when I call the API from Visual Studio. This is also the case for all the different API versions currently available.

So what I'm wondering is if there might be a undocumented separate "instanceView" API call, similar to that for virtual machines, if there might be a bug in the API or if I'm missing something here?

azure-container-instances
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
1 Vote"
vipullag-MSFT answered

@MartinD-1856

I have checked with internal team on this, and this is a know issue and team is working on fixing this.
For now as a work around you can get the "instanceView" json data in Container Group Get API.

Also, the upcoming new API version (2019) will have this in both Get & List API calls for Container Group.



[Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.]

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.