get
public Container.Projects.Zones.Tokens.Get get(java.lang.String masterProjectId,
java.lang.String zoneId,
java.lang.Long projectNumber,
java.lang.String clusterName)
throws java.io.IOException
Gets a compute-rw scoped OAuth2 access token for . Authentication is performed to ensure that the
caller is a member of and that the request is coming from the expected master VM for the
specified cluster. See go/gke-cross-project-auth for more details.
Create a request for the method "tokens.get".
This request holds the parameters needed by the container server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
masterProjectId - The hosted master project from which this request is coming.zoneId - The zone of the specified cluster.projectNumber - The project number for which the access token is being requested.clusterName - The name of the specified cluster.
- Returns:
- the request
- Throws:
java.io.IOException