Skip to main content
Version: v1.5

Delete a Namespaced Virtual Machine Template Version

DELETE 

/apis/harvesterhci.io/v1beta1/namespaces/:namespace/virtualmachinetemplateversions/:name

Delete a VirtualMachineTemplateVersion object.

Request

Path Parameters

    name stringrequired

    Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*

    Name of the resource

    namespace stringrequired

    Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*

    Object name and auth scope, such as for teams and projects

Query Parameters

    gracePeriodSeconds integer

    The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.

    orphanDependents boolean

    Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.

    propagationPolicy string

    Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.

Bodyrequired

    apiVersionstringrequired
    dryRunstring[]
    gracePeriodSecondsinteger<int64>
    kindstringrequired
    orphanDependentsboolean
    preconditions object
    resourceVersionstring
    uidstring
    propagationPolicystring

Responses

OK

Schema
    apiVersionstringrequired
    codeinteger<int32>
    details object
    causes object[]
  • Array [
  • fieldstring
    messagestring
    reasonstring
  • ]
  • groupstring
    kindstring
    namestring
    retryAfterSecondsinteger<int32>
    uidstring
    kindstringrequired
    messagestring
    metadata object
    continuestring
    remainingItemCountinteger<int64>
    resourceVersionstring
    selfLinkstring
    reasonstring
    statusstring
curl -L -X DELETE 'https://699c5de8cd2250875530e216--harvester-preview.netlify.app/apis/harvesterhci.io/v1beta1/namespaces/:namespace/virtualmachinetemplateversions/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"apiVersion": "string",
"dryRun": [
""
],
"gracePeriodSeconds": 0,
"kind": "string",
"orphanDependents": true,
"preconditions": {
"resourceVersion": "string",
"uid": "string"
},
"propagationPolicy": "string"
}'
RequestCollapse all
Parameters
— pathrequired
— pathrequired
— query
— query
— query
Body required
{
  "apiVersion": "string",
  "dryRun": [
    ""
  ],
  "gracePeriodSeconds": 0,
  "kind": "string",
  "orphanDependents": true,
  "preconditions": {
    "resourceVersion": "string",
    "uid": "string"
  },
  "propagationPolicy": "string"
}