[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Batch Perform Action
DescriptionPerform an action on a batch of templates
Request
URLURL
https://cloud.vmwarehorizon.com/admin/v2/batch/templates
Query Parameters
Query Parameters
string
action
Required
Action to perform. Ex: RESYNC, RETRY_PROVISIONING
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"
}
201 Created
Created
Operation doesn't return any data structure.
202 Accepted Response Body>
Response Body
202 Accepted
Returns
TemplateBatchResponseTO
of type */*
Accepted the request to perform action on the templates without any issues. Response holds the templates with modified status.
{
"errors": "templateId, ErrorDetail",
"results": "templateId, TemplateTOV2"
}
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
404
Not Found
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"ids":["string"],"orgId":"string","search":"string"}' https://cloud.vmwarehorizon.com/admin/v2/batch/templates?action=string
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: queryV1TO
[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen