Create Site Level Extension Configuration (v2.0)
POST/v2.0/api/tenants/:tenant_id/sites/:site_id/extensions
Create site level extension configuration.
Request
Path Parameters
tenant_id stringrequired
The tenant ID.
site_id stringrequired
The site ID.
- application/json
Body
conf objectrequired
disabled boolean
List the disabled extensions.
entity_id string
The entity ID. Only numbers are allowed (0-9).
id string
The ID.
name stringrequired
The name of the extension. Max size = 128.
namespace stringrequired
The extension namespace. Values = ^[a-z][a-z0-9/]*[a-z0-9]+$.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
conf objectrequired
disabled boolean
List the disabled extensions.
entity_id string
The entity ID. Only numbers are allowed (0-9).
id string
The ID.
name stringrequired
The name of the extension. Max size = 128.
namespace stringrequired
The extension namespace. Values = ^[a-z][a-z0-9/]*[a-z0-9]+$.
tenant_id stringrequired
The tenant ID.
{
"conf": {},
"disabled": true,
"entity_id": "string",
"id": "string",
"name": "string",
"namespace": "string",
"tenant_id": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "SITE_NOT_FOUND"
},
{
"code": "ELEMENT_NOT_ASSIGNED_TO_SITE"
},
{
"code": "INVALID_JSON_INPUT"
},
{
"code": "NAT_EXTENSION_ENABLED_ON_NATPOLICY_ELEMENT"
}
]
}
}
Loading...