DescribeDatabase
In this article:
DescribeDatabase#
Description#
Request for the PaaS service database description.
Request Parameters#
databaseId — The database identifier.
Type: String
Required: Yes
serviceId — The service ID.
Type: String
Required: Yes
Response Elements#
databases — Database parameters.
Type: DatabaseResponse object
Examples#
Managing PaaS services in K2 Cloud via API requires a customized version of the boto3 library:
import boto3
session = boto3.Session(
aws_access_key_id="<AWS_ACCESS_KEY_ID>",
aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
region_name="",
)
paas_client = session.client(
'paas',
endpoint_url='https://paas.k2.cloud/',
)
paas_client.describe_database(
serviceId='fm-cluster-7867D61F',
databaseId='paas-db-138AE138',
)
Or c2-paas utility from K2 Cloud API Client software suite:
c2-paas DescribeDatabase serviceId fm-cluster-7867D61F databaseId paas-db-138AE138