enterprise_policies
Creates, updates, deletes, gets or lists a enterprise_policies
resource.
Overview
Name | enterprise_policies |
Type | Resource |
Id | azure_extras.power_platform.enterprise_policies |
Fields
- vw_enterprise_policies
- enterprise_policies
Name | Datatype | Description |
---|---|---|
encryption | text | field from the properties object |
enterprisePolicyName | text | field from the properties object |
health_status | text | field from the properties object |
identity | text | The identity of the EnterprisePolicy. |
kind | text | The Kind (type) of Enterprise Policy |
location | text | The geo-location where the resource lives |
lockbox | text | field from the properties object |
network_injection | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
system_id | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | The identity of the EnterprisePolicy. |
kind | string | The Kind (type) of Enterprise Policy |
location | string | The geo-location where the resource lives |
properties | object | The properties that define configuration for the enterprise policy. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | enterprisePolicyName, resourceGroupName, subscriptionId | Get information about an EnterprisePolicy |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Retrieve a list of EnterprisePolicies within a given resource group |
list_by_subscription | SELECT | subscriptionId | Retrieve a list of EnterprisePolicies within a subscription |
create_or_update | INSERT | enterprisePolicyName, resourceGroupName, subscriptionId, data__kind | Creates an EnterprisePolicy |
delete | DELETE | enterprisePolicyName, resourceGroupName, subscriptionId | Delete an EnterprisePolicy |
update | UPDATE | enterprisePolicyName, resourceGroupName, subscriptionId | Updates an EnterprisePolicy |
SELECT
examples
Retrieve a list of EnterprisePolicies within a subscription
- vw_enterprise_policies
- enterprise_policies
SELECT
encryption,
enterprisePolicyName,
health_status,
identity,
kind,
location,
lockbox,
network_injection,
resourceGroupName,
subscriptionId,
system_data,
system_id,
tags
FROM azure_extras.power_platform.vw_enterprise_policies
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
kind,
location,
properties,
systemData,
tags
FROM azure_extras.power_platform.enterprise_policies
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new enterprise_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.power_platform.enterprise_policies (
enterprisePolicyName,
resourceGroupName,
subscriptionId,
data__kind,
tags,
location,
identity,
kind,
properties,
systemData
)
SELECT
'{{ enterprisePolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ kind }}',
'{{ properties }}',
'{{ systemData }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: identity
value:
- name: systemAssignedIdentityPrincipalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: kind
value: []
- name: properties
value:
- name: systemId
value: string
- name: lockbox
value:
- name: state
value: []
- name: encryption
value:
- name: keyVault
value:
- name: keyIdentifier
value: string
- name: identity
value: string
- name: networkInjection
value:
- name: virtualNetworks
value:
- name: value
value:
- - name: id
value: string
- name: subnet
value:
- name: name
value: string
- name: nextLink
value: string
- name: healthStatus
value: []
- 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
UPDATE
example
Updates a enterprise_policies
resource.
/*+ update */
UPDATE azure_extras.power_platform.enterprise_policies
SET
tags = '{{ tags }}',
location = '{{ location }}',
identity = '{{ identity }}',
kind = '{{ kind }}',
properties = '{{ properties }}',
systemData = '{{ systemData }}'
WHERE
enterprisePolicyName = '{{ enterprisePolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified enterprise_policies
resource.
/*+ delete */
DELETE FROM azure_extras.power_platform.enterprise_policies
WHERE enterprisePolicyName = '{{ enterprisePolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';