cloud_service_roles
Creates, updates, deletes, gets or lists a cloud_service_roles
resource.
Overview
Name | cloud_service_roles |
Type | Resource |
Id | azure.compute.cloud_service_roles |
Fields
- vw_cloud_service_roles
- cloud_service_roles
Name | Datatype | Description |
---|---|---|
id | text | Resource id |
name | text | Resource name |
cloudServiceName | text | field from the properties object |
location | text | Resource location |
resourceGroupName | text | field from the properties object |
roleName | text | field from the properties object |
sku | text | Describes the cloud service role sku. |
subscriptionId | text | field from the properties object |
type | text | Resource type |
unique_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource id |
name | string | Resource name |
location | string | Resource location |
properties | object | The cloud service role properties. |
sku | object | Describes the cloud service role sku. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cloudServiceName, resourceGroupName, roleName, subscriptionId | Gets a role from a cloud service. |
list | SELECT | cloudServiceName, resourceGroupName, subscriptionId | Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles. |
SELECT
examples
Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
- vw_cloud_service_roles
- cloud_service_roles
SELECT
id,
name,
cloudServiceName,
location,
resourceGroupName,
roleName,
sku,
subscriptionId,
type,
unique_id
FROM azure.compute.vw_cloud_service_roles
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
sku,
type
FROM azure.compute.cloud_service_roles
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';