CreateApp

Updated at:

Creates an API Gateway application.

Operation description

  • This feature is intended for users who invoke APIs.

  • Each application has a key pair, which is used to authenticate when invoking APIs.

  • An authorization relationship must be established before an application can invoke an API. This means you must grant the application the permissions to invoke the API.

  • Each application can have only one key pair. If the key is leaked, you can reset it.

  • Each Alibaba Cloud account can create up to 1,000 applications.

  • The queries per second (QPS) limit for this API operation is 50 per user.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

apigateway:CreateApp

create

*App

acs:apigateway:{#regionId}:{#accountId}:app/*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppName

string

Yes

The name of the application. The name can contain Chinese characters, letters, digits, and underscores (_). It must start with a letter or a Chinese character and must be 4 to 26 characters in length.

CreateAppTest

Description

string

No

The description of the application. The description can be up to 180 characters in length.

test

Tag

array<object>

No

The tags of the object to which the rule applies. You can specify multiple tags.

Key, Value

object

No

Key

string

No

The tag key.

The value of n ranges from [1, 20].

env

Value

string

No

The tag value.

The value of n ranges from [1, 20]. If this parameter is specified, the corresponding Tag.N.Key with the same value of N must also be specified. Otherwise, an error occurs.

' '

AppKey

string

No

The AppKey of the application, which is used when calling APIs.

60030986

AppSecret

string

No

The AppSecret of the application.

nzyNqFkRWB2uLw86

AppCode

string

No

The AppCode of the application.

3aaf905a0a1f4f0eabc6d891dfa08afc

Extend

string

No

The extended information.

110210264071

Response elements

Element

Type

Description

Example

object

TagStatus

boolean

Indicates whether the tag exists. Valid values:

  • true: The tag exists.

  • false: The tag does not exist.

false

RequestId

string

The request ID.

BA20890E-75C7-41BC-9C8B-73276B58F550

AppId

integer

The unique ID of the application.

20112314518278

Examples

Success response

JSON format

{
  "TagStatus": false,
  "RequestId": "BA20890E-75C7-41BC-9C8B-73276B58F550",
  "AppId": 20112314518278
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.