Getting Resource Group Properties by Group ID
This section explains how to get a list with properties for the specified resource group.
Request
GET https://<hostname>/api/v1/cloudInfrastructure/resourceGroups/{resourceGroupId} |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
id | string | The identification number of the resource group. Can be obtained as described in Getting Resource Groups. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
Property | Type | Description |
|---|---|---|
id | string | Shows the identification number of the resource group. |
resourceId | string | Shows the identification number of the resource group. |
name | string | Shows the name of the group. |
azureEnvironment | string | Shows the name of the Azure environment. |
subscriptionId | string | Shows the identification number of the subscription. |
regionId | string | Shows the Azure region. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/resourceGroups/qenpyb7jnu5arxsi54kumzkhziz4zfdr8podegeg3x33szfrknyo
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "id": "qenpyb7jnu5arxsi54kumzkhziz4zfdr8podegeg3x33szfrknyo", "resourceId": "/subscriptions/3a9a8330-7bbc-4b03-9c68-15d674fbc809/resourcegroups/448eb060-8471-41c5-9390-30e6668066d9", "name": "448eb060-8471-41c5-9390-30e6668066d9", "azureEnvironment": "Global", "subscriptionId": "3a9a8330-7bbc-4b03-9c68-15d674fbc809", "regionId": "eastasia", "_links": { "subscription": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/subscriptions/3a9a8330-7bbc-4b03-9c68-15d674fbc809"}, "self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/resourceGroups/qenpyb7jnu5arxsi54kumzkhziz4zfdr8podegeg3x33szfrknyo"} } } |