Create a Site Profile (v2.0)
POST/sdwan/v2.0/api/bulkconfigurations/sitetemplates
Details of the site profile to be created using the jinja template and store in the database.
Request
- application/json
Body
Details of the Site Profile to be created
Data
Id
Site Id: Digits(fraction = 0, integer = 50, SITEID_INVALID)
Site Type: Required(error = SITE_ROLE_MISSING: Site role missing.) ValidateEnum(enumClass = classOf[ElementClusterRole], error = INVALID_SITE_TYPE: Invalid site type, nullAllowed = false)
Template Description: Size(max = 256, error = DESCRIPTION_EXCEEDS_LIMIT: Description length exceeds limit, min = 0)
Template Name: Required(error = TEMPLATE_NAME_REQUIRED: Template name missing) Size(max = 128, error = NAME_EXCEEDS_LIMIT: Name of the resource exceeds limit., min = 0)
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
Data required to deploy new sites at scale using the site template.
The ID.
The site ID.
The site type. Branch or DC.
The site template description. Max length = 256.
The template ID.
The site template name. Max length = 128.
Data required to deploy new sites at scale using this template.
{
"data": "string",
"id": "string",
"site_id": "string",
"site_type": "string",
"template_description": "string",
"template_id": "string",
"template_name": "string",
"variable_map": {}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON"
},
{
"code": "SITE_NAME_REQUIRED"
},
{
"code": "TEMPLATE_VARIABLE_MISMATCH"
},
{
"code": "TEMPLATE_INVALID_FORMAT"
},
{
"code": "VARIABLE_MAP_REQUIRED"
},
{
"code": "TEMPLATE_REQUIRED"
},
{
"code": "SITE_TYPE_REQUIRED"
},
{
"code": "BOTH_SITEID_AND_DATA_SHOULD_NOT_BE_PRESENT"
},
{
"code": "SITEID_OR_DATA_IS_MANDATORY"
},
{
"code": "INVALID_SITEID"
},
{
"code": "INVALID_SITE_TYPE"
},
{
"code": "INVALID_VARIABLE_CHARACTER"
},
{
"code": "TEMPLATE_CREATION_NOT_ALLOWED_ON_SHELL"
},
{
"code": "DUPLICATE_RESOURCE"
}
]
}
}