注意:此产品的某些方面处于 Beta 版阶段。Hybrid 安装选项是 GA。要加入 Beta 版计划,请与您的 Apigee 代表联系。

Method: organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct

Approve or revoke an app's consumer key. After a consumer key is approved, the app can use it to access APIs.

A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee hybrid checks the status of the consumer key and if set to revoked will not allow access to the API.

HTTP request

POST https://apigee.googleapis.com/v1/{name=organizations/*/developers/*/apps/*/keys/*/apiproducts/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the API product in the developer app key in the following format: organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}

Authorization requires the following IAM permission on the specified resource name:

  • apigee.appkeys.manage

Query parameters

Parameters
action

string

Approve or revoke the consumer key by setting this value to approve or revoke, respectively.

Request body

The request body must be empty.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform