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.
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: Mandatory. Value range: Minimum length: 10 characters. Maximum length: 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
Response to a successful request for checking whether a template can be saved.
{
"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.
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