diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_CreateOrUpdate.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_CreateOrUpdate.json new file mode 100644 index 000000000000..b6847087411c --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_CreateOrUpdate.json @@ -0,0 +1,58 @@ +{ + "title": "Create a Load Test Mapping Resource", + "operationId": "LoadTestMappings_CreateOrUpdate", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping", + "resource": { + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1002", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:34:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Delete.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Delete.json new file mode 100644 index 000000000000..688176e1f150 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Delete.json @@ -0,0 +1,13 @@ +{ + "title": "Delete a Load Test Mapping Resource", + "operationId": "LoadTestMappings_Delete", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Get.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Get.json new file mode 100644 index 000000000000..aa5753eb2617 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Get.json @@ -0,0 +1,31 @@ +{ + "title": "Get a Load Test Mapping Resource", + "operationId": "LoadTestMappings_Get", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_List.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_List.json new file mode 100644 index 000000000000..18e0a5a192ba --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_List.json @@ -0,0 +1,34 @@ +{ + "title": "List all Load Test Mappings by Source Resource Id", + "operationId": "LoadTestMappings_List", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Update.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Update.json new file mode 100644 index 000000000000..2b20b6300fb6 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestMappings_Update.json @@ -0,0 +1,34 @@ +{ + "title": "Update a load test mapping", + "operationId": "LoadTestMappings_Update", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping", + "properties": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_CreateOrUpdate.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_CreateOrUpdate.json new file mode 100644 index 000000000000..b99bbc3a7a0d --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_CreateOrUpdate.json @@ -0,0 +1,57 @@ +{ + "title": "Create a Load Test Profile Mappings resource", + "operationId": "LoadTestProfileMappings_CreateOrUpdate", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping", + "resource": { + "properties": { + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1002", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:34:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Delete.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Delete.json new file mode 100644 index 000000000000..1c9ac22a0fc8 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Delete.json @@ -0,0 +1,13 @@ +{ + "title": "Delete a Load Test Profile Mapping Resource", + "operationId": "LoadTestProfileMappings_Delete", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Get.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Get.json new file mode 100644 index 000000000000..6450e5fa2b39 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Get.json @@ -0,0 +1,31 @@ +{ + "title": "Get a Load Test Profile Mapping Resource", + "operationId": "LoadTestProfileMappings_Get", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_List.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_List.json new file mode 100644 index 000000000000..f6b7653dadc5 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_List.json @@ -0,0 +1,34 @@ +{ + "title": "List Load Test Profile Mappings by Source Resource Id", + "operationId": "LoadTestProfileMappings_List", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Update.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Update.json new file mode 100644 index 000000000000..060d356dc29c --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTestProfileMappings_Update.json @@ -0,0 +1,34 @@ +{ + "title": "Update a Load Test Profile Mapping", + "operationId": "LoadTestProfileMappings_Update", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping", + "properties": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_CreateOrUpdate.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_CreateOrUpdate.json new file mode 100644 index 000000000000..f84b7a9864a8 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_CreateOrUpdate.json @@ -0,0 +1,121 @@ +{ + "operationId": "LoadTests_CreateOrUpdate", + "title": "Create a LoadTestResource", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResource": { + "location": "westus", + "tags": { + "Team": "Dev Exp" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + }, + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Delete.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Delete.json new file mode 100644 index 000000000000..d2f5cd404d13 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Delete.json @@ -0,0 +1,18 @@ +{ + "operationId": "LoadTests_Delete", + "title": "Delete a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + } + }, + "204": {} + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Get.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Get.json new file mode 100644 index 000000000000..d659ec05396f --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "LoadTests_Get", + "title": "Get a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListByResourceGroup.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListByResourceGroup.json new file mode 100644 index 000000000000..f90482ffb4d7 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "operationId": "LoadTests_ListByResourceGroup", + "title": "List LoadTestResource resources by resource group.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListBySubscription.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListBySubscription.json new file mode 100644 index 000000000000..3f5cead7f3b3 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListBySubscription.json @@ -0,0 +1,38 @@ +{ + "operationId": "LoadTests_ListBySubscription", + "title": "List LoadTestResource resources by subscription ID.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListOutboundNetworkDependenciesEndpoints.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListOutboundNetworkDependenciesEndpoints.json new file mode 100644 index 000000000000..2ed76648276e --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_ListOutboundNetworkDependenciesEndpoints.json @@ -0,0 +1,110 @@ +{ + "operationId": "LoadTests_ListOutboundNetworkDependenciesEndpoints", + "title": "Lists the endpoints that agents may call as part of load testing.", + "parameters": { + "loadTestName": "sampleloadtest", + "resourceGroupName": "default-azureloadtest-japaneast", + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Azure Batch", + "endpoints": [ + { + "domainName": "sampleacct.japaneast.batch.azure.com", + "description": "Applicable to job manager tasks, tasks that use job scoped authentication, or any task that makes calls to Batch.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "japaneast.service.batch.azure.com", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Storage", + "endpoints": [ + { + "domainName": "autostorageaccountname.blob.core.windows.net", + "description": "AutoStorage endpoint for this Batch account. Applicable to all Azure Batch pools under this account.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.blob.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.table.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.queue.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Microsoft Package Repository", + "endpoints": [ + { + "domainName": "packages.microsoft.com", + "description": "Only applicable to pools containing a Mount Configuration. Learn about Mount Configurations in Batch at https://docs.microsoft.com/azure/batch/virtual-file-mount.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Key Vault", + "endpoints": [ + { + "domainName": "*.vault.azure.net", + "description": "Only applicable to pools containing a Disk Encryption Configuration and whose VM size does not support encryption at host. Learn more about disk encryption in Azure Batch at https://docs.microsoft.com/azure/batch/disk-encryption. Learn more about encryption at host and supported VM sizes at https://docs.microsoft.com/azure/virtual-machines/disks-enable-host-based-encryption-portal.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Update.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Update.json new file mode 100644 index 000000000000..489575c0460f --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/LoadTests_Update.json @@ -0,0 +1,82 @@ +{ + "operationId": "LoadTests_Update", + "title": "Update a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResourcePatchRequestBody": { + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Operations_List.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Operations_List.json new file mode 100644 index 000000000000..a9a5c1b3ab76 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Operations_List.json @@ -0,0 +1,46 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.LoadTestService/loadTests/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Creates or updates the LoadTests", + "description": "Set LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Deletes the LoadTests", + "description": "Delete LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Reads the LoadTests", + "description": "Read LoadTests" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_CheckAvailability.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_CheckAvailability.json new file mode 100644 index 000000000000..29cab6ade828 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_CheckAvailability.json @@ -0,0 +1,34 @@ +{ + "operationId": "Quotas_CheckAvailability", + "title": "Check Quota Availability on quota bucket per region per subscription.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket", + "QuotaBucketRequest": { + "properties": { + "currentUsage": 20, + "currentQuota": 40, + "newQuota": 50, + "dimensions": { + "subscriptionId": "testsubscriptionId", + "location": "westus" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "isAvailable": false, + "availabilityStatus": "The requested quota is currently unavailable. Please request for different quota, or upgrade subscription offer type and try again later." + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_Get.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_Get.json new file mode 100644 index 000000000000..6b42bcc0c58c --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_Get.json @@ -0,0 +1,23 @@ +{ + "operationId": "Quotas_Get", + "title": "Get the available quota for a quota bucket per region per subscription.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_List.json b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_List.json new file mode 100644 index 000000000000..75900512c036 --- /dev/null +++ b/specification/loadtestservice/LoadTestService.Management/examples/2023-12-01-preview/Quotas_List.json @@ -0,0 +1,26 @@ +{ + "operationId": "Quotas_List", + "title": "List quotas for a given subscription Id.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/LoadTestService.Management/main.tsp b/specification/loadtestservice/LoadTestService.Management/main.tsp index 23a0a7a2d980..662f0efca706 100644 --- a/specification/loadtestservice/LoadTestService.Management/main.tsp +++ b/specification/loadtestservice/LoadTestService.Management/main.tsp @@ -26,4 +26,7 @@ enum APIVersions { @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) @useDependency(Azure.Core.Versions.v1_0_Preview_2) v2022_12_01: "2022-12-01", + + @doc("The 2023-12-01-preview version of the Azure Load Testing Resource manager API.") + v2023_12_01_preview: "2023-12-01-preview", } diff --git a/specification/loadtestservice/LoadTestService.Management/models.tsp b/specification/loadtestservice/LoadTestService.Management/models.tsp index a84ddca037e3..9f6f2d084916 100644 --- a/specification/loadtestservice/LoadTestService.Management/models.tsp +++ b/specification/loadtestservice/LoadTestService.Management/models.tsp @@ -26,6 +26,67 @@ model LoadTestResource is TrackedResource { ...ManagedServiceIdentityProperty; } +@extensionResource +@doc("LoadTest mapping resource details") +@added(APIVersions.v2023_12_01_preview) +model LoadTestMappingResource is ProxyResource { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-name-pattern" "Existing API" + @doc("Load Test Mapping name") + @key("loadTestMappingName") + @path + @segment("loadTestMappings") + @pattern("^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Operations on the resource are sync" +@doc("Azure LoadTest mapping resource properties.") +@added(APIVersions.v2023_12_01_preview) +model LoadTestMappingProperties { + @doc("Mapped source resource Id.") + @maxLength(1024) + sourceResourceId?: string; + + @doc("Mapped Azure Load Test resource Id.") + @maxLength(1024) + azureLoadTestingResourceId?: string; + + @doc("Mapped Azure Load Test resource test-id.") + @maxLength(256) + testId?: string; +} + +@extensionResource +@doc("LoadTest profile mapping resource details") +@added(APIVersions.v2023_12_01_preview) +model LoadTestProfileMappingResource + is ProxyResource { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-name-pattern" "Existing API" + @doc("Load Test Profile Mapping name") + @key("loadTestProfileMappingName") + @path + @segment("loadTestProfileMappings") + @pattern("^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Operations on the resource are sync" +@doc("Azure LoadTest profile mapping resource properties.") +@added(APIVersions.v2023_12_01_preview) +model LoadTestProfileMappingProperties { + @doc("Mapped source resource Id.") + @maxLength(1024) + sourceResourceId?: string; + + @doc("Mapped Azure Load Test resource Id.") + @maxLength(1024) + azureLoadTestingResourceId?: string; + + @doc("Mapped Azure Load Test resource test-profile-id.") + @maxLength(60) + testProfileId?: string; +} + @doc("Resources provisioning states.") union ResourceState { string, diff --git a/specification/loadtestservice/LoadTestService.Management/routes.tsp b/specification/loadtestservice/LoadTestService.Management/routes.tsp index 22f4caa9240c..c42dca33c8df 100644 --- a/specification/loadtestservice/LoadTestService.Management/routes.tsp +++ b/specification/loadtestservice/LoadTestService.Management/routes.tsp @@ -5,6 +5,7 @@ import "@azure-tools/typespec-azure-resource-manager"; using Azure.ResourceManager; using OpenAPI; +using TypeSpec.Versioning; namespace Microsoft.LoadTestService; @@ -74,3 +75,47 @@ interface Quotas { CheckQuotaAvailabilityResponse >; } + +@armResourceOperations +interface LoadTestMappings { + @added(APIVersions.v2023_12_01_preview) + createOrUpdate is ArmResourceCreateOrReplaceSync; + + @added(APIVersions.v2023_12_01_preview) + get is ArmResourceRead; + + @added(APIVersions.v2023_12_01_preview) + delete is ArmResourceDeleteSync; + + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Existing API" + @added(APIVersions.v2023_12_01_preview) + update is ArmResourcePatchSync< + LoadTestMappingResource, + LoadTestMappingProperties + >; + + @added(APIVersions.v2023_12_01_preview) + listByScope is ArmResourceListByParent; +} + +@armResourceOperations +interface LoadTestProfileMappings { + @added(APIVersions.v2023_12_01_preview) + createOrUpdate is ArmResourceCreateOrReplaceSync; + + @added(APIVersions.v2023_12_01_preview) + get is ArmResourceRead; + + @added(APIVersions.v2023_12_01_preview) + delete is ArmResourceDeleteSync; + + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Existing API" + @added(APIVersions.v2023_12_01_preview) + update is ArmResourcePatchSync< + LoadTestProfileMappingResource, + LoadTestProfileMappingProperties + >; + + @added(APIVersions.v2023_12_01_preview) + listByScope is ArmResourceListByParent; +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_CreateOrUpdate.json new file mode 100644 index 000000000000..b6847087411c --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_CreateOrUpdate.json @@ -0,0 +1,58 @@ +{ + "title": "Create a Load Test Mapping Resource", + "operationId": "LoadTestMappings_CreateOrUpdate", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping", + "resource": { + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1002", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:34:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Delete.json new file mode 100644 index 000000000000..688176e1f150 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Delete.json @@ -0,0 +1,13 @@ +{ + "title": "Delete a Load Test Mapping Resource", + "operationId": "LoadTestMappings_Delete", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Get.json new file mode 100644 index 000000000000..aa5753eb2617 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Get.json @@ -0,0 +1,31 @@ +{ + "title": "Get a Load Test Mapping Resource", + "operationId": "LoadTestMappings_Get", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_List.json new file mode 100644 index 000000000000..18e0a5a192ba --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_List.json @@ -0,0 +1,34 @@ +{ + "title": "List all Load Test Mappings by Source Resource Id", + "operationId": "LoadTestMappings_List", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Update.json new file mode 100644 index 000000000000..2b20b6300fb6 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestMappings_Update.json @@ -0,0 +1,34 @@ +{ + "title": "Update a load test mapping", + "operationId": "LoadTestMappings_Update", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestMappingName": "myLoadTestMapping", + "properties": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestMappings/myLoadTestMapping", + "name": "myLoadTestMapping", + "type": "Microsoft.LoadTestService/loadTestMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_CreateOrUpdate.json new file mode 100644 index 000000000000..b99bbc3a7a0d --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_CreateOrUpdate.json @@ -0,0 +1,57 @@ +{ + "title": "Create a Load Test Profile Mappings resource", + "operationId": "LoadTestProfileMappings_CreateOrUpdate", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping", + "resource": { + "properties": { + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1002", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:34:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Delete.json new file mode 100644 index 000000000000..1c9ac22a0fc8 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Delete.json @@ -0,0 +1,13 @@ +{ + "title": "Delete a Load Test Profile Mapping Resource", + "operationId": "LoadTestProfileMappings_Delete", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Get.json new file mode 100644 index 000000000000..6450e5fa2b39 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Get.json @@ -0,0 +1,31 @@ +{ + "title": "Get a Load Test Profile Mapping Resource", + "operationId": "LoadTestProfileMappings_Get", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_List.json new file mode 100644 index 000000000000..f6b7653dadc5 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_List.json @@ -0,0 +1,34 @@ +{ + "title": "List Load Test Profile Mappings by Source Resource Id", + "operationId": "LoadTestProfileMappings_List", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Update.json new file mode 100644 index 000000000000..060d356dc29c --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTestProfileMappings_Update.json @@ -0,0 +1,34 @@ +{ + "title": "Update a Load Test Profile Mapping", + "operationId": "LoadTestProfileMappings_Update", + "parameters": { + "api-version": "2023-12-01-preview", + "resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "loadTestProfileMappingName": "myLoadTestProfileMapping", + "properties": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename/providers/Microsoft.LoadTestService/loadTestProfileMappings/myLoadTestProfileMapping", + "name": "myLoadTestProfileMapping", + "type": "Microsoft.LoadTestService/loadTestProfileMappings", + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + }, + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename", + "azureLoadTestingResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "testProfileId": "123456" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_CreateOrUpdate.json new file mode 100644 index 000000000000..f84b7a9864a8 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_CreateOrUpdate.json @@ -0,0 +1,121 @@ +{ + "operationId": "LoadTests_CreateOrUpdate", + "title": "Create a LoadTestResource", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResource": { + "location": "westus", + "tags": { + "Team": "Dev Exp" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + }, + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Delete.json new file mode 100644 index 000000000000..d2f5cd404d13 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Delete.json @@ -0,0 +1,18 @@ +{ + "operationId": "LoadTests_Delete", + "title": "Delete a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + } + }, + "204": {} + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Get.json new file mode 100644 index 000000000000..d659ec05396f --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "LoadTests_Get", + "title": "Get a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListByResourceGroup.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListByResourceGroup.json new file mode 100644 index 000000000000..f90482ffb4d7 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "operationId": "LoadTests_ListByResourceGroup", + "title": "List LoadTestResource resources by resource group.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListBySubscription.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListBySubscription.json new file mode 100644 index 000000000000..3f5cead7f3b3 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListBySubscription.json @@ -0,0 +1,38 @@ +{ + "operationId": "LoadTests_ListBySubscription", + "title": "List LoadTestResource resources by subscription ID.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json new file mode 100644 index 000000000000..2ed76648276e --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json @@ -0,0 +1,110 @@ +{ + "operationId": "LoadTests_ListOutboundNetworkDependenciesEndpoints", + "title": "Lists the endpoints that agents may call as part of load testing.", + "parameters": { + "loadTestName": "sampleloadtest", + "resourceGroupName": "default-azureloadtest-japaneast", + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Azure Batch", + "endpoints": [ + { + "domainName": "sampleacct.japaneast.batch.azure.com", + "description": "Applicable to job manager tasks, tasks that use job scoped authentication, or any task that makes calls to Batch.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "japaneast.service.batch.azure.com", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Storage", + "endpoints": [ + { + "domainName": "autostorageaccountname.blob.core.windows.net", + "description": "AutoStorage endpoint for this Batch account. Applicable to all Azure Batch pools under this account.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.blob.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.table.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.queue.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Microsoft Package Repository", + "endpoints": [ + { + "domainName": "packages.microsoft.com", + "description": "Only applicable to pools containing a Mount Configuration. Learn about Mount Configurations in Batch at https://docs.microsoft.com/azure/batch/virtual-file-mount.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Key Vault", + "endpoints": [ + { + "domainName": "*.vault.azure.net", + "description": "Only applicable to pools containing a Disk Encryption Configuration and whose VM size does not support encryption at host. Learn more about disk encryption in Azure Batch at https://docs.microsoft.com/azure/batch/disk-encryption. Learn more about encryption at host and supported VM sizes at https://docs.microsoft.com/azure/virtual-machines/disks-enable-host-based-encryption-portal.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Update.json new file mode 100644 index 000000000000..489575c0460f --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/LoadTests_Update.json @@ -0,0 +1,82 @@ +{ + "operationId": "LoadTests_Update", + "title": "Update a LoadTestResource.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResourcePatchRequestBody": { + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01" + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Operations_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..a9a5c1b3ab76 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Operations_List.json @@ -0,0 +1,46 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.LoadTestService/loadTests/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Creates or updates the LoadTests", + "description": "Set LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Deletes the LoadTests", + "description": "Delete LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Reads the LoadTests", + "description": "Read LoadTests" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_CheckAvailability.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_CheckAvailability.json new file mode 100644 index 000000000000..29cab6ade828 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_CheckAvailability.json @@ -0,0 +1,34 @@ +{ + "operationId": "Quotas_CheckAvailability", + "title": "Check Quota Availability on quota bucket per region per subscription.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket", + "QuotaBucketRequest": { + "properties": { + "currentUsage": 20, + "currentQuota": 40, + "newQuota": 50, + "dimensions": { + "subscriptionId": "testsubscriptionId", + "location": "westus" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "isAvailable": false, + "availabilityStatus": "The requested quota is currently unavailable. Please request for different quota, or upgrade subscription offer type and try again later." + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_Get.json new file mode 100644 index 000000000000..6b42bcc0c58c --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_Get.json @@ -0,0 +1,23 @@ +{ + "operationId": "Quotas_Get", + "title": "Get the available quota for a quota bucket per region per subscription.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_List.json new file mode 100644 index 000000000000..75900512c036 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/examples/Quotas_List.json @@ -0,0 +1,26 @@ +{ + "operationId": "Quotas_List", + "title": "List quotas for a given subscription Id.", + "parameters": { + "api-version": "2023-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json new file mode 100644 index 000000000000..86864978e6a7 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json @@ -0,0 +1,1728 @@ +{ + "swagger": "2.0", + "info": { + "title": "LoadTest Client", + "version": "2023-12-01-preview", + "description": "LoadTest client provides access to LoadTest Resource and it's status operations.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "LoadTests" + }, + { + "name": "Quotas" + }, + { + "name": "LoadTestMappings" + }, + { + "name": "LoadTestProfileMappings" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.LoadTestService/loadTestMappings": { + "get": { + "operationId": "LoadTestMappings_List", + "tags": [ + "LoadTestMappings" + ], + "description": "List LoadTestMappingResource resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestMappingResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List all Load Test Mappings by Source Resource Id": { + "$ref": "./examples/LoadTestMappings_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.LoadTestService/loadTestMappings/{loadTestMappingName}": { + "get": { + "operationId": "LoadTestMappings_Get", + "tags": [ + "LoadTestMappings" + ], + "description": "Get a LoadTestMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestMappingName", + "in": "path", + "description": "Load Test Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Load Test Mapping Resource": { + "$ref": "./examples/LoadTestMappings_Get.json" + } + } + }, + "put": { + "operationId": "LoadTestMappings_CreateOrUpdate", + "tags": [ + "LoadTestMappings" + ], + "description": "Create a LoadTestMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestMappingName", + "in": "path", + "description": "Load Test Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestMappingResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'LoadTestMappingResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestMappingResource" + } + }, + "201": { + "description": "Resource 'LoadTestMappingResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a Load Test Mapping Resource": { + "$ref": "./examples/LoadTestMappings_CreateOrUpdate.json" + } + } + }, + "patch": { + "operationId": "LoadTestMappings_Update", + "tags": [ + "LoadTestMappings" + ], + "description": "Update a LoadTestMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestMappingName", + "in": "path", + "description": "Load Test Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestMappingResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a load test mapping": { + "$ref": "./examples/LoadTestMappings_Update.json" + } + } + }, + "delete": { + "operationId": "LoadTestMappings_Delete", + "tags": [ + "LoadTestMappings" + ], + "description": "Delete a LoadTestMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestMappingName", + "in": "path", + "description": "Load Test Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Load Test Mapping Resource": { + "$ref": "./examples/LoadTestMappings_Delete.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.LoadTestService/loadTestProfileMappings": { + "get": { + "operationId": "LoadTestProfileMappings_List", + "tags": [ + "LoadTestProfileMappings" + ], + "description": "List LoadTestProfileMappingResource resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Load Test Profile Mappings by Source Resource Id": { + "$ref": "./examples/LoadTestProfileMappings_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.LoadTestService/loadTestProfileMappings/{loadTestProfileMappingName}": { + "get": { + "operationId": "LoadTestProfileMappings_Get", + "tags": [ + "LoadTestProfileMappings" + ], + "description": "Get a LoadTestProfileMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestProfileMappingName", + "in": "path", + "description": "Load Test Profile Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Load Test Profile Mapping Resource": { + "$ref": "./examples/LoadTestProfileMappings_Get.json" + } + } + }, + "put": { + "operationId": "LoadTestProfileMappings_CreateOrUpdate", + "tags": [ + "LoadTestProfileMappings" + ], + "description": "Create a LoadTestProfileMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestProfileMappingName", + "in": "path", + "description": "Load Test Profile Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'LoadTestProfileMappingResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + }, + "201": { + "description": "Resource 'LoadTestProfileMappingResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a Load Test Profile Mappings resource": { + "$ref": "./examples/LoadTestProfileMappings_CreateOrUpdate.json" + } + } + }, + "patch": { + "operationId": "LoadTestProfileMappings_Update", + "tags": [ + "LoadTestProfileMappings" + ], + "description": "Update a LoadTestProfileMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestProfileMappingName", + "in": "path", + "description": "Load Test Profile Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a Load Test Profile Mapping": { + "$ref": "./examples/LoadTestProfileMappings_Update.json" + } + } + }, + "delete": { + "operationId": "LoadTestProfileMappings_Delete", + "tags": [ + "LoadTestProfileMappings" + ], + "description": "Delete a LoadTestProfileMappingResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "loadTestProfileMappingName", + "in": "path", + "description": "Load Test Profile Mapping name", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Load Test Profile Mapping Resource": { + "$ref": "./examples/LoadTestProfileMappings_Delete.json" + } + } + } + }, + "/providers/Microsoft.LoadTestService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests": { + "get": { + "operationId": "LoadTests_ListBySubscription", + "tags": [ + "LoadTests" + ], + "description": "List LoadTestResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List LoadTestResource resources by subscription ID.": { + "$ref": "./examples/LoadTests_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas": { + "get": { + "operationId": "Quotas_List", + "tags": [ + "Quotas" + ], + "description": "List quotas for a given subscription Id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/QuotaResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List quotas for a given subscription Id.": { + "$ref": "./examples/Quotas_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}": { + "get": { + "operationId": "Quotas_Get", + "tags": [ + "Quotas" + ], + "description": "Get the available quota for a quota bucket per region per subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "name": "quotaBucketName", + "in": "path", + "description": "The quota name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/QuotaResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the available quota for a quota bucket per region per subscription.": { + "$ref": "./examples/Quotas_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability": { + "post": { + "operationId": "Quotas_CheckAvailability", + "tags": [ + "Quotas" + ], + "description": "Check Quota Availability on quota bucket per region per subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "name": "quotaBucketName", + "in": "path", + "description": "The quota name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "QuotaBucketRequest", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/QuotaBucketRequest" + }, + "x-ms-client-name": "body" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CheckQuotaAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Check Quota Availability on quota bucket per region per subscription.": { + "$ref": "./examples/Quotas_CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests": { + "get": { + "operationId": "LoadTests_ListByResourceGroup", + "tags": [ + "LoadTests" + ], + "description": "List LoadTestResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List LoadTestResource resources by resource group.": { + "$ref": "./examples/LoadTests_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}": { + "get": { + "operationId": "LoadTests_Get", + "tags": [ + "LoadTests" + ], + "description": "Get a LoadTestResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "loadTestName", + "in": "path", + "description": "Load Test name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a LoadTestResource.": { + "$ref": "./examples/LoadTests_Get.json" + } + } + }, + "put": { + "operationId": "LoadTests_CreateOrUpdate", + "tags": [ + "LoadTests" + ], + "description": "Create a LoadTestResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "loadTestName", + "in": "path", + "description": "Load Test name", + "required": true, + "type": "string" + }, + { + "name": "LoadTestResource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestResource" + }, + "x-ms-client-name": "resource" + } + ], + "responses": { + "200": { + "description": "Resource 'LoadTestResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "201": { + "description": "Resource 'LoadTestResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/LoadTestResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a LoadTestResource": { + "$ref": "./examples/LoadTests_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "LoadTests_Update", + "tags": [ + "LoadTests" + ], + "description": "Update a LoadTestResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "loadTestName", + "in": "path", + "description": "Load Test name", + "required": true, + "type": "string" + }, + { + "name": "LoadTestResourcePatchRequestBody", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestResourceUpdate" + }, + "x-ms-client-name": "properties" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a LoadTestResource.": { + "$ref": "./examples/LoadTests_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "LoadTests_Delete", + "tags": [ + "LoadTests" + ], + "description": "Delete a LoadTestResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "loadTestName", + "in": "path", + "description": "Load Test name", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a LoadTestResource.": { + "$ref": "./examples/LoadTests_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints": { + "get": { + "operationId": "LoadTests_ListOutboundNetworkDependenciesEndpoints", + "tags": [ + "LoadTests" + ], + "description": "Lists the endpoints that agents may call as part of load testing.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "loadTestName", + "in": "path", + "description": "Load Test name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PagedOutboundEnvironmentEndpoint" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the endpoints that agents may call as part of load testing.": { + "$ref": "./examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "CheckQuotaAvailabilityResponse": { + "type": "object", + "description": "Check quota availability response object.", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", + "readOnly": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the resource.", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/CheckQuotaAvailabilityResponseProperties", + "description": "Check quota availability response properties.", + "x-ms-client-flatten": true + } + }, + "required": [ + "id", + "type" + ] + }, + "CheckQuotaAvailabilityResponseProperties": { + "type": "object", + "description": "Check quota availability response properties.", + "properties": { + "isAvailable": { + "type": "boolean", + "description": "True/False indicating whether the quota request be granted based on availability." + }, + "availabilityStatus": { + "type": "string", + "description": "Message indicating additional details to add to quota support request." + } + } + }, + "EncryptionProperties": { + "type": "object", + "description": "Key and identity details for Customer Managed Key encryption of load test resource.", + "properties": { + "identity": { + "$ref": "#/definitions/EncryptionPropertiesIdentity", + "description": "All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault." + }, + "keyUrl": { + "type": "string", + "description": "key encryption key Url, versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." + } + } + }, + "EncryptionPropertiesIdentity": { + "type": "object", + "description": "All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.", + "properties": { + "type": { + "$ref": "#/definitions/type", + "description": "Managed identity type to use for accessing encryption key Url." + }, + "resourceId": { + "type": "string", + "description": "User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.", + "x-nullable": true + } + } + }, + "EndpointDependency": { + "type": "object", + "description": "A domain name and connection details used to access a dependency.", + "properties": { + "domainName": { + "type": "string", + "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Human-readable supplemental information about the dependency and when it is applicable.", + "readOnly": true + }, + "endpointDetails": { + "type": "array", + "description": "The list of connection details for this endpoint.", + "items": { + "$ref": "#/definitions/EndpointDetail" + }, + "readOnly": true, + "x-ms-identifiers": [ + "port" + ] + } + }, + "required": [ + "domainName" + ] + }, + "EndpointDetail": { + "type": "object", + "description": "Details about the connection between the Batch service and the endpoint.", + "properties": { + "port": { + "type": "integer", + "format": "int32", + "description": "The port an endpoint is connected to.", + "readOnly": true + } + } + }, + "LoadTestMappingProperties": { + "type": "object", + "description": "Azure LoadTest mapping resource properties.", + "properties": { + "sourceResourceId": { + "type": "string", + "description": "Mapped source resource Id.", + "maxLength": 1024 + }, + "azureLoadTestingResourceId": { + "type": "string", + "description": "Mapped Azure Load Test resource Id.", + "maxLength": 1024 + }, + "testId": { + "type": "string", + "description": "Mapped Azure Load Test resource test-id.", + "maxLength": 256 + } + } + }, + "LoadTestMappingResource": { + "type": "object", + "description": "LoadTest mapping resource details", + "properties": { + "properties": { + "$ref": "#/definitions/LoadTestMappingProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "LoadTestMappingResourceListResult": { + "type": "object", + "description": "The response of a LoadTestMappingResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The LoadTestMappingResource items on this page", + "items": { + "$ref": "#/definitions/LoadTestMappingResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LoadTestMappingResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the LoadTestMappingResource.", + "properties": { + "properties": { + "$ref": "#/definitions/LoadTestMappingResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "LoadTestMappingResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the LoadTestMappingResource.", + "properties": { + "sourceResourceId": { + "type": "string", + "description": "Mapped source resource Id.", + "maxLength": 1024 + }, + "azureLoadTestingResourceId": { + "type": "string", + "description": "Mapped Azure Load Test resource Id.", + "maxLength": 1024 + }, + "testId": { + "type": "string", + "description": "Mapped Azure Load Test resource test-id.", + "maxLength": 256 + } + } + }, + "LoadTestProfileMappingProperties": { + "type": "object", + "description": "Azure LoadTest profile mapping resource properties.", + "properties": { + "sourceResourceId": { + "type": "string", + "description": "Mapped source resource Id.", + "maxLength": 1024 + }, + "azureLoadTestingResourceId": { + "type": "string", + "description": "Mapped Azure Load Test resource Id.", + "maxLength": 1024 + }, + "testProfileId": { + "type": "string", + "description": "Mapped Azure Load Test resource test-profile-id.", + "maxLength": 60 + } + } + }, + "LoadTestProfileMappingResource": { + "type": "object", + "description": "LoadTest profile mapping resource details", + "properties": { + "properties": { + "$ref": "#/definitions/LoadTestProfileMappingProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "LoadTestProfileMappingResourceListResult": { + "type": "object", + "description": "The response of a LoadTestProfileMappingResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The LoadTestProfileMappingResource items on this page", + "items": { + "$ref": "#/definitions/LoadTestProfileMappingResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LoadTestProfileMappingResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the LoadTestProfileMappingResource.", + "properties": { + "properties": { + "$ref": "#/definitions/LoadTestProfileMappingResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "LoadTestProfileMappingResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the LoadTestProfileMappingResource.", + "properties": { + "sourceResourceId": { + "type": "string", + "description": "Mapped source resource Id.", + "maxLength": 1024 + }, + "azureLoadTestingResourceId": { + "type": "string", + "description": "Mapped Azure Load Test resource Id.", + "maxLength": 1024 + }, + "testProfileId": { + "type": "string", + "description": "Mapped Azure Load Test resource test-profile-id.", + "maxLength": 60 + } + } + }, + "LoadTestProperties": { + "type": "object", + "description": "LoadTest resource properties.", + "properties": { + "description": { + "type": "string", + "description": "Description of the resource.", + "maxLength": 512 + }, + "provisioningState": { + "$ref": "#/definitions/ResourceState", + "description": "Resource provisioning state.", + "readOnly": true + }, + "dataPlaneURI": { + "type": "string", + "description": "Resource data plane URI.", + "maxLength": 2083, + "readOnly": true + }, + "encryption": { + "$ref": "#/definitions/EncryptionProperties", + "description": "CMK Encryption property." + } + } + }, + "LoadTestResource": { + "type": "object", + "description": "LoadTest details.", + "properties": { + "properties": { + "$ref": "#/definitions/LoadTestProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "LoadTestResourceListResult": { + "type": "object", + "description": "The response of a LoadTestResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The LoadTestResource items on this page", + "items": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LoadTestResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the LoadTestResource.", + "properties": { + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/LoadTestResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "LoadTestResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the LoadTestResource.", + "properties": { + "description": { + "type": "string", + "description": "Description of the resource.", + "maxLength": 512 + }, + "encryption": { + "$ref": "#/definitions/EncryptionProperties", + "description": "CMK Encryption property." + } + } + }, + "OutboundEnvironmentEndpoint": { + "type": "object", + "description": "A collection of related endpoints from the same service for which the Batch service requires outbound access.", + "properties": { + "category": { + "type": "string", + "description": "The type of service that Azure Load Testing connects to.", + "readOnly": true + }, + "endpoints": { + "type": "array", + "description": "The endpoints for this service to which the Batch service makes outbound calls.", + "items": { + "$ref": "#/definitions/EndpointDependency" + }, + "readOnly": true, + "x-ms-identifiers": [ + "domainName" + ] + } + } + }, + "PagedOutboundEnvironmentEndpoint": { + "type": "object", + "description": "Values returned by the List operation.", + "properties": { + "value": { + "type": "array", + "description": "The OutboundEnvironmentEndpoint items on this page", + "items": { + "$ref": "#/definitions/OutboundEnvironmentEndpoint" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "QuotaBucketRequest": { + "type": "object", + "description": "Request object of new quota for a quota bucket.", + "properties": { + "properties": { + "$ref": "#/definitions/QuotaBucketRequestProperties", + "description": "Request object of new quota for a quota bucket.", + "x-ms-client-flatten": true + } + } + }, + "QuotaBucketRequestProperties": { + "type": "object", + "description": "New quota request request properties.", + "properties": { + "currentUsage": { + "type": "integer", + "format": "int32", + "description": "Current quota usage of the quota bucket.", + "minimum": 0 + }, + "currentQuota": { + "type": "integer", + "format": "int32", + "description": "Current quota limit of the quota bucket.", + "minimum": 0 + }, + "newQuota": { + "type": "integer", + "format": "int32", + "description": "New quota limit of the quota bucket.", + "minimum": 0 + }, + "dimensions": { + "$ref": "#/definitions/QuotaBucketRequestPropertiesDimensions", + "description": "Dimensions for new quota request." + } + } + }, + "QuotaBucketRequestPropertiesDimensions": { + "type": "object", + "description": "Dimensions for new quota request.", + "properties": { + "subscriptionId": { + "type": "string", + "description": "Subscription Id dimension for new quota request of the quota bucket.", + "minLength": 1 + }, + "location": { + "type": "string", + "description": "Location dimension for new quota request of the quota bucket.", + "minLength": 1 + } + } + }, + "QuotaResource": { + "type": "object", + "description": "Quota bucket details object.", + "properties": { + "properties": { + "$ref": "#/definitions/QuotaResourceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "QuotaResourceListResult": { + "type": "object", + "description": "The response of a QuotaResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The QuotaResource items on this page", + "items": { + "$ref": "#/definitions/QuotaResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "QuotaResourceProperties": { + "type": "object", + "description": "Quota bucket resource properties.", + "properties": { + "limit": { + "type": "integer", + "format": "int32", + "description": "Current quota limit of the quota bucket.", + "minimum": 0 + }, + "usage": { + "type": "integer", + "format": "int32", + "description": "Current quota usage of the quota bucket.", + "minimum": 0 + }, + "provisioningState": { + "$ref": "#/definitions/ResourceState", + "description": "Resource provisioning state.", + "readOnly": true + } + } + }, + "ResourceState": { + "type": "string", + "description": "Resources provisioning states.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Deleted" + ], + "x-ms-enum": { + "name": "ResourceState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "Deleted state." + } + ] + }, + "readOnly": true + }, + "type": { + "type": "string", + "description": "Managed identity type to use for accessing encryption key Url.", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true, + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned", + "description": "System assigned identity." + }, + { + "name": "UserAssigned", + "value": "UserAssigned", + "description": "User assigned identity." + } + ] + } + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/loadtestservice/resource-manager/readme.md b/specification/loadtestservice/resource-manager/readme.md index 16cc1f6f0221..b2cfdf070a07 100644 --- a/specification/loadtestservice/resource-manager/readme.md +++ b/specification/loadtestservice/resource-manager/readme.md @@ -30,6 +30,15 @@ openapi-subtype: rpaas tag: package-2022-12-01 ``` +### Tag: package-2023-12-01-preview + +These settings apply only when `--tag=package-2023-12-01` is specified on the command line. + +```yaml $(tag) == 'package-2023-12-01-preview' +input-file: + - Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json +``` + ### Tag: package-2022-12-01 These settings apply only when `--tag=package-2022-12-01` is specified on the command line.