这是indexloc提供的服务,不要输入任何密码
Skip to content

[FR] Approve usage of products in key apps #628

@peruzzof

Description

@peruzzof

Is your feature request related to a problem? Please describe.
I am automating the renewal of app keys, per design our products are set as "private". This means that whenever I create a new key it is in the "pending" state and there is no existing way to approve it.

Describe the solution you'd like
Implement the new commands:
apigeecli apps keys product approve
apigeecli apps keys product revoke

It must receive the same arguments as the keys get, with the additional list of products to be approved.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
This is the result of the "keys get" command:

{
        "apiProducts": [
                {
                        "apiproduct": "***REDACTED***",
                        "status": "pending"
                }
        ],
        "consumerKey": "***REDACTED***",
        "consumerSecret": "***REDACTED***",
        "expiresAt": "1769081929988",
        "issuedAt": "1737545929988",
        "status": "approved"
}

The method to be used is https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.developers.apps.keys.apiproducts/updateDeveloperAppKeyApiProduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions