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

Martin D 61 Reputation points
2020-05-31T15:50:28.747+00:00

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
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
709 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 26,396 Reputation points
    2020-06-05T09:20:37.863+00:00

    @Martin D

    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.]

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.