This API is used to obtain extension information of a specified database.
This operation cannot be performed when the DB instance is in any of the following statuses: creating, changing instance class, changing port, or abnormal.
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/extensions?database_name={database_name}&offset={offset}&limit={limit}
Parameter |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
instance_id |
Yes |
Specifies the DB instance ID. |
database_name |
Yes |
The name of the specific database created inside the RDS instance. This is the logical database name, not the RDS instance identifier. |
offset |
No |
Index offset. The query starts from the next piece of data indexed by this parameter. The value must be a non-negative number. The default value is 0, indicating that the query starts from the first data record. |
limit |
No |
Number of records to be queried. The value ranges from 1 (inclusive) to 100 (inclusive). The default value is 100. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. The user token is a response to the API used to obtain a user token. |
Parameter |
Type |
Description |
|---|---|---|
extensions |
Array of objects |
Extension list. For details, see Table 4. |
total_count |
Integer |
Total number of extensions. |
Parameter |
Type |
Description |
|---|---|---|
name |
String |
Extension name. |
database_name |
String |
The name of the specific database created inside the RDS instance. This is the logical database name, not the RDS instance identifier. |
version |
String |
Extension version. |
version_update |
String |
New version that the extension can be upgraded to. If the value of this parameter is different from that of version, the extension can be upgraded. |
shared_preload_libraries |
String |
Dependent preloaded library. |
created |
Boolean |
Whether the extension has been created. |
description |
String |
Extension description. |
enable_install |
Boolean |
Whether the extension can be installed. |
{
"extensions" : [ {
"name" : "pg_cron",
"database_name" : "db1",
"version" : "1.0",
"version_update" : "1.0",
"shared_preload_libraries" : "pg_cron",
"created" : false,
"enable_install": false,
"description" : "pg_cron access method - signature file based index"
} ],
"total_count" : 1
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.