Was this helpful?

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/oauth2/authorizationcodes

Description: Lists all authorization codes in an organization

Verb: GET
Auth: Basic Auth
Media types:
application/json
text/xml
Sample Request:
$ curl -X GET -H "Accept:application/json" \
https://api.enterprise.apigee.com/v1/o/{org_name}/oauth2/authorizationcodes \
-u myname:mypass
Sample Response:
{
  "authorizationCode" : [ {
    "attributes" : [ {
      "name" : "region",
      "value" : "south"
    } ],
    "client_id" : "kjvzAT2kR03jcZGQDod6VtMt8Lj0Ce6c",
    "code" : "m9PEEI6I",
    "createdAt" : 1343043442176,
    "createdBy" : "Admin",
    "expiresAt" : 1343045242176,
    "issuedAt" : 1343043442176,
    "lastModifiedAt" : 1343043442176,
    "lastModifiedBy" : "Admin",
    "scope" : "",
    "status" : "active"
  },
  {...}
 ]
}
Response Payload Elements:
Name Description
attributes Name/value pairs used to extend the default auth code profile
client_id The consumer key of the app
code The value of the authorization code
createdAt Unix time when the auth code was generated
createdBy User name of the Apigee user who created the auth code
expiresAt Unix time when the auth code will expire
issuedAt Unix time when the auth code was issued
lastModifiedAt Unix time when the auth code was last modified
lastModifiedBy User name of the Apigee user who last modified the auth code-
scope Comma separated list of OAuth scopes
status By default 'active', changes to 'expired' when expiry time has passed.
Errors
{
  "code" : "keymanagement.service.invalid_request-authorization_code_invalid",
  "message" : "Unable to fetch authorization code details",
  "contexts" : [ ]
}

Error Codes:
1. keymanagement.service.authorization_codes_fetch_failed

コメントを追加

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.