Skip to main content

resource_pools

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

Overview

Nameresource_pools
TypeResource
Idazure_isv.connected_vsphere.resource_pools

Fields

NameDatatypeDescription
idtextGets or sets the Id.
nametextGets or sets the name.
cpu_capacity_m_hztextfield from the properties object
cpu_limit_m_hztextfield from the properties object
cpu_overall_usage_m_hztextfield from the properties object
cpu_reservation_m_hztextfield from the properties object
cpu_shares_leveltextfield from the properties object
custom_resource_nametextfield from the properties object
datastore_idstextfield from the properties object
extended_locationtextfield from the properties object
inventory_item_idtextfield from the properties object
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
locationtextGets or sets the location.
mem_capacity_gbtextfield from the properties object
mem_limit_mbtextfield from the properties object
mem_overall_usage_gbtextfield from the properties object
mem_reservation_mbtextfield from the properties object
mem_shares_leveltextfield from the properties object
mo_nametextfield from the properties object
mo_ref_idtextfield from the properties object
network_idstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourcePoolNametextfield from the properties object
statusestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets the Resource tags.
typetextGets or sets the type of the resource.
uuidtextfield from the properties object
v_center_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourcePoolName, subscriptionIdImplements resourcePool GET method.
listSELECTsubscriptionIdList of resourcePools in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of resourcePools in a resource group.
createINSERTresourceGroupName, resourcePoolName, subscriptionId, data__location, data__propertiesCreate Or Update resourcePool.
deleteDELETEresourceGroupName, resourcePoolName, subscriptionIdImplements resourcePool DELETE method.
updateUPDATEresourceGroupName, resourcePoolName, subscriptionIdAPI to update certain properties of the resourcePool resource.

SELECT examples

List of resourcePools in a subscription.

SELECT
id,
name,
cpu_capacity_m_hz,
cpu_limit_m_hz,
cpu_overall_usage_m_hz,
cpu_reservation_m_hz,
cpu_shares_level,
custom_resource_name,
datastore_ids,
extended_location,
inventory_item_id,
kind,
location,
mem_capacity_gb,
mem_limit_mb,
mem_overall_usage_gb,
mem_reservation_mb,
mem_shares_level,
mo_name,
mo_ref_id,
network_ids,
provisioning_state,
resourceGroupName,
resourcePoolName,
statuses,
subscriptionId,
system_data,
tags,
type,
uuid,
v_center_id
FROM azure_isv.connected_vsphere.vw_resource_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.connected_vsphere.resource_pools (
resourceGroupName,
resourcePoolName,
subscriptionId,
data__location,
data__properties,
properties,
location,
extendedLocation,
systemData,
tags,
kind
)
SELECT
'{{ resourceGroupName }}',
'{{ resourcePoolName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ systemData }}',
'{{ tags }}',
'{{ kind }}'
;

UPDATE example

Updates a resource_pools resource.

/*+ update */
UPDATE azure_isv.connected_vsphere.resource_pools
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourcePoolName = '{{ resourcePoolName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified resource_pools resource.

/*+ delete */
DELETE FROM azure_isv.connected_vsphere.resource_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourcePoolName = '{{ resourcePoolName }}'
AND subscriptionId = '{{ subscriptionId }}';