[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Batch Delete
DescriptionDelete a batch of templates
Request
URLURL
https://cloud.vmwarehorizon.com/admin/v2/batch/templates
Query Parameters
Query Parameters
boolean
force
Optional
If true, deletes despite potential clean-up errors
string
org_id
Optional
Organization ID: non-super users can only access their own organization
Request Body
Request Body
{
"orgId": "string"
}
string
orgId
Required
The org ID of templates to query. This is required
array of
string
ids
Optional
List of template IDs to query. Use this, or ‘search’
string
search
Optional
Standard syntax search for querying templates. Use this, or ‘ids’
Authentication
This operation uses the following authentication methods.
Response
202 Accepted Response Body>
207 Response Body>
Response
200 OK Response Body>Response Body
200 OK
Returns
TemplateBatchResponseTO
of type */*
{
"errors": "templateId, ErrorDetail",
"results": "templateId, TemplateTOV2"
}
202 Accepted Response Body>
Response Body
202 Accepted
Returns
TemplateBatchResponseTO
of type */*
Accepted the request to delete the templates without any issues. Response holds the templates with modified status.
{
"errors": "templateId, ErrorDetail",
"results": "templateId, TemplateTOV2"
}
204 No Content
No Content
Operation doesn't return any data structure.
207 Response Body>
Response Body
207
Returns
TemplateBatchResponseTO
of type */*
Mixed results. Response holds successful templates as well as failed templates.
{
"errors": "templateId, ErrorDetail",
"results": "templateId, TemplateTOV2"
}
Errors
ErrorResponse
400
Bad request
ErrorResponse
401
Unauthorized
ErrorResponse
403
Forbidden
Code Samples
cURL Command
curl -X DELETE -H "Content-Type: */*" -d '{"ids":["string"],"orgId":"string","search":"string"}' https://cloud.vmwarehorizon.com/admin/v2/batch/templates
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: templateQueryV1
[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen