DescribeInstances

Updated at:

Queries the details of one or more fully managed Flink workspaces.

Operation description

Note

You cannot release a workspace in the following scenarios:

  • In pay-as-you-go mode, the workspace is in the Creating, Releasing, or Creation Timed Out state.

  • For subscription workspaces, unsubscribe from the resources on the Unsubscription page in the User Center.

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

stream:DescribeVvpInstances

list

*VvpInstance

acs:stream:{#regionId}:{#accountId}:vvpinstance/{#InstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

PageIndex

integer

No

The current page number.

2

PageSize

integer

No

The paging Settings for the number of entries per page in a paged query. Maximum value: 100. Default value: 10.

10

InstanceId

string

No

The order instance ID.

f-cn-wwo36qj4g06

Region

string

Yes

The region ID.

cn-shenzhen

ChargeType

string

No

The billing method.

Valid values:

  • PRE :

    Subscription.

  • POST :

    Pay-as-you-go.

PRE

Elastic

boolean

No

Specifies whether hybrid billing is used.

true

Tags

array<object>

No

The tags of the instance.

object

No

The instance tag.

Key

string

No

The tag key.

test

Value

string

No

The tag value. The maximum length is 64 Unicode characters.

ys

ResourceGroupId

string

No

The ID of the resource group to which the instance belongs.

rg-aek2e55emewbqgy

ArchitectureType

string

No

The processor architecture. You can specify x86 or ARM.

Valid values:

  • X86 :

    X86

  • ARM :

    ARM

X86

InstanceName

string

No

The instance name.

e2e-test

NamespaceName

string

No

The namespace name.

e2e-test-default

Response elements

Element

Type

Description

Example

object

The response information for querying workspace details.

Instances

array<object>

The instance group details.

array<object>

The instance details.

Ansm

boolean

true

ArchitectureType

string

The processor architecture.

Valid values:

  • X86 :

    X86

  • ARM :

    ARM

X86

AskClusterId

string

The cluster ID.

c20c******404

ChargeType

string

The billing method. Valid values:

  • POST: pay-as-you-go

  • PRE: subscription

PRE

ClusterState

object

The cluster state.

ClusterId

string

The cluster ID.

a6f35c0ff73448

ClusterStage

object

The cluster stage information.

ClusterId

string

The cluster ID.

f0957e82de6e47

CurrentStage

integer

The sequence number of the current stage.

0

Message

string

The error message.

Status

string

The status of the workspace. Valid values:

  • CREATING: The workspace is being created.

  • DELETING: The workspace is being deleted.

  • MODIFYING: The resource specifications are being modified.

  • SUCCESS: The previous operation was successful.

  • FAILED: The previous operation failed.

CREATING

TotalStageWithWeight

array<object>

The list of stages and weights.

object

A single stage and its weight.

StepIndex

integer

The stage sequence number.

0

StepName

string

The stage name.

Weight

integer

The stage weight.

0

CreateTimeout

boolean

Indicates whether the cluster creation timed out.

true

Status

string

The cluster status. Valid values:

  • CREATING: The cluster is being created.

  • RUNNING: The cluster is running.

  • DISABLE: The cluster is invalid.

  • DELETING: The cluster is being deleted.

  • DELETED: The cluster is deleted.

Valid values:

  • CREATING :

    Creating.

RUNNING

SubStatus

string

The cluster status. Valid values:

  • CREATING: The cluster is being created.

  • RUNNING: The cluster is running.

  • DISABLE: The cluster is invalid.

  • DELETING: The cluster is being deleted.

  • DELETED: The cluster is deleted.

RUNNING

Url

string

The cluster-related addresses.

UserSlbDto

object

The user-side load balancing information.

ExistSlb

boolean

Indicates whether a user-side load balancing instance exists.

SlbId

string

The load balancing instance ID.

SlbIp

string

The IP address of the load balancing instance.

SlbStatus

string

The instance status of the load balancing instance.

UserSlbListeners

array<object>

The list of user-side load balancing listeners.

object

The details of a single load balancing listener.

ListenersStatus

string

The listener status.

Port

string

The listener port.

VpcCidr

string

The CIDR block of the VPC where the cluster is deployed.

10.******/16

ClusterStatus

string

The cluster status. Valid values:

  • CREATING: The cluster is being created.

  • RUNNING: The cluster is running.

  • DISABLE: The cluster is invalid.

  • DELETING: The cluster is being deleted.

  • DELETED: The cluster is deleted.

Valid values:

  • DISABLE :

    Invalid.

  • RUNNING :

    Running.

  • DELETING :

    Deleting.

  • DELETED :

    Deleted.

  • CREATING :

    Creating.

RUNNING

ClusterUsedResources

object

The overall resource usage of the Flink service.

ClusterId

string

The cluster ID.

ea2e9545fdc942

ElasticUsedCpu

number

The number of elastic CPUs in use.

0

ElasticUsedMemory

number

The amount of elastic memory in use.

0

ElasticUsedResource

number

The resource count of elastic resources in use.

0

GuaranteedUsedCpu

number

The number of guaranteed CPUs in use.

0

GuaranteedUsedMemory

number

The amount of guaranteed memory in use.

0

GuaranteedUsedResource

number

The resource count of guaranteed resources in use.

0

Ha

boolean

Indicates whether cross-zone high-availability resources are selected.

true

HaUsedCpu

number

The number of cross-zone high-availability CPUs in use.

0

HaUsedMemory

number

The used available memory of active high availability across zones.

0

HaUsedResource

number

The number of cross-zone high-availability compute units in use.

0

UsedCpu

number

The total number of CPUs in use.

0

UsedMemory

number

The total amount of memory in use.

0

UsedResource

number

The total number of compute units in use.

0

ClusterUsedStorage

object

The storage resource usage of the cluster.

ClusterId

string

The cluster ID.

f0957e82de6e47

UsedStorage

number

The amount of storage used by the cluster.

0

DeletionProtection

boolean

Indicates whether deletion protection is enabled.

false

Elastic

boolean

Indicates whether elastic resources are enabled.

false

ElasticInstanceId

string

The elastic order ID.

f-cn-e3afbd321

ElasticOrderState

string

The status of the elastic resource order.

ElasticResourceSpec

object

The specifications of pay-as-you-go elastic resources.

Cpu

integer

The number of CPUs.

5

MemoryGB

integer

The amount of memory used.

280

Ha

boolean

Indicates whether cross-zone high-availability resources are selected.

true

HaResourceSpec

object

The description of cross-zone high-availability resources.

Cpu

integer

The number of cross-zone high-availability CPUs.

12

MemoryGB

integer

The memory size of cross-zone high-availability resources.

48

HaVSwitchIds

array

The vSwitch group in the secondary zone for cross-zone high availability.

string

A vSwitch in the secondary zone for cross-zone high availability.

vsw-j6cft0ogy3agw*****

HaVSwitchInfo

array<object>

The information about the vSwitch group in the secondary zone for cross-zone high availability.

object

The details of a vSwitch in the secondary zone.

AvailableIpAddressCount

integer

The number of available IP addresses in the vSwitch.

64

Description

string

The VPC description.

“”

RegionId

string

The region ID.

cn-beijing

VSwitchCidr

string

The vSwitch CIDR block.

192.168.16.0/24

VSwitchId

string

The vSwitch ID.

vsw-wz9e9zt38b9f3l6*****

VSwitchName

string

The vSwitch name.

Test vSwitch

VpcId

string

The VPC ID.

vpc-uf6d0akr6lzd75v****

ZoneId

string

The ID of the zone to which the workspace belongs.

cn-hangzhou-h

HaZoneId

string

The ID of the secondary zone for zone-disaster recovery.

cn-hongkong-b

HostAliases

array<object>

The domain name information added by the user.

object

A single hostname-to-IP address mapping.

HostNames

array

The list of hostnames.

string

The hostname.

Ip

string

The IP address that corresponds to the hostname.

InstanceId

string

The instance ID.

f-cn-zvp2q0z****

InstanceName

string

The name of the workspace.

vvp1

MonitorType

string

The type of the monitoring and alerting service. Valid values: ARMS and CloudMonitor.

Valid values:

  • TAIHAO :

    TAIHAO

  • ARMS :

    ARMS

TAIHAO

OrderState

string

The order status of the Flink compute service. Valid values:

  • NOT_INIT: The order is placed but components are not deployed.

  • NORMAL: Normal.

  • CEASE: Expired.

  • RELEASE: Overdue.

Valid values:

  • NOT_INIT :

    The order is placed but components are not deployed.

  • CEASE :

    Expired.

  • RELEASE :

    Overdue.

  • NORMAL :

    Normal.

NORMAL

OssInfo

object

The access configuration information for OSS storage.

AccessId

string

The AccessKey ID for OSS access.

AccessKey

string

The AccessKey secret for OSS access.

Bucket

string

The name of the bound OSS bucket.

flink-log-john

BucketVersioningStatus

string

The versioning status of the OSS bucket.

OFF

Endpoint

string

The endpoint for OSS access.

oss******com

Region

string

The region to which the instance belongs.

cn-beijing

ResourceCreateTime

integer

The time when the instance was created. The value is a UNIX timestamp in milliseconds.

1629879567394

ResourceExpiredTime

integer

The time when the instance expires. The value is a UNIX timestamp in milliseconds.

1637337600000

ResourceGroupId

string

The resource group.

rg-***

ResourceId

string

The resource ID.

b3690a1655****

ResourceSpec

object

The resource specification information.

Cpu

integer

The number of CPUs.

10

MemoryGB

integer

The amount of memory configured.

40

Storage

object

The storage information.

FullyManaged

boolean

Specifies whether fully managed storage is used. Valid values:

  • true: Yes.

  • false: No.

true

OrderState

string

The order status of fully managed storage. Valid values:

  • NOT_INIT: The order is placed but components are not deployed.

  • NORMAL: Normal.

  • CEASE: Expired.

  • RELEASE: Overdue.

Valid values:

  • NOT_INIT :

    The order is placed but components are not deployed.

  • CEASE :

    Expired.

  • RELEASE :

    Overdue.

  • NORMAL :

    Normal.

NORMAL

Oss

object

The OSS storage information.

Bucket

string

The name of the bound OSS bucket.

oss_flink

SupportCreateFullyManagedStorage

boolean

Specifies whether fully managed storage can be created.

true

SupportMigrationProgressDetection

boolean

Specifies whether migration progress detection is supported.

true

SupportDisasterRecoveryDrill

boolean

Specifies whether disaster recovery drills are supported.

Tags

array<object>

The list of tags.

object

The tag.

Key

string

The tag key.

flink

Value

string

The tag value.

test

Uid

string

The ID of the user to which the instance belongs.

183899668736****

VSwitchIds

array

The vSwitch IDs.

string

The vSwitch ID.

vsw-2ze6yqnc19*****psjj0j

VSwitchInfo

array<object>

The primary vSwitch group information.

object

The vSwitch information.

AvailableIpAddressCount

string

The number of available IP addresses in the vSwitch.

256

Description

string

The description of the vSwitch group.

“”

RegionId

string

The region ID.

cn-shanghai

VSwitchCidr

string

The vSwitch CIDR block.

192.168.16.0/24

VSwitchId

string

The vSwitch ID.

vsw-8vb6jk75wfcwnuq****

VSwitchName

string

The name of the vSwitch.

“”

VpcId

string

The VPC ID.

vpc-bp16h9ru9gvz2tygo*****

ZoneId

string

The ID of the zone to which the workspace belongs.

cn-hangzhou-h

VpcId

string

The VPC ID.

vpc-2ze9*******nxfmfcdi

VpcInfo

object

The VPC information.

CidrBlock

string

The VPC CIDR block.

172.16.5.0/24

Description

string

The description of the VPC.

“”

RegionId

string

The region ID.

cn-hangzhou

Status

string

The status of the VPC. Valid values:

  • Pending: Configuring.

  • Available: Available.

Valid values:

  • Available :

    Available.

  • Pending :

    Configuring.

Available

VpcId

string

The VPC ID.

vpc-gw8c6nhjta3eq12y****

VpcName

string

The name of the VPC.

flink cluster vpc

ZoneId

string

The ID of the zone to which the instance belongs.

cn-beijing-g

PageIndex

integer

The current page number.

1

PageSize

integer

The number of instances per page.

10

RequestId

string

The request ID.

C8DF2A5B-6FBA-5651-A3D4-960F3664****

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: Successful.

  • false: Failed.

true

TotalCount

integer

The total number of instances.

15

TotalPage

integer

The total number of pages.

2

Examples

Success response

JSON format

{
  "Instances": [
    {
      "Ansm": true,
      "ArchitectureType": "X86",
      "AskClusterId": "c20c******404",
      "ChargeType": "PRE",
      "ClusterState": {
        "ClusterId": "a6f35c0ff73448",
        "ClusterStage": {
          "ClusterId": "f0957e82de6e47",
          "CurrentStage": 0,
          "Message": "",
          "Status": "CREATING",
          "TotalStageWithWeight": [
            {
              "StepIndex": 0,
              "StepName": "",
              "Weight": 0
            }
          ]
        },
        "CreateTimeout": true,
        "Status": "RUNNING",
        "SubStatus": "RUNNING",
        "Url": "",
        "UserSlbDto": {
          "ExistSlb": false,
          "SlbId": "",
          "SlbIp": "",
          "SlbStatus": "",
          "UserSlbListeners": [
            {
              "ListenersStatus": "",
              "Port": ""
            }
          ]
        },
        "VpcCidr": "10.******/16"
      },
      "ClusterStatus": "RUNNING",
      "ClusterUsedResources": {
        "ClusterId": "ea2e9545fdc942",
        "ElasticUsedCpu": 0,
        "ElasticUsedMemory": 0,
        "ElasticUsedResource": 0,
        "GuaranteedUsedCpu": 0,
        "GuaranteedUsedMemory": 0,
        "GuaranteedUsedResource": 0,
        "Ha": true,
        "HaUsedCpu": 0,
        "HaUsedMemory": 0,
        "HaUsedResource": 0,
        "UsedCpu": 0,
        "UsedMemory": 0,
        "UsedResource": 0
      },
      "ClusterUsedStorage": {
        "ClusterId": "f0957e82de6e47",
        "UsedStorage": 0
      },
      "DeletionProtection": false,
      "Elastic": false,
      "ElasticInstanceId": "f-cn-e3afbd321",
      "ElasticOrderState": "",
      "ElasticResourceSpec": {
        "Cpu": 5,
        "MemoryGB": 280
      },
      "Ha": true,
      "HaResourceSpec": {
        "Cpu": 12,
        "MemoryGB": 48
      },
      "HaVSwitchIds": [
        "vsw-j6cft0ogy3agw*****"
      ],
      "HaVSwitchInfo": [
        {
          "AvailableIpAddressCount": 64,
          "Description": "“”",
          "RegionId": "cn-beijing",
          "VSwitchCidr": "192.168.16.0/24",
          "VSwitchId": "vsw-wz9e9zt38b9f3l6*****",
          "VSwitchName": "Test vSwitch",
          "VpcId": "vpc-uf6d0akr6lzd75v****",
          "ZoneId": "cn-hangzhou-h"
        }
      ],
      "HaZoneId": "cn-hongkong-b",
      "HostAliases": [
        {
          "HostNames": [
            ""
          ],
          "Ip": ""
        }
      ],
      "InstanceId": "f-cn-zvp2q0z****",
      "InstanceName": "vvp1",
      "MonitorType": "TAIHAO",
      "OrderState": "NORMAL",
      "OssInfo": {
        "AccessId": "",
        "AccessKey": "",
        "Bucket": "flink-log-john",
        "BucketVersioningStatus": "OFF",
        "Endpoint": "oss******com"
      },
      "Region": "cn-beijing",
      "ResourceCreateTime": 1629879567394,
      "ResourceExpiredTime": 1637337600000,
      "ResourceGroupId": "rg-***",
      "ResourceId": "b3690a1655****",
      "ResourceSpec": {
        "Cpu": 10,
        "MemoryGB": 40
      },
      "Storage": {
        "FullyManaged": true,
        "OrderState": "NORMAL",
        "Oss": {
          "Bucket": "oss_flink"
        },
        "SupportCreateFullyManagedStorage": true,
        "SupportMigrationProgressDetection": true
      },
      "SupportDisasterRecoveryDrill": false,
      "Tags": [
        {
          "Key": "flink",
          "Value": "test"
        }
      ],
      "Uid": "183899668736****",
      "VSwitchIds": [
        "vsw-2ze6yqnc19*****psjj0j"
      ],
      "VSwitchInfo": [
        {
          "AvailableIpAddressCount": "256",
          "Description": "“”",
          "RegionId": "cn-shanghai",
          "VSwitchCidr": "192.168.16.0/24",
          "VSwitchId": "vsw-8vb6jk75wfcwnuq****",
          "VSwitchName": "“”",
          "VpcId": "vpc-bp16h9ru9gvz2tygo*****",
          "ZoneId": "cn-hangzhou-h"
        }
      ],
      "VpcId": "vpc-2ze9*******nxfmfcdi",
      "VpcInfo": {
        "CidrBlock": "172.16.5.0/24",
        "Description": "“”",
        "RegionId": "cn-hangzhou",
        "Status": "Available",
        "VpcId": "vpc-gw8c6nhjta3eq12y****",
        "VpcName": "flink集群vpc"
      },
      "ZoneId": "cn-beijing-g"
    }
  ],
  "PageIndex": 1,
  "PageSize": 10,
  "RequestId": "C8DF2A5B-6FBA-5651-A3D4-960F3664****",
  "Success": true,
  "TotalCount": 15,
  "TotalPage": 2
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.