ContainerExec

Resource Fields

Writeable Fields

Field Type Create Update Default Notes
attachStdin boolean Optional - true  
attachStdout boolean Optional - true  
command array[string] Yes - -  
tty boolean Optional - true  


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: /v1/containerExecs

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
	"attachStdin": true,
	"attachStdout": true,
	"command": [
		"string1",
		"...stringN"
	],
	"tty": true
}' 'http://${RANCHER_URL}:8080/v1/containerExecs'
Edit this page