Obtaining the Differences of Two Parameter Templates
Function
This API is used to obtain the differences of two parameter templates. Before calling this API:
- Learn how to authenticate this API.
URI
POST https://{Endpoint}/v3/{project_id}/configurations/comparison
| Name | Mandatory | Description |
|---|---|---|
| project_id | Yes | Explanation: Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Restrictions: None Value range: The value can contain 32 characters. Only letters and digits are allowed. Default value: None |
Request Parameters
| Name | Mandatory | Type | Description |
|---|---|---|---|
| source_id | Yes | String | ID of the source parameter template to be compared. |
| target_id | Yes | String | ID of the target parameter template to be compared. The deployment model of the target parameter template must be the same as that of the source parameter template. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| differences | Array of objects | Differences between parameter templates. For details, see Table 4. |
Example Request
POST https://gaussdb-opengauss.eu-west-101.myhuaweicloud.eu/v3/0483b6b16e954cb88930a360d2c4e663/configurations/comparison
{
"source_id" : "3e9f722f27c9477089bdf576b33f9d8epr14",
"target_id" : "a51fcdde022a4ea8a016a3c4671644f4pr14"
} Example Response
{
"differences" : [ {
"name" : "audit_system_object",
"source_value" : "12289",
"target_value" : "12295"
} ]
} Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.