Skip to content

Commit

Permalink
Added 2023-12-01 preview API for Azure Load Testing Control Plane (Az…
Browse files Browse the repository at this point in the history
…ure#29543)

* Added 2023-12-01 API Specs and Initial Examples

* Added validated examples

* Changes in the README and Provisioning State Suppression

* Format changes

* Pattern on resource names
  • Loading branch information
mitsha-microsoft authored Jun 25, 2024
1 parent 356aa51 commit 3aef2f9
Show file tree
Hide file tree
Showing 47 changed files with 3,670 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Loading

0 comments on commit 3aef2f9

Please sign in to comment.