infra_role_instances
Creates, updates, deletes, gets or lists a infra_role_instances
resource.
Overview
Name | infra_role_instances |
Type | Resource |
Id | azure_stack.fabric_admin.infra_role_instances |
Fields
- vw_infra_role_instances
- infra_role_instances
Name | Datatype | Description |
---|---|---|
id | text | URI of the resource. |
name | text | Name of the resource. |
infraRoleInstance | text | field from the properties object |
location | text | The region where the resource is located. |
resourceGroupName | text | field from the properties object |
scale_unit | text | field from the properties object |
scale_unit_node | text | field from the properties object |
size | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | List of key-value pairs. |
type | text | Type of resource. |
Name | Datatype | Description |
---|---|---|
id | string | URI of the resource. |
name | string | Name of the resource. |
location | string | The region where the resource is located. |
properties | object | All properties of an infrastructure role instance. |
tags | object | List of key-value pairs. |
type | string | Type of resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | infraRoleInstance, location, resourceGroupName, subscriptionId | Return the requested infrastructure role instance. |
list | SELECT | location, resourceGroupName, subscriptionId | Returns a list of all infrastructure role instances at a location. |
power_off | EXEC | infraRoleInstance, location, resourceGroupName, subscriptionId | Power off an infrastructure role instance. |
power_on | EXEC | infraRoleInstance, location, resourceGroupName, subscriptionId | Power on an infrastructure role instance. |
reboot | EXEC | infraRoleInstance, location, resourceGroupName, subscriptionId | Reboot an infrastructure role instance. |
shutdown | EXEC | infraRoleInstance, location, resourceGroupName, subscriptionId | Shut down an infrastructure role instance. |
SELECT
examples
Returns a list of all infrastructure role instances at a location.
- vw_infra_role_instances
- infra_role_instances
SELECT
id,
name,
infraRoleInstance,
location,
resourceGroupName,
scale_unit,
scale_unit_node,
size,
state,
subscriptionId,
tags,
type
FROM azure_stack.fabric_admin.vw_infra_role_instances
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.fabric_admin.infra_role_instances
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';