Vstats. Acq Specs Create

Vstats. Acq Specs Create

Create a new acquisition specification record.

Warning: this operation is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.

Request
URI
POST
https://{api_host}/stats/acq-specs
COPY
Request Body

Specification for the acquisition of stats data.

Vstats.AcqSpecs.CreateSpec of type(s) application/json
Required
"Vstats.AcqSpecs.CreateSpec Object"
Authentication
This operation uses the following authentication methods.
Responses
201

Identifier of the newly created acquisition specification.

The response will be an identifier for the resource type: com.vmware.vstats.model.AcqSpec.

Returns string of type(s) application/json
Operation doesn't return any data structure

400

if acqSpec contain any errors.

Returns Vapi.Std.Errors.InvalidArgument of type(s) application/json
"Vapi.Std.Errors.InvalidArgument Object"

401

if the user can not be authenticated.

Returns Vapi.Std.Errors.Unauthenticated of type(s) application/json
"Vapi.Std.Errors.Unauthenticated Object"

403

if the user does not have sufficient privileges.

Returns Vapi.Std.Errors.Unauthorized of type(s) application/json
"Vapi.Std.Errors.Unauthorized Object"

500

if the system reports an error while responding to the request.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/stats/acq-specs