All Products
Search
Document Center

API Gateway:SetAppsAuthorities

Last Updated:Oct 19, 2024

Grants access permissions on a specified API to multiple applications.

Operation description

  • This operation is intended for API providers and callers.
  • API providers can authorize all applications to call their APIs.
  • API callers can authorize their own applications to call the APIs that they have purchased.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
GroupIdstringNo

The ID of the API group. This ID is generated by the system and globally unique.

523e8dc7bbe04613b5b1d726c2a7889d
ApiIdstringYes

The ID of the API. This ID is generated by the system and globally unique.

baacc592e63a4cb6a41920d9d3f91f38
StageNamestringYes

The name of the runtime environment. Valid values:

  • RELEASE
  • TEST
TEST
AppIdsstringYes

The IDs of applications. Separate multiple application IDs with commas (,). A maximum of 100 applications IDs can be entered.

2386789,3389798
DescriptionstringNo

The description of the authorization.

Queries weather based on the region name
AuthValidTimestringNo

The time (UTC) when the authorization expires. If this parameter is empty, the authorization does not expire.

Fri,05Oct201816:00:00GMT

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

D6E46F10-F26C-4AA0-BB69-FE2743D9AE62

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E46F10-F26C-4AA0-BB69-FE2743D9AE62"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history