Bug 1373709 - Documentation: working example of listing out container/pod usage information
Summary: Documentation: working example of listing out container/pod usage information
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.6.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: cfme-future
Assignee: Gregg Tanzillo
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On: 1354029 1374377
Blocks: 1373712 1373714 1373715 1373717 1373718
TreeView+ depends on / blocked
 
Reported: 2016-09-07 03:11 UTC by Mike Barrett
Modified: 2021-06-10 20:13 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1354029
: 1373712 (view as bug list)
Environment:
Last Closed: 2017-11-08 17:40:21 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 3 Mike Barrett 2016-09-15 21:37:52 UTC
We have been successful to pull the projects associated to a provider (https://{cloudform-domain}/api/providers/{provider_ems_id}?attributes=container_projects); I am currently at not sure how to progress any further to get additional information regarding the project or the labels/tags associated with it.
 
Sample results:
{
        "href" : "https://XXXXX.uhc.com/api/providers/20000000000001",
        "id" : 20000000000001,
        "name" : "ELR Core",
        "created_on" : "2016-07-05T18:54:40Z",
        "updated_on" : "2016-09-15T13:48:34Z",
        "guid" : "ee02a9f4-42e1-11e6-a3e3-00505699174f",
        "zone_id" : 20000000000001,
        "type" : "ManageIQ::Providers::OpenshiftEnterprise::ContainerManager",
        "last_refresh_date" : "2016-09-15T13:48:34Z",
        "tenant_id" : 20000000000001,
        "container_projects" : [{
                        "id" : 20000000000001,
                        "ems_ref" : "119a9419-3330-11e6-b734-005056a46128",
                        "name" : "16-npatel28-dev",
                        "ems_created_on" : "2016-06-15T19:33:42Z",
                        "resource_version" : "15340275",
                        "display_name" : "16-npatel28-dev",
                        "ems_id" : 20000000000001,
                        "created_on" : "2016-07-05T18:55:26Z"
                }, {
                        "id" : 20000000000002,
                        "ems_ref" : "ef51c82d-332f-11e6-b734-005056a46128",
                        "name" : "16-npatel28-tst",
                        "ems_created_on" : "2016-06-15T19:32:45Z",
                        "resource_version" : "15339819",
                        "display_name" : "16-npatel28-tst",
                        "ems_id" : 20000000000001,
                        "created_on" : "2016-07-05T18:55:26Z"
                }, {
                …
                }
        ],
        "actions" : [{
…
                }
        ]
}
 
Please let me know if there is any additional URI parameters or other API calls that I can invoke access a projects tags/labels

Comment 4 Tsai Li Ming 2017-06-28 16:02:23 UTC
What about resource quota / limit range? Can we add that?


Note You need to log in before you can comment on or make changes to this bug.