Field | Type | Create | Update | Default | Notes |
---|---|---|---|---|---|
accessMode | string | Optional | - | unrestricted | |
enabled | boolean | Optional | - | - | |
name | string | Optional | - | admin | |
password | password | Yes | - | - | |
username | string | Yes | - | - |
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}/localAuthConfigs
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"accessMode": "unrestricted",
"enabled": false,
"name": "admin",
"password": "password",
"username": "string"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/localAuthConfigs'