Iam
Resource Groups
Resource Groups endpoint reference.
List
List all the resource groups for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
params | array | No | [] | Array containing the necessary params, e.g. id, name. |
php
$response = $client->iam()->resourceGroups()->list('ACCOUNT_ID', []);
Create
Create a new Resource Group under the specified account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
values | array | Yes | Resource Group values, requires name and scope. |
php
$response = $client->iam()->resourceGroups()->create('ACCOUNT_ID', []);
Get
Get information about a specific resource group in an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
resourceGroupId | string | Yes | Resource Group identifier. |
php
$response = $client->iam()->resourceGroups()->get('ACCOUNT_ID', 'RESOURCE_GROUP_ID');
Update
Modify an existing resource group.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
resourceGroupId | string | Yes | Resource Group identifier. | |
values | array | No | [] | Resource Group values, e.g. name, scope. |
php
$response = $client->iam()->resourceGroups()->update('ACCOUNT_ID', 'RESOURCE_GROUP_ID', []);
Delete
Remove a resource group from an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
resourceGroupId | string | Yes | Resource Group identifier. |
php
$response = $client->iam()->resourceGroups()->delete('ACCOUNT_ID', 'RESOURCE_GROUP_ID');

