- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Assigns a license to a user.
HTTP request
POST https://cloudcommerceconsumerprocurement.googleapis.com/v1alpha1/{parent=billingAccounts/*/orders/*/licensePool}:assign
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. License pool name. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "usernames": [ string ] } |
Fields | |
---|---|
usernames[] |
Required. Username. Format: |
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.