Creating a Template
Function
This API is used to create an RFS template.
URI
POST https://{endpoint}/v1/rgc/templates
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
template_name |
Yes |
String |
Template name. |
template_type |
Yes |
String |
Template type, either preset or custom. |
template_description |
No |
String |
Template description. |
template_body |
No |
String |
Template content. |
Response Parameters
Status code: 201
Parameter |
Type |
Description |
---|---|---|
template_id |
String |
Template ID. |
template_version |
String |
Template version. |
template_name |
String |
Template name. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
request_id |
String |
Unique ID of the request. |
encoded_authorization_message |
String |
Encrypted error message. |
details |
Array of ForbiddenErrorDetail objects |
Error message indicating no permissions for cross-service invoking. |
Example Requests
Creating an RFS template
POST https://{endpoint}/v1/rgc/templates { "template_name" : "string", "template_type" : "string", "template_description" : "string", "template_body" : "string" }
Example Responses
Status code: 201
Created successfully.
{ "template_id" : "string", "template_version" : "string", "template_name" : "string" }
Status Codes
Status Code |
Description |
---|---|
201 |
Created successfully. |
403 |
No permissions. |
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