Solved Solved

List apps/devs pendign approval

Not applicable

Provided some API products configured for Manual approval is there a way to find all requests pending approval - kind of Edge request that returns the entire list of pending request... preferably not relying on Drupal/Rules?

Solved Solved
0 1 259
1 ACCEPTED SOLUTION
Solved Solved

kurtkanaskie
Staff

You can use the management APIs.

Get all developers and then check each for the status=inactive, for example:

GET {{MGMTSVR}}/v1/organizations/{{ORG}}/developers?expand=true

You can then set the status to active or inactive using:

POST {{MGMTSVR}}/v1/organizations/{{ORG}}/developers/helloworld@apigee.com?action=inactive

See API docs: https://apidocs.apigee.com/api/apps-developer

For Apps and API Products each has their own status.

GET {{MGMTSVR}}/v1/o/{{ORG}}/apps?expand=true

Then iterate over each app's credential's apiProducts.

apps[a].credentials[c].apiProducts[p].status == 'pending'

Then to approve you can use:

POST {{MGMTSVR}}/v1/o/{{ORG}}/developers/{{DEV-EMAIL}}/apps/{{APP-NAME}}/keys/{{KEY}}/apiproducts/{{PRODUCT}}?action=approve

See API docs: https://apidocs.apigee.com/api/developer-app-keys

View solution in original post

Solved Solved
0 0 4
1 REPLY 1
Solved Solved

kurtkanaskie
Staff

You can use the management APIs.

Get all developers and then check each for the status=inactive, for example:

GET {{MGMTSVR}}/v1/organizations/{{ORG}}/developers?expand=true

You can then set the status to active or inactive using:

POST {{MGMTSVR}}/v1/organizations/{{ORG}}/developers/helloworld@apigee.com?action=inactive

See API docs: https://apidocs.apigee.com/api/apps-developer

For Apps and API Products each has their own status.

GET {{MGMTSVR}}/v1/o/{{ORG}}/apps?expand=true

Then iterate over each app's credential's apiProducts.

apps[a].credentials[c].apiProducts[p].status == 'pending'

Then to approve you can use:

POST {{MGMTSVR}}/v1/o/{{ORG}}/developers/{{DEV-EMAIL}}/apps/{{APP-NAME}}/keys/{{KEY}}/apiproducts/{{PRODUCT}}?action=approve

See API docs: https://apidocs.apigee.com/api/developer-app-keys

View solution in original post

Solved Solved
0 0 5
Top Labels in this Space
Top Solution Authors