Retrieves the information about an index.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeIndex |
get |
*Collection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| DBInstanceId |
string |
No |
The cluster ID. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. |
gp-xxxxxxxxx |
| WorkspaceId |
string |
No |
The ID of the workspace that consists of multiple AnalyticDB for PostgreSQL instances. This parameter and DBInstanceId cannot both be empty. If both parameters are specified, this value takes precedence. Valid values:
|
gp-ws-***** |
| Namespace |
string |
Yes |
The namespace name. Note
You can call the ListNamespaces operation to query a list of namespaces. |
mynamespace |
| NamespacePassword |
string |
Yes |
The password of the namespace. Note
The value of this parameter is specified when you call the CreateNamespace operation. |
testpassword |
| Collection |
string |
Yes |
The name of the collection. Note
You can call the ListCollections operation to query a list of collections. |
testcollection |
| IndexName |
string |
Yes |
The name of the index. |
testindex |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
ABB39CC3-4488-4857-905D-2E4A051D0521 |
| Message |
string |
The returned message. |
success |
| Status |
string |
Indicates whether the request was successful. Valid values:
|
success |
| Namespace |
string |
The namespace. |
mynamespace |
| Collection |
string |
The name of the collection. |
testcollection |
| IndexName |
string |
The name of the index. |
testindex |
| IndexDef |
string |
The definition of the index. |
CREATE INDEX testindex ON mynamespace. testcollection |
Examples
Success response
JSON format
{
"RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521",
"Message": "success",
"Status": "success",
"Namespace": "mynamespace",
"Collection": "testcollection",
"IndexName": "testindex",
"IndexDef": "CREATE INDEX testindex ON mynamespace. testcollection"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.