load_tests
Creates, updates, deletes, gets or lists a load_tests
resource.
Overview
Name | load_tests |
Type | Resource |
Id | azure.load_testing.load_tests |
Fields
- vw_load_tests
- load_tests
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
data_plane_uri | text | field from the properties object |
encryption | text | field from the properties object |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
loadTestName | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | LoadTest resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | loadTestName, resourceGroupName, subscriptionId | Get a LoadTestResource |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List LoadTestResource resources by resource group |
list_by_subscription | SELECT | subscriptionId | List LoadTestResource resources by subscription ID |
create_or_update | INSERT | loadTestName, resourceGroupName, subscriptionId | Create a LoadTestResource |
delete | DELETE | loadTestName, resourceGroupName, subscriptionId | Delete a LoadTestResource |
update | UPDATE | loadTestName, resourceGroupName, subscriptionId | Update a LoadTestResource |
SELECT
examples
List LoadTestResource resources by subscription ID
- vw_load_tests
- load_tests
SELECT
description,
data_plane_uri,
encryption,
identity,
loadTestName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.load_testing.vw_load_tests
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties,
tags
FROM azure.load_testing.load_tests
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new load_tests
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.load_testing.load_tests (
loadTestName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ loadTestName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: provisioningState
value: []
- name: dataPlaneURI
value: string
- name: encryption
value:
- name: identity
value:
- name: type
value: []
- name: resourceId
value: string
- name: keyUrl
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a load_tests
resource.
/*+ update */
UPDATE azure.load_testing.load_tests
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
loadTestName = '{{ loadTestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified load_tests
resource.
/*+ delete */
DELETE FROM azure.load_testing.load_tests
WHERE loadTestName = '{{ loadTestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';