Create a Namespaced Virtual Machine Template

  1. POST /apis/harvesterhci.io/v1beta1/namespaces/:namespace/virtualmachinetemplates

Create a VirtualMachineTemplate object.

Request

Path Parameters

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

  • application/json
  • application/yaml

Body

required

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

Body

required

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

Responses

  • 200
  • 201
  • 202
  • 401

OK

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }

Created

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }

Accepted

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec object

defaultVersionId string

description string

status object

defaultVersion int32

latestVersion int32

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "defaultVersionId": "string",
  10. "description": "string"
  11. },
  12. "status": {
  13. "defaultVersion": 0,
  14. "latestVersion": 0
  15. }
  16. }

Unauthorized

  • application/json
  • application/yaml

  • Schema

Schema

string

  • Schema

Schema

string

Loading…