Field | Type | Create | Update | Default | Notes |
---|---|---|---|---|---|
description | string | Optional | Yes | - | |
key | string | Optional | - | - | |
name | string | Optional | - | - | |
resourceData | map[json] | Optional | - | - |
Field | Type | Notes |
---|---|---|
id | int | The unique identifier for the genericObject |
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}/genericObjects
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"description": "string",
"key": "string",
"kind": "string",
"name": "string",
"resourceData": {
"key": "value-pairs"
}
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/genericObjects'
DeleteDELETE: /v2-beta/projects/${PROJECT_ID}/genericObjects/${ID}
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X DELETE \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/genericObjects/${ID}'