Checking Whether a Parameter Template Name Is Unique
Function
This API is used to check whether a parameter template name is unique.
URI
GET /v3/{project_id}/configurations/name-validation
Name |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
The parameter template name. |
Request Parameters
Name |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. For details, see Authentication. |
Response Parameters
Status code: 200
Name |
Type |
Description |
---|---|---|
is_existed |
Boolean |
Whether a parameter template name already exists.
|
Status code: 400
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 500
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: default
Name |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
GET https://{Endpoint}/v3/054e292c9880d4992f02c0196d3ea468/configurations/name-validation?name=paramTemplate-a9f3
Example Response
{ "is_existed" : false }
SDK
Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot