guest_agents
Creates, updates, deletes, gets or lists a guest_agents
resource.
Overview
Name | guest_agents |
Type | Resource |
Id | azure_stack.azure_stack_hci.guest_agents |
Fields
- vw_guest_agents
- guest_agents
Name | Datatype | Description |
---|---|---|
credentials | text | field from the properties object |
provisioning_action | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
status | text | field from the properties object |
system_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Defines the resource properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceUri | Implements GuestAgent GET method. |
list | SELECT | resourceUri | Returns the list of GuestAgent of the given vm. |
create | INSERT | resourceUri, data__properties | Create Or Update GuestAgent. |
delete | DELETE | resourceUri | Implements GuestAgent DELETE method. |
SELECT
examples
Implements GuestAgent GET method.
- vw_guest_agents
- guest_agents
SELECT
credentials,
provisioning_action,
provisioning_state,
resourceUri,
status,
system_data
FROM azure_stack.azure_stack_hci.vw_guest_agents
WHERE resourceUri = '{{ resourceUri }}';
SELECT
properties,
systemData
FROM azure_stack.azure_stack_hci.guest_agents
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new guest_agents
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.azure_stack_hci.guest_agents (
resourceUri,
data__properties,
properties,
systemData
)
SELECT
'{{ resourceUri }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ systemData }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: credentials
value:
- name: username
value: string
- name: password
value: string
- name: provisioningAction
value: []
- name: status
value: string
- name: provisioningState
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
DELETE
example
Deletes the specified guest_agents
resource.
/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.guest_agents
WHERE resourceUri = '{{ resourceUri }}';