All Products
Search
Document Center

ENS:DescribeServcieSchedule

Last Updated:Nov 18, 2024

You can call the DescribeServcieSchedule to query the real-time status of the instance device or container that is being occupied by the UUID.

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

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
ens:DescribeServcieSchedule
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application.

474bdef0-d149-4695-abfb-52912d91****
UuidstringYes

The unique ID of the device.

hdm_f022bf160dc69e2d8eb421e508eb****
PodConfigNamestringNo

This parameter does not take effect.

android

Response parameters

ParameterTypeDescriptionExample
object
Indexinteger

The index number of the scheduled virtual device (pod).

2
InstanceIdstring

The ID of the scheduled instance.

i-5myukg7hnpbto7m024002****
InstanceIpstring

The ID of the scheduled instance.

120.26.XX.XX
InstancePortinteger

The start port of the scheduled instance.

3306
PodAbstractInfoobject

The summary information about the scheduled virtual device.

ContainerServiceboolean

The name of the container service.

android
ContainerStatusesarray<object>

The information about the container.

ContainerStatusobject
ContainerIdstring

The ID of the container.

container_e79_1638372147094_158091_02_000001
Namestring

The name of the container.

nginx
Nameboolean

The name of the pod.

gcs-prod-websocket-eip-telecom
Namespaceboolean

The name of the namespace.

default-aliyun
ResourceScopeboolean

The pod scope.

FDN
Statusboolean

The status of the pod.

RUNNING
RequestIdstring

The ID of the request.

CEF72CEB-54B6-4AE8-B225-F876FF7BA984
RequestRepeatedboolean

Indicates whether the request is repeated.

false
TcpPortsstring

The TCP port range of the scheduled instance or container. The value is in the ${from}-$-{to} format. Example: 80-88.

80-88

Examples

Sample success responses

JSONformat

{
  "Index": 2,
  "InstanceId": "i-5myukg7hnpbto7m024002****",
  "InstanceIp": "120.26.XX.XX",
  "InstancePort": 3306,
  "PodAbstractInfo": {
    "ContainerService": true,
    "ContainerStatuses": {
      "ContainerStatus": [
        {
          "ContainerId": "container_e79_1638372147094_158091_02_000001",
          "Name": "nginx"
        }
      ]
    },
    "Name": true,
    "Namespace": true,
    "ResourceScope": true,
    "Status": true
  },
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
  "RequestRepeated": false,
  "TcpPorts": "80-88"
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParameterThe input parameter that is mandatory for processing this request is not supplied.-
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400InvalidParameterThe errorMessage is %s. Please check it again.-
400LimitExceeded.SecurityGroupThe number of securityGroup exceeds the limit.-
400ens.interface.errorAn error occurred while calling the API.-
400CallInterfaceCall Interface Happen Error.An error occurred when you call the operation.

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

Change history

Change timeSummary of changesOperation
2023-12-26API Description Update. The Error code has changedView Change Details