6.2. List Authorizations


Description

List all authorizations for the specified user account and provide the client with additional resource links to manage existing authorizations.

Method and URL Structure

Method URL Structure
GET /broker/rest/user/authorizations

Request Parameters

Not applicable

cURL Command Example

$ curl -X GET https://openshift.redhat.com/broker/rest/user/authorizations --user user@example.com:password" 

JSON Response

The API returns the authorizations resource with related resource links which have been left out for brevity. No resource links are returned if the user account does not contain any authorizations. See Chapter 6, Authorizations for more information on all authorization parameters.

{
    "api_version": 1.6,
    "data": [
        {
            "created_at": "2013-08-22T02:30:47Z",
            "expires_in": 86400,
            "expires_in_seconds": 6870,
            "id": "521577d703ef64a3120000de",
            "identity": "user@example.com",
            "note": "OpenShift Console (from 66.187.239.10 on Firefox)",
            "scopes": "session",
            "token": "187bd89d1f5172af567eb12631c45gt7415dca5c2b7jy56970b3f3a911df4697"
        }
    ],
    "messages": [
        {
            "exit_code": 0,
            "field": null,
            "severity": "info",
            "text": "List authorizations"
        }
    ],
    "status": "ok",
    "supported_api_versions": [
	    1.0,
	    1.1,
	    1.2,
	    1.3,
	    1.4,
	    1.5,
	    1.6
	],
	"type": "authorizations",
	"version": "1.6"
}

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.