Setting

Resource Fields

Writeable Fields

Field Type Create Update Default Notes
name string Optional - -  
value string Optional Yes -  

Read Only Fields

Field Type Notes
activeValue string  
id int The unique identifier for the setting
inDb boolean  
source string  


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.

Operations

CreatePOST: /v2-beta/projects/${PROJECT_ID}/settings

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
	"name": "string",
	"value": "string"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/settings'

DeleteDELETE: /v2-beta/projects/${PROJECT_ID}/settings/${ID}

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X DELETE \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/settings/${ID}'

UpdatePUT: /v2-beta/projects/${PROJECT_ID}/settings/${ID}

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X PUT \
-H 'Content-Type: application/json' \
-d '{
	"value": "string"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/settings/${ID}'
Edit this page