Checking Whether a Template Can Be Saved
Function
This API is used to check whether a template can be saved.
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
GET /v2/project-template/name-validation
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | No | String | Definition: Template name. Constraints: N/A Value range: N/A Default value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. Obtain a token by calling the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints N/A Range The value contains 10 to 32,768 characters. Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | result object | Definition: Returned result. |
| status | String | Definition: Returned status. Value range: N/A |
Example Requests
Saving as a template
{endpoint}/v2/project-template/name-validation?name=1234&_=1753237057613 Example Responses
Status code: 200
{
"result" : {
"exist" : false
},
"status" : "success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Response to a successful request for checking whether a template can be saved. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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