ListInstancesV2

Updated at:
Copy as MD

Queries clusters by cluster ID or name.

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

milvus:ListInstancesV2

list

*Instance

acs:milvus:{#regionId}:{#accountId}:instance/*

None None

Request syntax

GET /webapi/instance/list HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-beijing

instanceName

string

No

The cluster name.

milvus-test

instanceId

string

No

The cluster ID.

c-123xxx

pageNumber

integer

No

The page number.

1

pageSize

integer

No

The page size.

10

resourceGroupId

string

No

The resource group ID.

rg-123xxx

tag

array<object>

No

The list of tags in JSON format.

object

No

The list of tags in JSON format.

key

string

No

The tag key.

k1

value

string

No

The tag value.

v1

maxResults

integer

No

The maximum number of records to return in a single request.

100

nextToken

string

No

The pagination token for the next request. This parameter is currently not enabled.

None

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

ABCD-1234-5678-EFGH

success

boolean

Indicates whether the request is successful.

true

total

integer

The total number of entries.

15

instances

array

The list of instances.

InstanceDetail

The instance information.

nextToken

string

The pagination token. This parameter is currently not enabled.

None

maxResults

integer

The maximum number of records to return in a single request.

20

Examples

Success response

JSON format

{
  "RequestId": "ABCD-1234-5678-EFGH",
  "success": true,
  "total": 15,
  "instances": [
    {
      "instanceName": "milvus-test",
      "instanceId": "c-xxx",
      "regionId": "cn-beijing",
      "zoneId": "cn-hangzhou-i",
      "status": "running",
      "paymentType": "PayAsYouGo",
      "resourceGroupId": "rg-aek3dcgyq7pnqwa",
      "vpcId": "vpc-xxx",
      "createTime": "2025-04-27T02:04:25Z",
      "runningTime": 1,
      "expireTime": "2025-04-27T02:04:25Z\n",
      "dbVersion": "2.5",
      "orderId": "4751",
      "autoBackup": true,
      "configuration": "rootCoord:\n    maxDatabaseNum: 64 # Maximum number of database\n    maxPartitionNum: 4096 ",
      "ha": true,
      "multiZoneMode": "Single",
      "encrypted": false,
      "kmsKeyId": "key-xxx",
      "vSwitchIds": [
        {
          "zoneId": "cn-hangzhou-i",
          "vswId": "vsw-xxx"
        }
      ],
      "securityGroupIds": [
        "sg-xxx"
      ],
      "tags": [
        {
          "key": "k1",
          "value": "v1"
        }
      ],
      "components": [
        {
          "type": "data",
          "replica": 1,
          "cuNum": 4,
          "cuType": "general",
          "diskSizeType": "Normal",
          "payType": "postPaid",
          "dataDisk": {
            "enabled": false,
            "storageClass": "alicloud-disk-essd-pl1",
            "size": 100,
            "performanceLevel": "PL1"
          },
          "podsList": [
            {
              "podId": "milvus-milvus-standalone-123abc456-7defg",
              "podName": "milvus-milvus-standalone-123abc456-7defg"
            }
          ]
        }
      ]
    }
  ],
  "nextToken": "None",
  "maxResults": 20
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.