Used to set master auth materials. Currently supports :- Changing the admin password of a specific cluster. This can be either via password generation or explicitly set the password.
HTTP request
POST https://container.googleapis.com/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth
The URL uses Google API HTTP annotation syntax.
Path parameters
Parameters | |
---|---|
projectId |
The Google Developers Console project ID or project number. |
zone |
The name of the Google Compute Engine zone in which the cluster resides. |
clusterId |
The name of the cluster to upgrade. |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "action": enum( |
Fields | |
---|---|
action |
The exact form of action to be taken on the master auth. |
update |
A description of the update. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Auth Guide.
Action
Operation type: what type update to perform.
Enums | |
---|---|
UNKNOWN |
Operation is unknown and will error out. |
SET_PASSWORD |
Set the password to a user generated value. |
GENERATE_PASSWORD |
Generate a new password and set it to that. |
SET_USERNAME |
Set the username. If an empty username is provided, basic authentication is disabled for the cluster. If a non-empty username is provided, basic authentication is enabled, with either a provided password or a generated one. |