All Products
Search
Document Center

Operation Orchestration Service:CreateApplication

Last Updated:Feb 10, 2023

Creates an application.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
oos:CreateApplicationWrite
  • OOS
    acs:oos:{#regionId}:{#accountId}:application/*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of region in which you want to create an application. Valid value: cn-hangzhou.

cn-hangzhou
NamestringYes

The name of the application.

MyApplication
DescriptionstringNo

The description of the application.

application
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmxsn4m******
TagsobjectNo

The tags.

ClientTokenstringNo

ClientToken.

TF-CreateApplication-1647587475-84104b89-eba5-47a8-b2fd-807b8b7d

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

274917E8-8E74-5928-A82F-4940F52F7ACB
Applicationobject

The details of the application.

Tagsobject

The tags.

string

The tags.

{"k1":"v1","k2":"v2"}
Namestring

The name of the application.

Myapplication
UpdateDatestring

The time when the details of the application was last modified.

2021-09-07T09:17:46Z
Descriptionstring

The description of the application.

application
CreateDatestring

The time when the application was created.

2021-09-07T09:17:46Z

Example

Normal return example

JSONFormat

{
  "RequestId": "274917E8-8E74-5928-A82F-4940F52F7ACB",
  "Application": {
    "Tags": {
      "key": "{\"k1\":\"v1\",\"k2\":\"v2\"}"
    },
    "Name": "Myapplication",
    "UpdateDate": "2021-09-07T09:17:46Z",
    "Description": "application",
    "CreateDate": "2021-09-07T09:17:46Z"
  }
}

Error codes

For a list of error codes, visit the API error center.