Field | Type | Create | Update | Default | Notes |
---|---|---|---|---|---|
description | string | Optional | Yes | - | |
externalId | string | Optional | Yes | - | |
isPublic | boolean | Optional | Yes | - | |
name | string | Optional | Yes | - | |
stacks | array[catalogTemplate] | Optional | Yes | - |
Field | Type | Notes |
---|---|---|
data | map[json] | |
id | int | The unique identifier for the projectTemplate |
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}/projectTemplates
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"description": "string",
"externalId": "string",
"isPublic": false,
"name": "string",
"stacks": "array[catalogTemplate]"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/projectTemplates'
DeleteDELETE: /v2-beta/projects/${PROJECT_ID}/projectTemplates/${ID}
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X DELETE \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/projectTemplates/${ID}'
UpdatePUT: /v2-beta/projects/${PROJECT_ID}/projectTemplates/${ID}
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X PUT \
-H 'Content-Type: application/json' \
-d '{
"description": "string",
"externalId": "string",
"isPublic": false,
"name": "string",
"stacks": "array[catalogTemplate]"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/projectTemplates/${ID}'