curation_profiles
Creates, updates, deletes, gets or lists a curation_profiles
resource.
Overview
Name | curation_profiles |
Type | Resource |
Id | azure.dev_center.curation_profiles |
Fields
- vw_curation_profiles
- curation_profiles
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
curationProfileName | text | field from the properties object |
devCenterName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_policies | text | field from the properties object |
scopes | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of an curation profile. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | curationProfileName, devCenterName, resourceGroupName, subscriptionId | Gets a specific curation profile. |
list_by_dev_center | SELECT | devCenterName, resourceGroupName, subscriptionId | Lists all curation profiles in the dev center |
create_or_update | INSERT | curationProfileName, devCenterName, resourceGroupName, subscriptionId | Creates or updates an curation profile. |
delete | DELETE | curationProfileName, devCenterName, resourceGroupName, subscriptionId | Deletes an curation profile. |
update | UPDATE | curationProfileName, devCenterName, resourceGroupName, subscriptionId | Partially updates an curation profile. |
SELECT
examples
Lists all curation profiles in the dev center
- vw_curation_profiles
- curation_profiles
SELECT
id,
name,
curationProfileName,
devCenterName,
provisioning_state,
resourceGroupName,
resource_policies,
scopes,
subscriptionId,
system_data,
type
FROM azure.dev_center.vw_curation_profiles
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.dev_center.curation_profiles
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new curation_profiles
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dev_center.curation_profiles (
curationProfileName,
devCenterName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ curationProfileName }}',
'{{ devCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
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
- name: properties
value:
- name: resourcePolicies
value:
- - name: resources
value: string
- name: filter
value: string
- name: scopes
value:
- string
- name: provisioningState
value: []
UPDATE
example
Updates a curation_profiles
resource.
/*+ update */
UPDATE azure.dev_center.curation_profiles
SET
properties = '{{ properties }}'
WHERE
curationProfileName = '{{ curationProfileName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified curation_profiles
resource.
/*+ delete */
DELETE FROM azure.dev_center.curation_profiles
WHERE curationProfileName = '{{ curationProfileName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';