Help Center> GeminiDB> API Reference> API Description> Parameter Template Management> Obtaining Parameters of a Specified Parameter Template

Obtaining Parameters of a Specified Parameter Template

Function

This API is used to obtain information about parameters of a specified parameter template.

Constraints

This API supports the following DB instances:

  • GaussDB(for Cassandra)
  • GaussDB(for Mongo) cluster 3.4 and replica set 4.0
  • GaussDB(for Influx)

URI

  • URI format

    GET /v3/{project_id}/configurations/{config_id}

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    config_id

    Yes

    Specifies the parameter template ID.

Requests

  • Request header
    GET https://GaussDB NoSQL_Endpoint/v3/{project_id}/configurations/{config_id}
  • Example request

    N/A

Responses

  • Parameter description
    Table 2 Parameter description

    Name

    Type

    Description

    id

    String

    Indicates the parameter template ID.

    name

    String

    Indicates the parameter template name.

    datastore_version_name

    String

    Indicates the database version name.

    datastore_name

    String

    Indicates the database name.

    description

    String

    Indicates the parameter template description.

    created

    String

    Indicates the creation time in the following format: yyyy-MM-ddTHH:mm:ssZ.

    T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800.

    updated

    String

    Indicates the update time in the following format: yyyy-MM-ddTHH:mm:ssZ.

    T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800.

    configuration_parameters

    Array of objects

    Indicates the parameters defined by users based on the default parameter templates.

    For details, see Table 3.

    Table 3 configuration_parameters field data structure description

    Name

    Type

    Description

    name

    String

    Indicates the parameter name.

    value

    String

    Indicates the parameter value.

    restart_required

    Boolean

    Indicates whether the instance needs to be restarted.

    • If the value is false, restart is not required.
    • If the value is true, restart is required.

    readonly

    Boolean

    Indicates whether the parameter is read-only.

    • If the value false, the parameter is not read-only.
    • If the value is true, the parameter is read-only.

    value_range

    String

    Indicates the parameter value range. If the type is integer, the value is 0 or 1. If the type is Boolean, the value is true or false.

    type

    String

    Indicates the parameter type. The value can be string, integer, boolean, list, or float.

    description

    String

    Indicates parameter description.

  • Response example
    {  
        "id": "07fc12a8e0e94df7a3fcf53d0b5e1605pr06",  
        "name": "default-cassandra-3.11",  
        "datastore_version_name": "3.11",  
        "datastore_name": "cassandra",  
        "description": "Default parameter group for cassandra 3.11",  
        "created": "2020-03-21T04:40:51+0800",  
        "updated": "2020-03-21T04:40:51+0800",  
        "configuration_parameters": [  
          {  
            "name": "concurrent_reads",  
            "value": "64",  
            "restart_required": true,  
            "readonly": true,  
            "value_range": "4-512",  
            "type": "integer",  
            "description": "Number of concurrent read threads."  
          }
        ]  
    }

Status Code

For more information, see Status Code.

Error Code

For more information, see Error Code.