All Products
Search
Document Center

Chat App Message Service:ListInstance

Last Updated:Aug 27, 2026

Queries a list of instances.

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

cams:ListInstance

list

*Instance

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

None None

Request parameters

Parameter

Type

Required

Description

Example

ChannelType

string

No

The channel type. Valid values:

  • whatsapp

  • messenger

  • instagram

  • viber

VIBER

InstanceName

string

No

The instance name.

viber_ins

SubmitTime

string

No

The submit time.

2023-12-12 00:00:00

PageSize

integer

No

The number of records per page.

87

PageIndex

integer

No

The page number.

92

ResourceGroupId

string

No

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

11

InstanceId

string

No

The instance ID. Only non-Alibaba Cloud hosts are supported.

r-uf6wd7pkyjwxvlxfhk

FilterStr

string

No

The filter condition.

aa

No

No

Response elements

Element

Type

Description

Example

object

AccessDeniedDetail

string

The details about the access denial.

{}

TotalCount

integer

The total number of records that meet the conditions.

15

RequestId

string

The request ID.

2993*****

Message

string

The response message.

NULL

Data

array<object>

The returned data.

object

The returned data.

CountryId

string

The country ID.

1

ContactMail

string

The contact email address.

ma**@gmail.com

ResourceRegionId

string

The region to which the resource belongs.

11

ResourceGroupId

string

The resource group ID.

12

InstanceId

string

The instance ID.

29339****

OfficeAddress

string

The enterprise address.

example

SubmitTime

string

The submit time.

2023-12-12 00:00:00

InstanceName

string

The instance name.

viber_ins

CustSpaceId

string

The customer space ID.

dad-gf**

IsvTerms

string

The ISV/Client agreement file name.

aa

FacebookBmId

string

The bound Facebook ID.

1

InstanceDescription

string

The instance description.

ins

ChannelType

string

The channel type.

VIBER

State

string

The status.

published

Code

string

The response code.

  • OK indicates that the request was successful.

  • For other error codes, see Error codes.

OK

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Examples

Success response

JSON format

{
  "AccessDeniedDetail": "{}",
  "TotalCount": 15,
  "RequestId": "2993*****",
  "Message": "NULL",
  "Data": [
    {
      "CountryId": "1",
      "ContactMail": "ma**@gmail.com",
      "ResourceRegionId": "11",
      "ResourceGroupId": "12",
      "InstanceId": "29339****",
      "OfficeAddress": "example",
      "SubmitTime": "2023-12-12 00:00:00",
      "InstanceName": "viber_ins",
      "CustSpaceId": "dad-gf**",
      "IsvTerms": "aa",
      "FacebookBmId": "1",
      "InstanceDescription": "ins",
      "ChannelType": "VIBER",
      "State": "published"
    }
  ],
  "Code": "OK",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.