Method: billingAccounts.orders.licensePool.assign

Assigns a license to a user.

HTTP request

POST https://cloudcommerceconsumerprocurement.googleapis.com/v1/{parent=billingAccounts/*/orders/*/licensePool}:assign

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. License pool name.

Request body

The request body contains data with the following structure:

JSON representation
{
  "usernames": [
    string
  ]
}
Fields
usernames[]

string

Required. Username. Format: name@domain.com.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • consumerprocurement.licensePools.assign

For more information, see the IAM documentation.