Skip to main content

test_profiles

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

Overview

Nametest_profiles
TypeResource
Idazure.developer_loadtesting.test_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdBystringThe user that created.
createdDateTimestring (date-time)The creation datetime(RFC 3339 literal format).
descriptionstringDescription for the test profile.
displayNamestringDisplay name of the test profile.
lastModifiedBystringThe user that last modified.
lastModifiedDateTimestring (date-time)The last Modified datetime(RFC 3339 literal format).
targetResourceConfigurationsobjectConfigurations of the target resource on which testing would be done.
targetResourceIdstringTarget resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.
testIdstringAssociated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.
testProfileIdstringUnique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_profileselecttest_profile_id, endpointGet load test profile details. Get load test profile details by test profile Id.
list_test_profilesselectendpointmaxpagesize, lastModifiedStartTime, lastModifiedEndTime, testProfileIds, testIdsList test profiles. Get all test profiles for the given filters.
create_or_update_test_profileinserttest_profile_id, endpointCreate a new test profile or update an existing test profile. Create a new test profile or update an existing test profile by providing the test profile Id.
create_or_update_test_profilereplacetest_profile_id, endpointCreate a new test profile or update an existing test profile. Create a new test profile or update an existing test profile by providing the test profile Id.
delete_test_profiledeletetest_profile_id, endpointDelete a test profile. Delete a test profile by its test profile Id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
test_profile_idstringUnique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.
lastModifiedEndTimestring (date-time)End DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. Default value is None.
lastModifiedStartTimestring (date-time)Start DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. Default value is None.
maxpagesizeinteger
testIdsarrayComma separated list IDs of the tests which should be associated with the test profiles to fetch. Default value is None.
testProfileIdsarrayComma separated list of IDs of the test profiles to filter. Default value is None.

SELECT examples

Get load test profile details. Get load test profile details by test profile Id.

SELECT
createdBy,
createdDateTime,
description,
displayName,
lastModifiedBy,
lastModifiedDateTime,
targetResourceConfigurations,
targetResourceId,
testId,
testProfileId
FROM azure.developer_loadtesting.test_profiles
WHERE test_profile_id = '{{ test_profile_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create a new test profile or update an existing test profile. Create a new test profile or update an existing test profile by providing the test profile Id.

INSERT INTO azure.developer_loadtesting.test_profiles (
displayName,
description,
testId,
targetResourceId,
targetResourceConfigurations,
test_profile_id,
endpoint
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ testId }}',
'{{ targetResourceId }}',
'{{ targetResourceConfigurations }}',
'{{ test_profile_id }}',
'{{ endpoint }}'
RETURNING
createdBy,
createdDateTime,
description,
displayName,
lastModifiedBy,
lastModifiedDateTime,
targetResourceConfigurations,
targetResourceId,
testId,
testProfileId
;

REPLACE examples

Create a new test profile or update an existing test profile. Create a new test profile or update an existing test profile by providing the test profile Id.

REPLACE azure.developer_loadtesting.test_profiles
SET
displayName = '{{ displayName }}',
description = '{{ description }}',
testId = '{{ testId }}',
targetResourceId = '{{ targetResourceId }}',
targetResourceConfigurations = '{{ targetResourceConfigurations }}'
WHERE
test_profile_id = '{{ test_profile_id }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
createdBy,
createdDateTime,
description,
displayName,
lastModifiedBy,
lastModifiedDateTime,
targetResourceConfigurations,
targetResourceId,
testId,
testProfileId;

DELETE examples

Delete a test profile. Delete a test profile by its test profile Id.

DELETE FROM azure.developer_loadtesting.test_profiles
WHERE test_profile_id = '{{ test_profile_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;