Skip to main content

guest_agents

Creates, updates, deletes, gets or lists a guest_agents resource.

Overview

Nameguest_agents
TypeResource
Idazure_stack.azure_stack_hci.guest_agents

Fields

NameDatatypeDescription
credentialstextfield from the properties object
provisioning_actiontextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
statustextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceUriImplements GuestAgent GET method.
listSELECTresourceUriReturns the list of GuestAgent of the given vm.
createINSERTresourceUri, data__propertiesCreate Or Update GuestAgent.
deleteDELETEresourceUriImplements GuestAgent DELETE method.

SELECT examples

Implements GuestAgent GET method.

SELECT
credentials,
provisioning_action,
provisioning_state,
resourceUri,
status,
system_data
FROM azure_stack.azure_stack_hci.vw_guest_agents
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

Use the following StackQL query and manifest file to create a new guest_agents resource.

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.guest_agents (
resourceUri,
data__properties,
properties,
systemData
)
SELECT
'{{ resourceUri }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ systemData }}'
;

DELETE example

Deletes the specified guest_agents resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.guest_agents
WHERE resourceUri = '{{ resourceUri }}';