Field | Type | Create | Update | Default | Notes |
---|---|---|---|---|---|
description | string | Optional | Yes | - | |
driver | string | Optional | - | - | |
driverOpts | map[string] | Optional | - | - | |
external | boolean | Optional | - | - | |
name | string | Yes | Yes | - | |
perContainer | boolean | Optional | - | - | |
stackId | stack | Optional | - | - |
Field | Type | Notes |
---|---|---|
id | int | The unique identifier for the volumeTemplate |
Please read more about the common resource fields. These fields are read only and applicable to almost every resource. We have segregated them from the list above.
CreatePOST: /v2-beta/projects/${PROJECT_ID}/volumeTemplates
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"description": "string",
"driver": "string",
"driverOpts": {
"key": "value-pairs"
},
"external": false,
"name": "string",
"perContainer": false,
"stackId": "reference[stack]"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/volumeTemplates'