A “project member” in the API is referred to as an environment members in the UI and Rancher documentation. An environment member is a list of all of the members of the environment. An environment member is an identity.
| Field | Type | Create | Update | Default | Notes |
|---|---|---|---|---|---|
| description | string | Optional | Yes | - | |
| externalId | string | Optional | - | - | |
| externalIdType | enum | Optional | - | rancher_id | The options are github_user, github_org, github_team, rancher_id, ldap_user, ldap_group, openldap_user, openldap_group. |
| role | enum | Optional | - | member | The options are member, owner, readonly, restricted. |
| Field | Type | Notes |
|---|---|---|
| id | int | The unique identifier for the projectMember |
| name | string | |
| projectId | project |
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.
/v1/projectMembers/${ID}?action=activate
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
'http://${RANCHER_URL}:8080/v1/projectMembers/${ID}?action=activate'/v1/projectMembers/${ID}?action=deactivate
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
'http://${RANCHER_URL}:8080/v1/projectMembers/${ID}?action=deactivate'