All Products
Search
Document Center

Enterprise Distributed Application Service:UpdateApplicationBaseInfo

Last Updated:Jan 08, 2024

Modifies the name, description, and owner of an application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Debug

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • 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 Key: the condition key that is defined by the cloud service.
  • 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.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ManageApplicationWrite
  • Application
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}
    none
none

Request syntax

POST /pop/v5/app/update_app_info

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application.

c627c157-560d-43ff-****-************
AppNamestringNo

The name of the application. The name must start with a letter, and can contain letters, digits, underscores (_), and hyphens (-). The name can be up to 36 characters in length.

hello-edas
DescstringNo

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

Test application
OwnerstringNo

The owner of the application. The value can be up to 127 characters in length.

test@aliyun_xxx.com

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

D16979DC-4D42-**************
Applcationobject

The applications that you want to modify.

ExtSlbIpstring

The IP address of the Internet-facing Server Load Balancer (SLB) instance.

39.97.XX.XX
Ownerstring

The owner of the application.

test@aliyun_XXX.com
SlbPortinteger

The port used by the internal-facing SLB instance.

80
ExtSlbNamestring

The name of the Internet-facing SLB instance.

test
CreateTimelong

The time when the application was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1577259573911
UserIdstring

The ID of the Alibaba Cloud account.

edas_com***@****.***
Portinteger

The port used by the application.

8080
RunningInstanceCountinteger

The number of running application instances.

1
SlbIpstring

The IP address of the internal-facing SLB instance.

192.168.XX.XX
Dockerizeboolean

Indicates whether the application is a Docker application.

false
Descriptionstring

The description of the application.

test
InstanceCountinteger

The number of application instances.

1
AppIdstring

The ID of the application.

c627c157-560d-43ff-****-************
Memoryinteger

The size of memory configured for an application instance. Unit: MB.

0
Namestring

The name of the application.

test
ClusterIdstring

The ID of the cluster.

d7730a49-629a-47bd-****-f45eb01f****
SlbIdstring

The ID of the internal-facing SLB instance.

a3d4*******
HealthCheckUrlstring

The health check URL.

http://127.0.XX.XX:8080/_etc.html
ApplicationTypestring

The deployment type of the application. Valid values:

  • War: The application is deployed by using a WAR package.
  • FatJar: The application is deployed by using a JAR package.
  • Image: The application is deployed by using an image.
  • If this parameter is empty, the application is not deployed.
FatJar
ExtSlbIdstring

The ID of the Internet-facing SLB instance.

ace93*******
RegionIdstring

The ID of the region.

cn-beijing:****
BuildPackageIdlong

The build package number of Enterprise Distributed Application Service (EDAS) Container.

58
Cpuinteger

The number of CPU cores.

0
ClusterTypeinteger

The type of the cluster. Valid values:

  • 0: normal Docker cluster
  • 1: Swarm cluster
  • 2: ECS cluster
  • 3: self-managed Kubernetes cluster in EDAS
  • 4: cluster in which Pandora automatically registers applications
  • 5: Container Service for Kubernetes (ACK) clusters
2
SlbNamestring

The name of the internal-facing SLB instance.

test

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "D16979DC-4D42-**************",
  "Applcation": {
    "ExtSlbIp": "39.97.XX.XX",
    "Owner": "test@aliyun_XXX.com",
    "SlbPort": 80,
    "ExtSlbName": "test",
    "CreateTime": 1577259573911,
    "UserId": "edas_com***@****.***",
    "Port": 8080,
    "RunningInstanceCount": 1,
    "SlbIp": "192.168.XX.XX",
    "Dockerize": false,
    "Description": "test",
    "InstanceCount": 1,
    "AppId": "c627c157-560d-43ff-****-************",
    "Memory": 0,
    "Name": "test",
    "ClusterId": "d7730a49-629a-47bd-****-f45eb01f****",
    "SlbId": "a3d4*******",
    "HealthCheckUrl": "http://127.0.XX.XX:8080/_etc.html",
    "ApplicationType": "FatJar",
    "ExtSlbId": "ace93*******",
    "RegionId": "cn-beijing:****",
    "BuildPackageId": 58,
    "Cpu": 0,
    "ClusterType": 2,
    "SlbName": "test"
  }
}

Error codes

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