From 0ad19a0ffc24982b24472340f5f90b850bbdb9c9 Mon Sep 17 00:00:00 2001 From: Ritchie Hughes Date: Wed, 30 Oct 2024 13:36:14 -0600 Subject: [PATCH 1/8] Copy files from stable/2024-01-01 Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. --- .../2024-12-01-preview/capabilities.json | 262 ++++++ .../2024-12-01-preview/capabilityTypes.json | 131 +++ .../examples/CancelExperiment.json | 16 + .../examples/CreateUpdateCapability.json | 35 + .../examples/CreateUpdateExperiment.json | 182 ++++ .../examples/CreateUpdateTarget.json | 45 + .../examples/DeleteCapability.json | 16 + .../examples/DeleteExperiment.json | 16 + .../examples/DeleteTarget.json | 15 + .../examples/DetailsExperiment.json | 64 ++ .../examples/GetCapability.json | 32 + .../examples/GetCapabilityType.json | 30 + .../examples/GetExperiment.json | 70 ++ .../examples/GetExperimentExecution.json | 24 + .../examples/GetOperationStatus.json | 20 + .../examples/GetTarget.json | 35 + .../examples/GetTargetType.json | 28 + .../examples/ListCapabilities.json | 36 + .../examples/ListCapabilityTypes.json | 34 + .../examples/ListExperimentExecutions.json | 38 + .../ListExperimentsInAResourceGroup.json | 75 ++ .../ListExperimentsInASubscription.json | 74 ++ .../examples/ListTargetTypes.json | 33 + .../examples/ListTargets.json | 40 + .../examples/StartExperiment.json | 16 + .../examples/UpdateExperiment.json | 92 ++ .../2024-12-01-preview/experiments.json | 547 ++++++++++++ .../2024-12-01-preview/operationStatuses.json | 122 +++ .../2024-12-01-preview/operations.json | 70 ++ .../2024-12-01-preview/targetTypes.json | 125 +++ .../preview/2024-12-01-preview/targets.json | 250 ++++++ .../types/capabilities.json | 84 ++ .../types/capabilityTypes.json | 125 +++ .../2024-12-01-preview/types/common.json | 234 +++++ .../2024-12-01-preview/types/experiments.json | 832 ++++++++++++++++++ .../2024-12-01-preview/types/targetTypes.json | 88 ++ .../2024-12-01-preview/types/targets.json | 64 ++ 37 files changed, 4000 insertions(+) create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json new file mode 100644 index 000000000000..136527d553c5 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json @@ -0,0 +1,262 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities": { + "get": { + "description": "Get a list of Capability resources that extend a Target resource..", + "tags": [ + "Capabilities" + ], + "operationId": "Capabilities_List", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Capability resources returned if request was successful.", + "schema": { + "$ref": "./types/capabilities.json#/definitions/capabilityListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Capabilities that extend a virtual machine Target resource.": { + "$ref": "./examples/ListCapabilities.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}": { + "get": { + "description": "Get a Capability resource that extends a Target resource.", + "tags": [ + "Capabilities" + ], + "operationId": "Capabilities_Get", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + }, + { + "$ref": "./types/common.json#/parameters/capabilityName" + } + ], + "responses": { + "200": { + "description": "Capability resource returned if request was successful.", + "schema": { + "$ref": "./types/capabilities.json#/definitions/capability" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/GetCapability.json" + } + } + }, + "delete": { + "description": "Delete a Capability that extends a Target resource.", + "tags": [ + "Capabilities" + ], + "operationId": "Capabilities_Delete", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + }, + { + "$ref": "./types/common.json#/parameters/capabilityName" + } + ], + "responses": { + "200": { + "description": "Capability resource deletion was successful." + }, + "204": { + "description": "Capability resource deletion was successful." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/DeleteCapability.json" + } + } + }, + "put": { + "description": "Create or update a Capability resource that extends a Target resource.", + "tags": [ + "Capabilities" + ], + "operationId": "Capabilities_CreateOrUpdate", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + }, + { + "$ref": "./types/common.json#/parameters/capabilityName" + }, + { + "name": "capability", + "description": "Capability resource to be created or updated.", + "in": "body", + "required": true, + "schema": { + "$ref": "./types/capabilities.json#/definitions/capability" + } + } + ], + "responses": { + "200": { + "description": "Capability resource returned if request was successful.", + "schema": { + "$ref": "./types/capabilities.json#/definitions/capability" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create/update a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/CreateUpdateCapability.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json new file mode 100644 index 000000000000..0667c38cb499 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json @@ -0,0 +1,131 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes": { + "get": { + "description": "Get a list of Capability Type resources for given Target Type and location.", + "tags": [ + "CapabilityTypes" + ], + "operationId": "CapabilityTypes_List", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/locationName" + }, + { + "$ref": "./types/common.json#/parameters/targetTypeName" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Capability Type resources returned if request was successful.", + "schema": { + "$ref": "./types/capabilityTypes.json#/definitions/capabilityTypeListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Capability Types for a virtual machine Target resource on westus2 location.": { + "$ref": "./examples/ListCapabilityTypes.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes/{capabilityTypeName}": { + "get": { + "description": "Get a Capability Type resource for given Target Type and location.", + "tags": [ + "Capabilities" + ], + "operationId": "CapabilityTypes_Get", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/locationName" + }, + { + "$ref": "./types/common.json#/parameters/targetTypeName" + }, + { + "$ref": "./types/common.json#/parameters/capabilityTypeName" + } + ], + "responses": { + "200": { + "description": "Capability Type resource returned if request was successful.", + "schema": { + "$ref": "./types/capabilityTypes.json#/definitions/capabilityType" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Capability Type for a virtual machine Target resource on westus2 location.": { + "$ref": "./examples/GetCapabilityType.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json new file mode 100644 index 000000000000..e23718469cdb --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json new file mode 100644 index 000000000000..5ac245761011 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-VirtualMachine", + "capabilityName": "Shutdown-1.0", + "api-version": "2024-01-01", + "capability": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", + "type": "Microsoft.Chaos/targets/capabilities", + "name": "Shutdown-1.0", + "properties": { + "publisher": "Microsoft", + "targetType": "VirtualMachine", + "description": "Shutdown an Azure Virtual Machine for a defined period of time.", + "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", + "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" + }, + "systemData": { + "createdAt": "2020-05-14T05:08:38.4662189Z", + "lastModifiedAt": "2020-05-14T05:08:38.4662189Z" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json new file mode 100644 index 000000000000..cff2b7a08d65 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json @@ -0,0 +1,182 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01", + "experiment": { + "location": "eastus2euap", + "identity": { + "type": "SystemAssigned" + }, + "properties": { + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:microsoft:virtualMachine:shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + }, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "eastus2euap", + "identity": { + "type": "SystemAssigned", + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "properties": { + "provisioningState": "Creating", + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:microsoft:virtualMachine:shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + }, + "200": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + }, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "eastus2euap", + "identity": { + "type": "SystemAssigned", + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "properties": { + "provisioningState": "Updating", + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:microsoft:virtualMachine:shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json new file mode 100644 index 000000000000..5c7d3222ba69 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-Agent", + "api-version": "2024-01-01", + "target": { + "properties": { + "identities": [ + { + "type": "CertificateSubjectIssuer", + "subject": "CN=example.subject" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-Agent", + "type": "Microsoft.Chaos/targets", + "name": "Microsoft-Agent", + "location": "centraluseuap", + "properties": { + "identities": [ + { + "type": "CertificateSubjectIssuer", + "subject": "CN=example.subject" + } + ], + "agentProfileId": "ac4e8251-fdc9-4277-8e87-dc57fe5794cf" + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "lastModifiedAt": "2021-07-01T00:00:00.0Z" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json new file mode 100644 index 000000000000..f54b0231852b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-VirtualMachine", + "capabilityName": "Shutdown-1.0", + "api-version": "2024-01-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json new file mode 100644 index 000000000000..e23718469cdb --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json new file mode 100644 index 000000000000..35894555972e --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-Agent", + "api-version": "2024-01-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json new file mode 100644 index 000000000000..7d3279682848 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "executionId": "f24500ad-744e-4a26-864b-b76199eac333", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.Chaos/experiments/executions/getExecutionDetails", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executions/f24500ad-744e-4a26-864b-b76199eac333/getExecutionDetails", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "lastActionAt": "2020-12-14T21:52:52.2552574Z", + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "failed", + "failureReason": "Dependency failure", + "runInformation": { + "steps": [ + { + "stepName": "FirstStep", + "stepId": "FirstStep", + "status": "failed", + "branches": [ + { + "branchName": "FirstBranch", + "branchId": "FirstBranch", + "status": "failed", + "actions": [ + { + "actionName": "urn:provider:agent-v2:Microsoft.Azure.Chaos.Fault.CPUPressureAllProcessors", + "actionId": "59499d33-6751-4b6e-a1f6-58f4d56a040a", + "status": "failed", + "startTime": "2020-12-14T13:56:13.6270153-08:00", + "endTime": "2020-12-14T13:56:13.6270153-08:00", + "targets": [ + { + "status": "succeeded", + "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", + "targetFailedTime": "2021-04-02T16:30:55+00:00", + "targetCompletedTime": "2021-04-02T17:30:55+00:00" + }, + { + "status": "failed", + "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", + "targetFailedTime": "2021-04-02T16:30:55+00:00", + "targetCompletedTime": "2021-04-02T17:30:55+00:00" + } + ] + } + ] + } + ] + } + ] + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json new file mode 100644 index 000000000000..d4acc057b0a8 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-VirtualMachine", + "capabilityName": "Shutdown-1.0", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", + "type": "Microsoft.Chaos/targets/capabilities", + "name": "Shutdown-1.0", + "properties": { + "publisher": "Microsoft", + "targetType": "VirtualMachine", + "description": "Shutdown an Azure Virtual Machine for a defined period of time.", + "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", + "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" + }, + "systemData": { + "createdAt": "2020-05-14T05:08:38.4662189Z", + "lastModifiedAt": "2020-05-14T05:08:38.4662189Z" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json new file mode 100644 index 000000000000..0e974cffdf07 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-VirtualMachine", + "capabilityTypeName": "Shutdown-1.0", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0", + "type": "Microsoft.Chaos/locations/targetTypes/capabilityTypes", + "name": "Shutdown-1.0", + "properties": { + "kind": "fault", + "publisher": "Microsoft", + "targetType": "VirtualMachine", + "displayName": "Shutdown VM", + "description": "Shutdown an Azure Virtual Machine for a defined period of time.", + "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", + "runtimeProperties": { + "kind": "continuous" + }, + "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json new file mode 100644 index 000000000000..941ccac17c9d --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "centraluseuap", + "identity": { + "type": "SystemAssigned", + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "properties": { + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:provider:providername:Shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json new file mode 100644 index 000000000000..3ab3b4c2e7bb --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "executionId": "f24500ad-744e-4a26-864b-b76199eac333", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executions/f24500ad-744e-4a26-864b-b76199eac333", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "failed" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json new file mode 100644 index 000000000000..200f3d386d3c --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/locations/westus/operationStatuses/713192d7-503f-477a-9cfe-4efc3ee2bd11", + "name": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "startTime": "2017-01-01T13:13:13.933Z", + "endTime": "2017-01-01T16:13:13.933Z", + "status": "Succeeded" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json new file mode 100644 index 000000000000..7599c1f16746 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-Agent", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-Agent", + "type": "Microsoft.Chaos/targets", + "name": "Microsoft-Agent", + "location": "centraluseuap", + "properties": { + "identities": [ + { + "type": "CertificateSubjectIssuer", + "subject": "CN=example.subject" + } + ], + "agentProfileId": "ac4e8251-fdc9-4277-8e87-dc57fe5794cf" + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "lastModifiedAt": "2021-07-01T00:00:00.0Z" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json new file mode 100644 index 000000000000..5e21250f94d3 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-Agent", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-Agent", + "type": "Microsoft.Chaos/locations/targetTypes", + "name": "Microsoft-Agent", + "location": "centraluseuap", + "properties": { + "displayName": "Chaos Agent", + "description": "A target represents Chaos Agent.", + "propertiesSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine.json", + "resourceTypes": [ + "Microsoft.Compute/virtualMachines", + "Microsoft.Compute/virtualMachineScaleSets" + ] + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json new file mode 100644 index 000000000000..756e0bbbbbdd --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "targetName": "Microsoft-VirtualMachine", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", + "type": "Microsoft.Chaos/targets/capabilities", + "name": "Shutdown-1.0", + "properties": { + "publisher": "Microsoft", + "targetType": "VirtualMachine", + "description": "Shutdown an Azure Virtual Machine for a defined period of time.", + "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", + "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" + }, + "systemData": { + "createdAt": "2020-05-14T05:08:38.4662189Z", + "lastModifiedAt": "2020-05-14T05:08:38.4662189Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json new file mode 100644 index 000000000000..86209c53b8dd --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-VirtualMachine", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0", + "type": "Microsoft.Chaos/locations/targetTypes/capabilityTypes", + "name": "Shutdown-1.0", + "properties": { + "kind": "fault", + "publisher": "Microsoft", + "targetType": "VirtualMachine", + "displayName": "Shutdown VM", + "description": "Shutdown an Azure Virtual Machine for a defined period of time.", + "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", + "runtimeProperties": { + "kind": "continuous" + }, + "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json new file mode 100644 index 000000000000..234b170bf7fe --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executions/", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "failed" + } + }, + { + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/14d98367-52ef-4596-be4f-53fc81bbfc33", + "name": "14d98367-52ef-4596-be4f-53fc81bbfc33", + "properties": { + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "success" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json new file mode 100644 index 000000000000..9008b2c2b89b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "continuationToken": null, + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "centraluseuap", + "identity": { + "type": "SystemAssigned", + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "properties": { + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:provider:providername:Shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json new file mode 100644 index 000000000000..966c7a3e889b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "continuationToken": null, + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "centraluseuap", + "identity": { + "type": "SystemAssigned", + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "properties": { + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:provider:providername:Shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json new file mode 100644 index 000000000000..0e46b29f5fce --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "continuationToken": null, + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-Agent", + "type": "Microsoft.Chaos/locations/targetTypes", + "name": "Microsoft-Agent", + "location": "centraluseuap", + "properties": { + "displayName": "Chaos Agent", + "description": "A target represents Chaos Agent.", + "propertiesSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine.json", + "resourceTypes": [ + "Microsoft.Compute/virtualMachines", + "Microsoft.Compute/virtualMachineScaleSets" + ] + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json new file mode 100644 index 000000000000..308cbea5a20b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "parentProviderNamespace": "Microsoft.Compute", + "parentResourceType": "virtualMachines", + "parentResourceName": "exampleVM", + "continuationToken": null, + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-Agent", + "type": "Microsoft.Chaos/targets", + "name": "Microsoft-Agent", + "location": "centraluseuap", + "properties": { + "identities": [ + { + "type": "CertificateSubjectIssuer", + "subject": "CN=example.subject" + } + ], + "agentProfileId": "ac4e8251-fdc9-4277-8e87-dc57fe5794cf" + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "lastModifiedAt": "2021-07-01T00:00:00.0Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets?continuationToken=&api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json new file mode 100644 index 000000000000..e23718469cdb --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json new file mode 100644 index 000000000000..2731ea7024e4 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2024-01-01", + "experiment": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentity/exampleUMI": {} + } + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + }, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", + "type": "Microsoft.Chaos/experiments", + "name": "exampleExperiment", + "location": "centraluseuap", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentity/exampleUMI": {} + }, + "principalId": "d04ab567-2c07-43ef-a7f4-4527626b7f56", + "tenantId": "8c3e2fb2-fe7a-4bf1-b779-d73990782fe6" + }, + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "steps": [ + { + "name": "step1", + "branches": [ + { + "name": "branch1", + "actions": [ + { + "type": "continuous", + "name": "urn:csci:provider:providername:Shutdown/1.0", + "selectorId": "selector1", + "duration": "PT10M", + "parameters": [ + { + "key": "abruptShutdown", + "value": "false" + } + ] + } + ] + } + ] + } + ], + "selectors": [ + { + "type": "List", + "id": "selector1", + "targets": [ + { + "type": "ChaosTarget", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine" + } + ] + } + ] + }, + "systemData": { + "createdAt": "2021-07-01T00:00:00.0Z", + "createdBy": "User", + "createdByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976", + "lastModifiedAt": "2021-07-01T00:00:00.0Z", + "lastModifiedBy": "User", + "lastModifiedByType": "b3a41dba-4415-4d36-9ee8-e5eaa86db976" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json new file mode 100644 index 000000000000..d9ea44736020 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json @@ -0,0 +1,547 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/experiments": { + "get": { + "description": "Get a list of Experiment resources in a subscription.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_ListAll", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/experiments.json#/parameters/runningFilter" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Experiment resources returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Experiments in a subscription.": { + "$ref": "./examples/ListExperimentsInASubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments": { + "get": { + "description": "Get a list of Experiment resources in a resource group.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_List", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/runningFilter" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Experiment resources returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Experiments in a resource group.": { + "$ref": "./examples/ListExperimentsInAResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}": { + "delete": { + "description": "Delete a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_Delete", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + } + ], + "responses": { + "202": { + "description": "Asynchronous delete operation." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete a Experiment in a resource group.": { + "$ref": "./examples/DeleteExperiment.json" + } + } + }, + "get": { + "description": "Get a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_Get", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + } + ], + "responses": { + "200": { + "description": "Experiment resource returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experiment" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Experiment in a resource group.": { + "$ref": "./examples/GetExperiment.json" + } + } + }, + "put": { + "description": "Create or update a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_CreateOrUpdate", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + }, + { + "name": "experiment", + "description": "Experiment resource to be created or updated.", + "in": "body", + "required": true, + "schema": { + "$ref": "./types/experiments.json#/definitions/experiment" + } + } + ], + "responses": { + "201": { + "description": "Long running create experiment operation.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experiment" + } + }, + "200": { + "description": "Long running replace experiment operation.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experiment" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create/update a Experiment in a resource group.": { + "$ref": "./examples/CreateUpdateExperiment.json" + } + } + }, + "patch": { + "description": "The operation to update an experiment.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_Update", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + }, + { + "name": "experiment", + "in": "body", + "required": true, + "description": "Parameters supplied to the Update experiment operation.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentUpdate" + } + } + ], + "responses": { + "202": { + "description": "Long running update operation.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experiment" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Update an Experiment in a resource group.": { + "$ref": "./examples/UpdateExperiment.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/cancel": { + "post": { + "description": "Cancel a running Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_Cancel", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + } + ], + "responses": { + "202": { + "description": "Long running cancel operation." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Cancel a running Experiment.": { + "$ref": "./examples/CancelExperiment.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/start": { + "post": { + "description": "Start a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_Start", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + } + ], + "responses": { + "202": { + "description": "Long running start experiment operation." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Start a Experiment.": { + "$ref": "./examples/StartExperiment.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions": { + "get": { + "description": "Get a list of executions of an Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_ListAllExecutions", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + } + ], + "responses": { + "200": { + "description": "List of executions returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentExecutionListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all executions of an Experiment.": { + "$ref": "./examples/ListExperimentExecutions.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}": { + "get": { + "description": "Get an execution of an Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_GetExecution", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + }, + { + "$ref": "./types/experiments.json#/parameters/executionId" + } + ], + "responses": { + "200": { + "description": "Execution returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentExecution" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the execution of a Experiment.": { + "$ref": "./examples/GetExperimentExecution.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}/getExecutionDetails": { + "post": { + "description": "Execution details of an experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_ExecutionDetails", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/experiments.json#/parameters/experimentName" + }, + { + "$ref": "./types/experiments.json#/parameters/executionId" + } + ], + "responses": { + "200": { + "description": "Get experiment execution details.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentExecutionDetails" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get experiment execution details.": { + "$ref": "./examples/DetailsExperiment.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json new file mode 100644 index 000000000000..9660b7c68d07 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json @@ -0,0 +1,122 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/operationStatuses/{asyncOperationId}": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/GetOperationStatus.json" + } + }, + "tags": [ + "asyncOperations" + ], + "operationId": "OperationStatuses_Get", + "description": "Get the status of a long running azure asynchronous operation.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Operation status.", + "schema": { + "$ref": "#/definitions/operationStatus" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "operationStatus": { + "description": "The status of operation.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + ], + "properties": { + "id": { + "type": "string", + "description": "The operation Id." + }, + "name": { + "type": "string", + "description": "The operation name." + }, + "startTime": { + "type": "string", + "description": "The start time of the operation.", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "type": "string", + "description": "The end time of the operation.", + "format": "date-time", + "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the operation." + } + } + } + }, + "parameters": {} +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json new file mode 100644 index 000000000000..5b30a1cafcb2 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json @@ -0,0 +1,70 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Chaos/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Get a list all available Operations.", + "operationId": "Operations_ListAll", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + } + ], + "responses": { + "200": { + "description": "List of Operations returned if request was successful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": {} + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json new file mode 100644 index 000000000000..d479a80c04e8 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json @@ -0,0 +1,125 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes": { + "get": { + "description": "Get a list of Target Type resources for given location.", + "tags": [ + "TargetTypes" + ], + "operationId": "TargetTypes_List", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/locationName" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Target Type resources returned if request was successful.", + "schema": { + "$ref": "./types/targetTypes.json#/definitions/targetTypeListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Target Types for westus2 location.": { + "$ref": "./examples/ListTargetTypes.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}": { + "get": { + "description": "Get a Target Type resources for given location.", + "tags": [ + "TargetTypes" + ], + "operationId": "TargetTypes_Get", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/locationName" + }, + { + "$ref": "./types/common.json#/parameters/targetTypeName" + } + ], + "responses": { + "200": { + "description": "Target Type resource returned if request was successful.", + "schema": { + "$ref": "./types/targetTypes.json#/definitions/targetType" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Target Type for westus2 location": { + "$ref": "./examples/GetTargetType.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json new file mode 100644 index 000000000000..77f2a18ac595 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json @@ -0,0 +1,250 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2024-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets": { + "get": { + "description": "Get a list of Target resources that extend a tracked regional resource.", + "tags": [ + "Targets" + ], + "operationId": "Targets_List", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/continuationToken" + } + ], + "responses": { + "200": { + "description": "List of Target resources returned if request was successful.", + "schema": { + "$ref": "./types/targets.json#/definitions/targetListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Targets that extend a virtual machine resource.": { + "$ref": "./examples/ListTargets.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}": { + "get": { + "description": "Get a Target resource that extends a tracked regional resource.", + "tags": [ + "Targets" + ], + "operationId": "Targets_Get", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + } + ], + "responses": { + "200": { + "description": "Target resource returned if request was successful.", + "schema": { + "$ref": "./types/targets.json#/definitions/target" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Target that extends a virtual machine resource.": { + "$ref": "./examples/GetTarget.json" + } + } + }, + "delete": { + "description": "Delete a Target resource that extends a tracked regional resource.", + "tags": [ + "Targets" + ], + "operationId": "Targets_Delete", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + } + ], + "responses": { + "200": { + "description": "Target resource deletion was successful." + }, + "204": { + "description": "Target resource deletion was successful." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Target that extends a virtual machine resource.": { + "$ref": "./examples/DeleteTarget.json" + } + } + }, + "put": { + "description": "Create or update a Target resource that extends a tracked regional resource.", + "tags": [ + "Targets" + ], + "operationId": "Targets_CreateOrUpdate", + "parameters": [ + { + "$ref": "./types/common.json#/parameters/apiVersion" + }, + { + "$ref": "./types/common.json#/parameters/subscriptionId" + }, + { + "$ref": "./types/common.json#/parameters/resourceGroupName" + }, + { + "$ref": "./types/common.json#/parameters/parentProviderNamespace" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceType" + }, + { + "$ref": "./types/common.json#/parameters/parentResourceName" + }, + { + "$ref": "./types/common.json#/parameters/targetName" + }, + { + "name": "target", + "description": "Target resource to be created or updated.", + "in": "body", + "required": true, + "schema": { + "$ref": "./types/targets.json#/definitions/target" + } + } + ], + "responses": { + "200": { + "description": "Target resource returned if request was successful.", + "schema": { + "$ref": "./types/targets.json#/definitions/target" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create/update a Target that extends a virtual machine resource.": { + "$ref": "./examples/CreateUpdateTarget.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json new file mode 100644 index 000000000000..e1dcee8804c9 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json @@ -0,0 +1,84 @@ +{ + "swagger": "2.0", + "info": { + "title": "Capability Types", + "version": "2024-01-01" + }, + "paths": {}, + "definitions": { + "capability": { + "type": "object", + "description": "Model that represents a Capability resource.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "systemData": { + "description": "The standard system metadata of a resource type.", + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of a capability resource.", + "$ref": "#/definitions/capabilityProperties", + "readOnly": true + } + } + }, + "capabilityProperties": { + "type": "object", + "description": "Model that represents the Capability properties model.", + "properties": { + "publisher": { + "type": "string", + "description": "String of the Publisher that this Capability extends.", + "readOnly": true + }, + "targetType": { + "type": "string", + "description": "String of the Target Type that this Capability extends.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Localized string of the description.", + "readOnly": true + }, + "parametersSchema": { + "$ref": "./common.json#/definitions/url", + "description": "URL to retrieve JSON schema of the Capability parameters.", + "readOnly": true + }, + "urn": { + "$ref": "./common.json#/definitions/urn", + "description": "String of the URN for this Capability Type.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "capabilityListResult": { + "type": "object", + "description": "Model that represents a list of Capability resources and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/capability" + }, + "description": "List of Capability resources.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Capability resources.", + "readOnly": true + } + }, + "additionalProperties": false + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json new file mode 100644 index 000000000000..35e902fda074 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json @@ -0,0 +1,125 @@ +{ + "swagger": "2.0", + "info": { + "title": "Capability Metadata Types", + "version": "2024-01-01" + }, + "paths": {}, + "definitions": { + "capabilityType": { + "type": "object", + "description": "Model that represents a Capability Type resource.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata properties of the capability type resource.", + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Location of the Capability Type resource." + }, + "properties": { + "description": "The properties of the capability type resource.", + "$ref": "#/definitions/capabilityTypeProperties", + "x-ms-client-flatten": true, + "readOnly": true + } + } + }, + "capabilityTypeProperties": { + "type": "object", + "description": "Model that represents the Capability Type properties model.", + "properties": { + "publisher": { + "type": "string", + "description": "String of the Publisher that this Capability Type extends.", + "readOnly": true + }, + "targetType": { + "type": "string", + "description": "String of the Target Type that this Capability Type extends.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Localized string of the display name.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Localized string of the description.", + "readOnly": true + }, + "parametersSchema": { + "$ref": "./common.json#/definitions/url", + "description": "URL to retrieve JSON schema of the Capability Type parameters.", + "readOnly": true + }, + "urn": { + "$ref": "./common.json#/definitions/urn", + "description": "String of the URN for this Capability Type.", + "readOnly": true + }, + "kind": { + "type": "string", + "description": "String of the kind of this Capability Type.", + "readOnly": true + }, + "azureRbacActions": { + "type": "array", + "description": "Control plane actions necessary to execute capability type.", + "items": { + "type": "string", + "description": "Control plane action necessary to execute capability type." + } + }, + "azureRbacDataActions": { + "type": "array", + "description": "Data plane actions necessary to execute capability type.", + "items": { + "type": "string", + "description": "Data plane action necessary to execute capability type." + } + }, + "runtimeProperties": { + "type": "object", + "description": "Runtime properties of this Capability Type.", + "properties": { + "kind": { + "type": "string", + "description": "String of the kind of the resource's action type (continuous or discrete).", + "readOnly": true + } + } + } + }, + "additionalProperties": false + }, + "capabilityTypeListResult": { + "type": "object", + "description": "Model that represents a list of Capability Type resources and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/capabilityType" + }, + "description": "List of Capability Type resources.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Capability Type resources.", + "readOnly": true + } + }, + "additionalProperties": false + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json new file mode 100644 index 000000000000..15342e9b3c18 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json @@ -0,0 +1,234 @@ +{ + "swagger": "2.0", + "info": { + "title": "Common Types", + "version": "2024-01-01" + }, + "paths": {}, + "definitions": { + "resourceIdentity": { + "type": "object", + "description": "The identity of a resource.", + "properties": { + "type": { + "type": "string", + "description": "String of the resource identity type.", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "$ref": "../../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/UserAssignedIdentities", + "description": "The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + }, + "principalId": { + "type": "string", + "description": "GUID that represents the principal ID of this resource identity.", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "GUID that represents the tenant ID of this resource identity.", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "readOnly": true + } + }, + "required": [ + "type" + ], + "additionalProperties": false + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "url": { + "type": "string", + "description": "String that represents a URL.", + "maxLength": 2048, + "x-nullable": false + }, + "urn": { + "type": "string", + "description": "String that represents a URN.", + "maxLength": 2048, + "x-nullable": false + }, + "urlNullable": { + "type": "string", + "description": "Optional string that represents a URL.", + "maxLength": 2048, + "x-nullable": true + }, + "provisioningState": { + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Updating", + "Deleting" + ], + "type": "string", + "description": "Current provisioning state for a given Azure Chaos resource.", + "example": "Succeeded", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "value": "Succeeded" + }, + { + "value": "Failed" + }, + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Updating" + }, + { + "value": "Deleting" + } + ] + } + } + }, + "parameters": { + "apiVersion": { + "name": "api-version", + "description": "String that sets the API version.", + "type": "string", + "in": "query", + "required": true, + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(|-preview)$", + "x-ms-parameter-location": "client" + }, + "subscriptionId": { + "name": "subscriptionId", + "description": "GUID that represents an Azure subscription ID.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "x-ms-parameter-location": "client" + }, + "resourceGroupName": { + "name": "resourceGroupName", + "description": "String that represents an Azure resource group.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]$", + "x-ms-parameter-location": "method" + }, + "parentResourcePath": { + "name": "parentResourcePath", + "description": "String that represents the path to a parent resource starting with the providers segment.", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "parentProviderNamespace": { + "name": "parentProviderNamespace", + "description": "String that represents a resource provider namespace.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$", + "x-ms-parameter-location": "method" + }, + "parentResourceType": { + "name": "parentResourceType", + "description": "String that represents a resource type.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.]+$", + "x-ms-parameter-location": "method" + }, + "parentResourceName": { + "name": "parentResourceName", + "description": "String that represents a resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.]+$", + "x-ms-parameter-location": "method" + }, + "targetName": { + "name": "targetName", + "description": "String that represents a Target resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.]+$", + "x-ms-parameter-location": "method" + }, + "capabilityName": { + "name": "capabilityName", + "description": "String that represents a Capability resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$", + "x-ms-parameter-location": "method" + }, + "targetTypeName": { + "name": "targetTypeName", + "description": "String that represents a Target Type resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.]+$", + "x-ms-parameter-location": "method" + }, + "capabilityTypeName": { + "name": "capabilityTypeName", + "description": "String that represents a Capability Type resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$", + "x-ms-parameter-location": "method" + }, + "locationName": { + "name": "locationName", + "description": "String that represents a Location resource name.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-\\.]+$", + "x-ms-parameter-location": "method" + }, + "continuationToken": { + "name": "continuationToken", + "description": "String that sets the continuation token.", + "type": "string", + "in": "query", + "x-ms-parameter-location": "method", + "x-nullable": false + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json new file mode 100644 index 000000000000..acb33ae3f784 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json @@ -0,0 +1,832 @@ +{ + "swagger": "2.0", + "info": { + "title": "Experiment Types", + "version": "2024-01-01" + }, + "paths": {}, + "parameters": { + "experimentName": { + "name": "experimentName", + "description": "String that represents a Experiment resource name.", + "type": "string", + "in": "path", + "required": true, + "minLength": 1, + "pattern": "^[^<>%&:?#/\\\\]+$", + "x-ms-parameter-location": "method" + }, + "statusId": { + "name": "statusId", + "description": "GUID that represents a Experiment status.", + "type": "string", + "in": "path", + "required": true, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "x-ms-parameter-location": "method" + }, + "runningFilter": { + "name": "running", + "description": "Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered.", + "type": "boolean", + "in": "query", + "x-ms-parameter-location": "method", + "x-nullable": false + }, + "executionId": { + "name": "executionId", + "in": "path", + "required": true, + "x-ms-parameter-location": "method", + "description": "GUID that represents a Experiment execution detail.", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + } + }, + "definitions": { + "experiment": { + "type": "object", + "description": "Model that represents a Experiment resource.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata of the experiment resource.", + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "identity": { + "description": "The identity of the experiment resource.", + "$ref": "./common.json#/definitions/resourceIdentity" + }, + "properties": { + "description": "The properties of the experiment resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/experimentProperties" + } + }, + "required": [ + "properties" + ] + }, + "experimentUpdate": { + "type": "object", + "description": "Describes an experiment update.", + "properties": { + "identity": { + "description": "The identity of the experiment resource.", + "$ref": "./common.json#/definitions/resourceIdentity" + }, + "tags": { + "description": "The tags of the experiment resource.", + "$ref": "./common.json#/definitions/tags" + } + } + }, + "experimentProperties": { + "description": "Model that represents the Experiment properties model.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "./common.json#/definitions/provisioningState", + "description": "Most recent provisioning state for the given experiment resource.", + "readOnly": true + }, + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/step" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of steps.", + "minItems": 1, + "maxItems": 4 + }, + "selectors": { + "type": "array", + "items": { + "$ref": "#/definitions/selector" + }, + "description": "List of selectors.", + "minItems": 1 + } + }, + "required": [ + "steps", + "selectors" + ], + "additionalProperties": false + }, + "experimentListResult": { + "type": "object", + "description": "Model that represents a list of Experiment resources and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/experiment" + }, + "description": "List of Experiment resources.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Experiment resources.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "step": { + "type": "object", + "description": "Model that represents a step in the Experiment resource.", + "properties": { + "name": { + "type": "string", + "description": "String of the step name.", + "minLength": 1 + }, + "branches": { + "type": "array", + "description": "List of branches.", + "items": { + "$ref": "#/definitions/branch" + }, + "x-ms-identifiers": [ + "name" + ], + "minItems": 1, + "maxItems": 9 + } + }, + "required": [ + "name", + "branches" + ], + "additionalProperties": false + }, + "branch": { + "type": "object", + "description": "Model that represents a branch in the step. 9 total per experiment.", + "properties": { + "name": { + "type": "string", + "description": "String of the branch name.", + "minLength": 1 + }, + "actions": { + "type": "array", + "description": "List of actions.", + "items": { + "$ref": "#/definitions/action" + }, + "x-ms-identifiers": [ + "name" + ], + "minItems": 1, + "maxItems": 9 + } + }, + "required": [ + "name", + "actions" + ], + "additionalProperties": false + }, + "action": { + "type": "object", + "description": "Model that represents the base action model. 9 total per experiment.", + "discriminator": "type", + "properties": { + "type": { + "type": "string", + "description": "Enum that discriminates between action models." + }, + "name": { + "$ref": "./common.json#/definitions/urn", + "description": "String that represents a Capability URN." + } + }, + "required": [ + "type", + "name" + ] + }, + "delayAction": { + "type": "object", + "description": "Model that represents a delay action.", + "allOf": [ + { + "$ref": "#/definitions/action" + } + ], + "properties": { + "duration": { + "type": "string", + "description": "ISO8601 formatted string that represents a duration.", + "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$", + "format": "duration" + } + }, + "required": [ + "duration" + ], + "additionalProperties": false, + "x-ms-discriminator-value": "delay" + }, + "discreteAction": { + "type": "object", + "description": "Model that represents a discrete action.", + "allOf": [ + { + "$ref": "#/definitions/action" + } + ], + "properties": { + "parameters": { + "description": "List of key value pairs.", + "type": "array", + "items": { + "$ref": "#/definitions/keyValuePair" + }, + "x-ms-identifiers": [ + "key" + ] + }, + "selectorId": { + "type": "string", + "description": "String that represents a selector.", + "minLength": 1 + } + }, + "required": [ + "parameters", + "selectorId" + ], + "additionalProperties": false, + "x-ms-discriminator-value": "discrete" + }, + "continuousAction": { + "type": "object", + "description": "Model that represents a continuous action.", + "allOf": [ + { + "$ref": "#/definitions/action" + } + ], + "properties": { + "duration": { + "type": "string", + "description": "ISO8601 formatted string that represents a duration.", + "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$", + "format": "duration" + }, + "parameters": { + "description": "List of key value pairs.", + "type": "array", + "items": { + "$ref": "#/definitions/keyValuePair" + }, + "x-ms-identifiers": [ + "key" + ] + }, + "selectorId": { + "type": "string", + "description": "String that represents a selector.", + "minLength": 1 + } + }, + "required": [ + "duration", + "parameters", + "selectorId" + ], + "additionalProperties": false, + "x-ms-discriminator-value": "continuous" + }, + "keyValuePair": { + "description": "A map to describe the settings of an action.", + "type": "object", + "properties": { + "key": { + "description": "The name of the setting for the action.", + "type": "string", + "minLength": 1 + }, + "value": { + "description": "The value of the setting for the action.", + "type": "string", + "minLength": 1 + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + }, + "selector": { + "type": "object", + "description": "Model that represents a selector in the Experiment resource.", + "discriminator": "type", + "properties": { + "type": { + "type": "string", + "description": "Enum of the selector type.", + "enum": [ + "List", + "Query" + ], + "x-ms-enum": { + "name": "SelectorType", + "modelAsString": true + } + }, + "id": { + "type": "string", + "description": "String of the selector ID.", + "minLength": 1 + }, + "filter": { + "$ref": "#/definitions/filter" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": true + }, + "listSelector": { + "type": "object", + "description": "Model that represents a list selector.", + "allOf": [ + { + "$ref": "#/definitions/selector" + } + ], + "properties": { + "targets": { + "type": "array", + "description": "List of Target references.", + "minItems": 1, + "maxItems": 50, + "items": { + "$ref": "#/definitions/targetReference" + } + } + }, + "additionalProperties": false, + "x-ms-discriminator-value": "List", + "required": [ + "targets" + ] + }, + "querySelector": { + "type": "object", + "description": "Model that represents a query selector.", + "allOf": [ + { + "$ref": "#/definitions/selector" + } + ], + "properties": { + "queryString": { + "type": "string", + "description": "Azure Resource Graph (ARG) Query Language query for target resources." + }, + "subscriptionIds": { + "type": "array", + "description": "Subscription id list to scope resource query.", + "items": { + "type": "string", + "description": "String of the availability zone ID." + }, + "minItems": 1 + } + }, + "additionalProperties": false, + "x-ms-discriminator-value": "Query", + "required": [ + "queryString", + "subscriptionIds" + ] + }, + "filter": { + "type": "object", + "description": "Model that represents available filter types that can be applied to a targets list.", + "discriminator": "type", + "properties": { + "type": { + "type": "string", + "description": "Enum that discriminates between filter types. Currently only `Simple` type is supported.", + "enum": [ + "Simple" + ], + "x-ms-enum": { + "name": "FilterType", + "modelAsString": true + } + } + }, + "required": [ + "type" + ] + }, + "simpleFilter": { + "type": "object", + "description": "Model that represents a simple target filter.", + "allOf": [ + { + "$ref": "#/definitions/filter" + } + ], + "properties": { + "parameters": { + "$ref": "#/definitions/simpleFilterParameters" + } + }, + "additionalProperties": false, + "x-ms-discriminator-value": "Simple" + }, + "simpleFilterParameters": { + "description": "Model that represents the Simple filter parameters.", + "type": "object", + "properties": { + "zones": { + "type": "array", + "items": { + "type": "string", + "description": "String of the availability zone ID." + }, + "description": "List of Azure availability zones to filter targets by." + } + }, + "additionalProperties": false + }, + "targetReference": { + "type": "object", + "description": "Model that represents a reference to a Target in the selector.", + "properties": { + "type": { + "type": "string", + "description": "Enum of the Target reference type.", + "enum": [ + "ChaosTarget" + ], + "x-ms-enum": { + "name": "TargetReferenceType", + "modelAsString": true + } + }, + "id": { + "type": "string", + "description": "String of the resource ID of a Target resource.", + "pattern": "^\\/[Ss][Uu][Bb][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn][Ss]\\/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\/[Rr][Ee][Ss][Oo][Uu][Rr][Cc][Ee][Gg][Rr][Oo][Uu][Pp][Ss]\\/[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\/[a-zA-Z0-9_\\-\\.]+\\/[a-zA-Z0-9_\\-\\.]+\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]\\.[Cc][Hh][Aa][Oo][Ss]\\/[Tt][Aa][Rr][Gg][Ee][Tt][Ss]\\/[a-zA-Z0-9_\\-\\.]+$" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false + }, + "experimentCancelOperationResult": { + "type": "object", + "description": "Model that represents the result of a cancel Experiment operation.", + "properties": { + "name": { + "type": "string", + "description": "String of the Experiment name.", + "readOnly": true + }, + "statusUrl": { + "$ref": "./common.json#/definitions/url", + "description": "URL to retrieve the Experiment status.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "experimentStartOperationResult": { + "type": "object", + "description": "Model that represents the result of a start Experiment operation.", + "properties": { + "name": { + "type": "string", + "description": "String of the Experiment name.", + "readOnly": true + }, + "statusUrl": { + "$ref": "./common.json#/definitions/url", + "description": "URL to retrieve the Experiment status.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "experimentExecutionActionTargetDetailsProperties": { + "description": "Model that represents the Experiment action target details properties model.", + "type": "object", + "properties": { + "status": { + "description": "The status of the execution.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "The target for the action.", + "type": "string", + "readOnly": true + }, + "targetFailedTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the failed date time.", + "readOnly": true, + "x-nullable": true + }, + "targetCompletedTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the completed date time.", + "readOnly": true, + "x-nullable": true + }, + "error": { + "description": "The error of the action.", + "type": "object", + "$ref": "#/definitions/experimentExecutionActionTargetDetailsError", + "readOnly": true, + "x-nullable": true + } + } + }, + "experimentExecutionActionTargetDetailsError": { + "type": "object", + "description": "Model that represents the Experiment action target details error model.", + "properties": { + "code": { + "description": "The error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The error message", + "type": "string", + "readOnly": true + } + } + }, + "experimentExecution": { + "type": "object", + "description": "Model that represents the execution of a Experiment.", + "properties": { + "type": { + "type": "string", + "description": "String of the resource type.", + "readOnly": true + }, + "id": { + "type": "string", + "description": "String of the fully qualified resource ID.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "String of the resource name.", + "readOnly": true + }, + "properties": { + "description": "The properties of experiment execution status.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/experimentExecutionProperties" + } + }, + "additionalProperties": false + }, + "experimentExecutionProperties": { + "description": "Model that represents the execution properties of an Experiment.", + "type": "object", + "properties": { + "status": { + "description": "The status of the execution.", + "type": "string", + "readOnly": true + }, + "startedAt": { + "type": "string", + "format": "date-time", + "description": "String that represents the start date time.", + "readOnly": true + }, + "stoppedAt": { + "type": "string", + "format": "date-time", + "description": "String that represents the stop date time.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "experimentExecutionListResult": { + "description": "Model that represents a list of Experiment executions and a link for pagination.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/experimentExecution" + }, + "description": "List of Experiment executions.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Experiment executions.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "experimentExecutionDetails": { + "description": "Model that represents the execution details of an Experiment.", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "String of the resource type.", + "readOnly": true + }, + "id": { + "type": "string", + "description": "String of the fully qualified resource ID.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "String of the resource name.", + "readOnly": true + }, + "properties": { + "description": "The properties of the experiment execution details.", + "$ref": "#/definitions/experimentExecutionDetailsProperties", + "x-ms-client-flatten": true, + "readOnly": true + } + } + }, + "experimentExecutionDetailsProperties": { + "description": "Model that represents the extended properties of an experiment execution.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/experimentExecutionProperties" + } + ], + "properties": { + "failureReason": { + "description": "The reason why the execution failed.", + "type": "string", + "readOnly": true + }, + "lastActionAt": { + "type": "string", + "format": "date-time", + "description": "String that represents the last action date time.", + "readOnly": true + }, + "runInformation": { + "description": "The information of the experiment run.", + "type": "object", + "properties": { + "steps": { + "description": "The steps of the experiment run.", + "type": "array", + "items": { + "$ref": "#/definitions/stepStatus" + }, + "x-ms-identifiers": [ + "stepName" + ], + "readOnly": true + } + }, + "readOnly": true + } + } + }, + "stepStatus": { + "description": "Model that represents the a list of branches and branch statuses.", + "type": "object", + "properties": { + "stepName": { + "description": "The name of the step.", + "type": "string", + "readOnly": true + }, + "stepId": { + "description": "The id of the step.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The value of the status of the step.", + "type": "string", + "readOnly": true + }, + "branches": { + "description": "The array of branches.", + "type": "array", + "items": { + "$ref": "#/definitions/branchStatus" + }, + "x-ms-identifiers": [ + "branchName" + ], + "readOnly": true + } + } + }, + "branchStatus": { + "description": "Model that represents the a list of actions and action statuses.", + "type": "object", + "properties": { + "branchName": { + "description": "The name of the branch status.", + "type": "string", + "readOnly": true + }, + "branchId": { + "description": "The id of the branch status.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The status of the branch.", + "type": "string", + "readOnly": true + }, + "actions": { + "description": "The array of actions.", + "type": "array", + "items": { + "$ref": "#/definitions/actionStatus" + }, + "x-ms-identifiers": [ + "actionId" + ], + "readOnly": true + } + } + }, + "actionStatus": { + "type": "object", + "description": "Model that represents the an action and its status.", + "properties": { + "actionName": { + "description": "The name of the action status.", + "type": "string", + "readOnly": true + }, + "actionId": { + "description": "The id of the action status.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The status of the action.", + "type": "string", + "readOnly": true + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the start time of the action.", + "readOnly": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the end time of the action.", + "readOnly": true + }, + "targets": { + "description": "The array of targets.", + "type": "array", + "items": { + "$ref": "#/definitions/experimentExecutionActionTargetDetailsProperties" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json new file mode 100644 index 000000000000..4d89fff21036 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json @@ -0,0 +1,88 @@ +{ + "swagger": "2.0", + "info": { + "title": "Target Metadata Types", + "version": "2024-01-01" + }, + "paths": {}, + "definitions": { + "targetType": { + "type": "object", + "description": "Model that represents a Target Type resource.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata properties of the target type resource.", + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Location of the Target Type resource." + }, + "properties": { + "description": "The properties of the target type resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/targetTypeProperties" + } + }, + "required": [ + "properties" + ] + }, + "targetTypeProperties": { + "type": "object", + "description": "Model that represents the base Target Type properties model.", + "properties": { + "displayName": { + "type": "string", + "description": "Localized string of the display name.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Localized string of the description.", + "readOnly": true + }, + "propertiesSchema": { + "$ref": "./common.json#/definitions/url", + "description": "URL to retrieve JSON schema of the Target Type properties.", + "readOnly": true + }, + "resourceTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of resource types this Target Type can extend.", + "readOnly": true + } + }, + "additionalProperties": false + }, + "targetTypeListResult": { + "type": "object", + "description": "Model that represents a list of Target Type resources and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/targetType" + }, + "description": "List of Target Type resources.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Target Type resources.", + "readOnly": true + } + }, + "additionalProperties": false + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json new file mode 100644 index 000000000000..b90f136d1174 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json @@ -0,0 +1,64 @@ +{ + "swagger": "2.0", + "info": { + "title": "Target Types", + "version": "2024-01-01" + }, + "paths": {}, + "definitions": { + "target": { + "type": "object", + "description": "Model that represents a Target resource.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "systemData": { + "description": "The system metadata of the target resource.", + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Location of the target resource." + }, + "properties": { + "description": "The properties of the target resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/targetProperties" + } + }, + "required": [ + "properties" + ] + }, + "targetProperties": { + "type": "object", + "description": "Model that represents the base Target properties model.", + "properties": {}, + "additionalProperties": true + }, + "targetListResult": { + "type": "object", + "description": "Model that represents a list of Target resources and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/target" + }, + "description": "List of Target resources.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Target resources.", + "readOnly": true + } + }, + "additionalProperties": false + } + } +} From 14be0fa0eefe412a899f2f3d16217095bf368b1f Mon Sep 17 00:00:00 2001 From: Ritchie Hughes Date: Wed, 30 Oct 2024 13:36:15 -0600 Subject: [PATCH 2/8] Update version to preview/2024-12-01-preview Updated the API version from stable/2024-01-01 to preview/2024-12-01-preview. --- .../preview/2024-12-01-preview/capabilities.json | 3 ++- .../preview/2024-12-01-preview/capabilityTypes.json | 3 ++- .../2024-12-01-preview/examples/CancelExperiment.json | 7 ++++--- .../examples/CreateUpdateCapability.json | 3 ++- .../examples/CreateUpdateExperiment.json | 11 ++++++----- .../examples/CreateUpdateTarget.json | 3 ++- .../2024-12-01-preview/examples/DeleteCapability.json | 3 ++- .../2024-12-01-preview/examples/DeleteExperiment.json | 7 ++++--- .../2024-12-01-preview/examples/DeleteTarget.json | 3 ++- .../examples/DetailsExperiment.json | 3 ++- .../2024-12-01-preview/examples/GetCapability.json | 3 ++- .../examples/GetCapabilityType.json | 3 ++- .../2024-12-01-preview/examples/GetExperiment.json | 3 ++- .../examples/GetExperimentExecution.json | 3 ++- .../examples/GetOperationStatus.json | 3 ++- .../2024-12-01-preview/examples/GetTarget.json | 3 ++- .../2024-12-01-preview/examples/GetTargetType.json | 3 ++- .../2024-12-01-preview/examples/ListCapabilities.json | 5 +++-- .../examples/ListCapabilityTypes.json | 5 +++-- .../examples/ListExperimentExecutions.json | 5 +++-- .../examples/ListExperimentsInAResourceGroup.json | 5 +++-- .../examples/ListExperimentsInASubscription.json | 5 +++-- .../2024-12-01-preview/examples/ListTargetTypes.json | 5 +++-- .../2024-12-01-preview/examples/ListTargets.json | 5 +++-- .../2024-12-01-preview/examples/StartExperiment.json | 7 ++++--- .../2024-12-01-preview/examples/UpdateExperiment.json | 7 ++++--- .../preview/2024-12-01-preview/experiments.json | 3 ++- .../preview/2024-12-01-preview/operationStatuses.json | 3 ++- .../preview/2024-12-01-preview/operations.json | 3 ++- .../preview/2024-12-01-preview/targetTypes.json | 3 ++- .../preview/2024-12-01-preview/targets.json | 3 ++- .../2024-12-01-preview/types/capabilities.json | 3 ++- .../2024-12-01-preview/types/capabilityTypes.json | 3 ++- .../preview/2024-12-01-preview/types/common.json | 3 ++- .../preview/2024-12-01-preview/types/experiments.json | 3 ++- .../preview/2024-12-01-preview/types/targetTypes.json | 3 ++- .../preview/2024-12-01-preview/types/targets.json | 3 ++- 37 files changed, 93 insertions(+), 56 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json index 136527d553c5..bd6b94ef6d7f 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -260,3 +260,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json index 0667c38cb499..3054b053dfcf 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -129,3 +129,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json index e23718469cdb..05e424b3c957 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CancelExperiment.json @@ -3,14 +3,15 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json index 5ac245761011..50a4aa845b38 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateCapability.json @@ -7,7 +7,7 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2024-01-01", + "api-version": "2024-12-01-preview", "capability": { "properties": {} } @@ -33,3 +33,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json index cff2b7a08d65..540f5e727a91 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01", + "api-version": "2024-12-01-preview", "experiment": { "location": "eastus2euap", "identity": { @@ -52,8 +52,8 @@ "responses": { "201": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" }, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", @@ -116,8 +116,8 @@ }, "200": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/experiments/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" }, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", @@ -180,3 +180,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json index 5c7d3222ba69..4e19f021388a 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/CreateUpdateTarget.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2024-01-01", + "api-version": "2024-12-01-preview", "target": { "properties": { "identities": [ @@ -43,3 +43,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json index f54b0231852b..6abfabc9f91e 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteCapability.json @@ -7,10 +7,11 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": {}, "204": {} } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json index e23718469cdb..05e424b3c957 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteExperiment.json @@ -3,14 +3,15 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json index 35894555972e..aa1b12fa03cb 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DeleteTarget.json @@ -6,10 +6,11 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": {}, "204": {} } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json index 7d3279682848..c80107a1be10 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/DetailsExperiment.json @@ -4,7 +4,7 @@ "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", "executionId": "f24500ad-744e-4a26-864b-b76199eac333", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -62,3 +62,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json index d4acc057b0a8..55f78971203e 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapability.json @@ -7,7 +7,7 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -30,3 +30,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json index 0e974cffdf07..2b18e6312c1d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetCapabilityType.json @@ -4,7 +4,7 @@ "locationName": "westus2", "targetTypeName": "Microsoft-VirtualMachine", "capabilityTypeName": "Shutdown-1.0", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -28,3 +28,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json index 941ccac17c9d..a1c9283960b8 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -68,3 +68,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json index 3ab3b4c2e7bb..d4858764ebce 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetExperimentExecution.json @@ -4,7 +4,7 @@ "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", "executionId": "f24500ad-744e-4a26-864b-b76199eac333", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -22,3 +22,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json index 200f3d386d3c..6b5878fdac8e 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetOperationStatus.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "location": "West US", "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -18,3 +18,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json index 7599c1f16746..5d3fdf525128 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTarget.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -33,3 +33,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json index 5e21250f94d3..ea06eedcd586 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/GetTargetType.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "targetTypeName": "Microsoft-Agent", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -26,3 +26,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json index 756e0bbbbbdd..cf14c10e1b51 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilities.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -29,8 +29,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json index 86209c53b8dd..0abd2f31801b 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListCapabilityTypes.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "targetTypeName": "Microsoft-VirtualMachine", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -27,8 +27,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json index 234b170bf7fe..f4d05bf5fed2 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentExecutions.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -31,8 +31,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json index 9008b2c2b89b..9685b4f996d7 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInAResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "continuationToken": null, - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -68,8 +68,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json index 966c7a3e889b..3836d1a54ac2 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListExperimentsInASubscription.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "continuationToken": null, - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -67,8 +67,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json index 0e46b29f5fce..e5462dd38622 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargetTypes.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "continuationToken": null, - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -26,8 +26,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json index 308cbea5a20b..b93a539d62be 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/ListTargets.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "continuationToken": null, - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "200": { @@ -33,8 +33,9 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets?continuationToken=&api-version=2024-01-01" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets?continuationToken=&api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json index e23718469cdb..05e424b3c957 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/StartExperiment.json @@ -3,14 +3,15 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01" + "api-version": "2024-12-01-preview" }, "responses": { "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" } } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json index 2731ea7024e4..f700f998724f 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/examples/UpdateExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2024-01-01", + "api-version": "2024-12-01-preview", "experiment": { "identity": { "type": "UserAssigned", @@ -20,8 +20,8 @@ "responses": { "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-01-01", - "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview", + "Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-12-01-preview" }, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", @@ -90,3 +90,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json index d9ea44736020..e22d2ca35bc8 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/experiments.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -545,3 +545,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json index 9660b7c68d07..7cb8900b68f0 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -120,3 +120,4 @@ }, "parameters": {} } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json index 5b30a1cafcb2..f02623d48462 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/operations.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -68,3 +68,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json index d479a80c04e8..90c66599ab05 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -123,3 +123,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json index 77f2a18ac595..839e98967f5e 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/targets.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -248,3 +248,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json index e1dcee8804c9..f524465be5e6 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilities.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Capability Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "definitions": { @@ -82,3 +82,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json index 35e902fda074..e93d37a3cea5 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/capabilityTypes.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Capability Metadata Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "definitions": { @@ -123,3 +123,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json index 15342e9b3c18..0da5fe0e60bc 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/common.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Common Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "definitions": { @@ -232,3 +232,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json index acb33ae3f784..ca1875b27c89 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/experiments.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Experiment Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "parameters": { @@ -830,3 +830,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json index 4d89fff21036..d35744fe8621 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targetTypes.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Target Metadata Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "definitions": { @@ -86,3 +86,4 @@ } } } + diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json index b90f136d1174..7bd431a20564 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-12-01-preview/types/targets.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Target Types", - "version": "2024-01-01" + "version": "2024-12-01-preview" }, "paths": {}, "definitions": { @@ -62,3 +62,4 @@ } } } + From 6664d3ef03cdbaaa8d8a496d098985f89b52fc0f Mon Sep 17 00:00:00 2001 From: Ritchie Hughes Date: Wed, 30 Oct 2024 13:36:15 -0600 Subject: [PATCH 3/8] Added tag for 2024-12-01-preview in readme file --- specification/chaos/resource-manager/readme.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/chaos/resource-manager/readme.md b/specification/chaos/resource-manager/readme.md index d2cf20655c9e..fb8a74e896cd 100644 --- a/specification/chaos/resource-manager/readme.md +++ b/specification/chaos/resource-manager/readme.md @@ -28,10 +28,25 @@ These are the global settings for the chaos. title: ChaosManagementClient description: Chaos Management Client openapi-type: arm -tag: package-preview-2024-03 +tag: package-preview-2024-12 ``` +### Tag: package-preview-2024-12 + +These settings apply only when `--tag=package-preview-2024-12` is specified on the command line. + +```yaml $(tag) == 'package-preview-2024-12' +input-file: + - Microsoft.Chaos/preview/2024-12-01-preview/capabilities.json + - Microsoft.Chaos/preview/2024-12-01-preview/capabilityTypes.json + - Microsoft.Chaos/preview/2024-12-01-preview/experiments.json + - Microsoft.Chaos/preview/2024-12-01-preview/operations.json + - Microsoft.Chaos/preview/2024-12-01-preview/operationStatuses.json + - Microsoft.Chaos/preview/2024-12-01-preview/targets.json + - Microsoft.Chaos/preview/2024-12-01-preview/targetTypes.json +``` + ### Tag: package-preview-2024-03 These settings apply only when `--tag=package-preview-2024-03` is specified on the command line. From c5aa287d75a2587c38ffdc6f90c0a2fe734b444d Mon Sep 17 00:00:00 2001 From: Xinyi Joffre Date: Sat, 25 Jan 2025 01:09:52 -0800 Subject: [PATCH 4/8] [Quantum] Sort Swagger to prepare for Typespec review --- .../preview/2023-11-13-preview/quantum.json | 936 +++++++++--------- 1 file changed, 468 insertions(+), 468 deletions(-) diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/quantum.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/quantum.json index f4a5f5f1c99a..58c7219f51af 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/quantum.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/quantum.json @@ -7,14 +7,14 @@ "name": "QuantumManagementClient" } }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ @@ -27,43 +27,29 @@ "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}": { + "/providers/Microsoft.Quantum/operations": { "get": { - "description": "Returns the Workspace resource associated with the given name.", - "operationId": "Workspaces_Get", - "x-ms-examples": { - "QuantumWorkspacesGet": { - "$ref": "./examples/quantumWorkspacesGet.json" - } - }, + "operationId": "Operations_List", + "description": "Returns list of operations.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" } ], "responses": { "200": { - "description": "Workspace details.", + "description": "Operation details.", "schema": { - "$ref": "#/definitions/QuantumWorkspace" + "$ref": "#/definitions/operationsList" } }, "default": { @@ -72,50 +58,47 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } - } - }, - "put": { - "description": "Creates or updates a workspace resource.", - "operationId": "Workspaces_CreateOrUpdate", + }, + "deprecated": false, "x-ms-examples": { - "QuantumWorkspacesPut": { - "$ref": "./examples/quantumWorkspacesPut.json" + "Operations": { + "$ref": "./examples/operations.json" } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability": { + "post": { + "operationId": "Workspace_CheckNameAvailability", + "description": "Check the availability of the resource name.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" + "$ref": "#/parameters/LocationParameter" }, { - "name": "QuantumWorkspace", - "description": "Workspace details.", + "name": "checkNameAvailabilityParameters", "in": "body", + "description": "The name and type of the resource.", "required": true, "schema": { - "$ref": "#/definitions/QuantumWorkspace" + "$ref": "#/definitions/CheckNameAvailabilityParameters" } } ], "responses": { - "201": { - "description": "Workspace create/update request accepted.", - "schema": { - "$ref": "#/definitions/QuantumWorkspace" - } - }, "200": { - "description": "Successful.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/QuantumWorkspace" + "$ref": "#/definitions/CheckNameAvailabilityResult" } }, "default": { @@ -125,47 +108,34 @@ } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - } - }, - "patch": { - "description": "Updates an existing workspace's tags.", - "operationId": "Workspaces_UpdateTags", + "deprecated": false, "x-ms-examples": { - "QuantumWorkspacesPatchTags": { - "$ref": "./examples/quantumWorkspacesPatch.json" + "QuantumWorkspacesCheckNameAvailability": { + "$ref": "./examples/quantumWorkspacesCheckNameAvailability.json" } - }, + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings": { + "get": { + "operationId": "Offerings_List", + "description": "Returns the list of all provider offerings available for the given location.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/WorkspaceNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "name": "workspaceTags", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TagsObject" - }, - "description": "Parameters supplied to update tags." + "$ref": "#/parameters/LocationParameter" } ], "responses": { "200": { - "description": "Successful.", + "description": "Offerings details.", "schema": { - "$ref": "#/definitions/QuantumWorkspace" + "$ref": "#/definitions/OfferingsListResult" } }, "default": { @@ -174,61 +144,21 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } - } - }, - "delete": { - "description": "Deletes a Workspace resource.", - "operationId": "Workspaces_Delete", - "x-ms-examples": { - "QuantumWorkspacesDelete": { - "$ref": "./examples/quantumWorkspacesDelete.json" - } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - } - ], - "responses": { - "200": { - "description": "Successful." - }, - "202": { - "description": "Workspace delete request accepted." - }, - "204": { - "description": "No content - The workspace doesn't exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } + "deprecated": false, + "x-ms-examples": { + "OfferingsList": { + "$ref": "./examples/offeringsList.json" } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces": { "get": { "operationId": "Workspaces_ListBySubscription", - "x-ms-examples": { - "QuantumWorkspacesListBySubscription": { - "$ref": "./examples/quantumWorkspacesListSubscription.json" - } - }, "description": "Gets the list of Workspaces within a Subscription.", "parameters": [ { @@ -252,6 +182,11 @@ } } }, + "x-ms-examples": { + "QuantumWorkspacesListBySubscription": { + "$ref": "./examples/quantumWorkspacesListSubscription.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -260,11 +195,6 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces": { "get": { "operationId": "Workspaces_ListByResourceGroup", - "x-ms-examples": { - "QuantumWorkspacesListByResourceGroup": { - "$ref": "./examples/quantumWorkspacesListResourceGroup.json" - } - }, "description": "Gets the list of Workspaces within a resource group.", "parameters": [ { @@ -291,36 +221,39 @@ } } }, + "x-ms-examples": { + "QuantumWorkspacesListByResourceGroup": { + "$ref": "./examples/quantumWorkspacesListResourceGroup.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}": { "get": { - "description": "Returns the list of all provider offerings available for the given location.", - "operationId": "Offerings_List", - "x-ms-examples": { - "OfferingsList": { - "$ref": "./examples/offeringsList.json" - } - }, + "operationId": "Workspaces_Get", + "description": "Returns the Workspace resource associated with the given name.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/LocationParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" } ], "responses": { "200": { - "description": "Offerings details.", + "description": "Workspace details.", "schema": { - "$ref": "#/definitions/OfferingsListResult" + "$ref": "#/definitions/QuantumWorkspace" } }, "default": { @@ -330,31 +263,49 @@ } } }, - "deprecated": false, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Quantum/operations": { - "get": { - "description": "Returns list of operations.", - "operationId": "Operations_List", "x-ms-examples": { - "Operations": { - "$ref": "./examples/operations.json" + "QuantumWorkspacesGet": { + "$ref": "./examples/quantumWorkspacesGet.json" } - }, + } + }, + "put": { + "operationId": "Workspaces_CreateOrUpdate", + "description": "Creates or updates a workspace resource.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "name": "QuantumWorkspace", + "in": "body", + "description": "Workspace details.", + "required": true, + "schema": { + "$ref": "#/definitions/QuantumWorkspace" + } } ], "responses": { "200": { - "description": "Operation details.", + "description": "Successful.", "schema": { - "$ref": "#/definitions/operationsList" + "$ref": "#/definitions/QuantumWorkspace" + } + }, + "201": { + "description": "Workspace create/update request accepted.", + "schema": { + "$ref": "#/definitions/QuantumWorkspace" } }, "default": { @@ -364,46 +315,47 @@ } } }, - "deprecated": false, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability": { - "post": { - "description": "Check the availability of the resource name.", - "operationId": "Workspace_CheckNameAvailability", "x-ms-examples": { - "QuantumWorkspacesCheckNameAvailability": { - "$ref": "./examples/quantumWorkspacesCheckNameAvailability.json" + "QuantumWorkspacesPut": { + "$ref": "./examples/quantumWorkspacesPut.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Workspaces_UpdateTags", + "description": "Updates an existing workspace's tags.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/LocationParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "checkNameAvailabilityParameters", + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "name": "workspaceTags", "in": "body", + "description": "Parameters supplied to update tags.", "required": true, "schema": { - "$ref": "#/definitions/CheckNameAvailabilityParameters" - }, - "description": "The name and type of the resource." + "$ref": "#/definitions/TagsObject" + } } ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Successful.", "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" + "$ref": "#/definitions/QuantumWorkspace" } }, "default": { @@ -413,18 +365,61 @@ } } }, - "deprecated": false + "x-ms-examples": { + "QuantumWorkspacesPatchTags": { + "$ref": "./examples/quantumWorkspacesPatch.json" + } + } + }, + "delete": { + "operationId": "Workspaces_Delete", + "description": "Deletes a Workspace resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "Successful." + }, + "202": { + "description": "Workspace delete request accepted." + }, + "204": { + "description": "No content - The workspace doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "QuantumWorkspacesDelete": { + "$ref": "./examples/quantumWorkspacesDelete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/listKeys": { "post": { - "description": "Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.", "operationId": "Workspace_ListKeys", - "x-ms-examples": { - "ListKeys": { - "$ref": "./examples/listKeys.json" - } - }, + "description": "Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -452,18 +447,18 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "ListKeys": { + "$ref": "./examples/listKeys.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/regenerateKey": { "post": { - "description": "Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately.", "operationId": "Workspace_RegenerateKeys", - "x-ms-examples": { - "RegenerateKey": { - "$ref": "./examples/regenerateKey.json" - } - }, + "description": "Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -480,8 +475,8 @@ { "name": "keySpecification", "in": "body", - "required": true, "description": "Which key to regenerate: primary or secondary.", + "required": true, "schema": { "$ref": "#/definitions/APIKeys" } @@ -497,112 +492,92 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "RegenerateKey": { + "$ref": "./examples/regenerateKey.json" + } } } } }, "definitions": { - "WorkspaceListResult": { + "APIKeys": { + "type": "object", + "description": "List of api keys to be generated.", "properties": { - "value": { + "keys": { "type": "array", + "description": "A list of api key names.", "items": { - "$ref": "#/definitions/QuantumWorkspace" - }, - "description": "Result of a list Workspaces operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of Workspaces." + "type": "string", + "default": "Primary", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "KeyType", + "modelAsString": true + } + } } - }, - "description": "The response of a list Workspaces operation." + } }, - "OfferingsListResult": { + "ApiKey": { + "type": "object", + "description": "Azure quantum workspace Api key details.", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderDescription" - }, - "description": "Result of a list Providers operation." + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The creation time of the api key." }, - "nextLink": { + "key": { "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of Providers." + "description": "The Api key.", + "readOnly": true, + "x-ms-secret": true } - }, - "description": "The response of a list Providers operation." + } }, - "QuantumWorkspace": { + "CheckNameAvailabilityParameters": { "type": "object", - "description": "The resource proxy definition object for quantum workspace.", + "description": "Details of check name availability request body.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Gets or sets the properties. Define quantum workspace's specific properties.", - "$ref": "#/definitions/WorkspaceResourceProperties" - }, - "identity": { - "type": "object", - "description": "Managed Identity information.", - "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The principal ID of resource identity." - }, - "tenantId": { - "readOnly": true, - "type": "string", - "description": "The tenant ID of resource." - }, - "type": { - "type": "string", - "description": "The identity type.", - "enum": [ - "SystemAssigned", - "None" - ], - "x-ms-enum": { - "name": "ResourceIdentityType", - "modelAsString": true - } - } - } + "name": { + "type": "string", + "description": "Name for checking availability." }, - "systemData": { - "description": "System metadata", - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "type": { + "type": "string", + "description": "The resource type of Quantum Workspace.", + "default": "Microsoft.Quantum/Workspaces" } - ] + } }, - "ApiKey": { - "description": "Azure quantum workspace Api key details.", + "CheckNameAvailabilityResult": { "type": "object", + "description": "Result of check name availability.", "properties": { - "createdAt": { + "nameAvailable": { + "type": "boolean", + "description": "Indicator of availability of the Quantum Workspace resource name." + }, + "reason": { "type": "string", - "format": "date-time", - "description": "The creation time of the api key." + "description": "The reason of unavailability." }, - "key": { - "x-ms-secret": true, - "readOnly": true, + "message": { "type": "string", - "description": "The Api key." + "description": "The detailed info regarding the reason associated with the Namespace.", + "readOnly": true } } }, "ListKeysResult": { - "description": "Result of list Api keys and connection strings.", "type": "object", + "description": "Result of list Api keys and connection strings.", "properties": { "apiKeyEnabled": { "type": "boolean", @@ -617,107 +592,102 @@ "description": "The quantum workspace secondary api key." }, "primaryConnectionString": { - "x-ms-secret": true, - "readOnly": true, "type": "string", - "description": "The connection string of the primary api key." + "description": "The connection string of the primary api key.", + "readOnly": true, + "x-ms-secret": true }, "secondaryConnectionString": { - "x-ms-secret": true, - "readOnly": true, "type": "string", - "description": "The connection string of the secondary api key." + "description": "The connection string of the secondary api key.", + "readOnly": true, + "x-ms-secret": true } } }, - "APIKeys": { - "type": "object", + "OfferingsListResult": { + "description": "The response of a list Providers operation.", "properties": { - "keys": { - "description": "A list of api key names.", + "value": { "type": "array", + "description": "Result of a list Providers operation.", "items": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "default": "Primary", - "x-ms-enum": { - "name": "KeyType", - "modelAsString": true - } + "$ref": "#/definitions/ProviderDescription" } + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of Providers." } - }, - "description": "List of api keys to be generated." + } }, - "TagsObject": { + "PricingDetail": { + "type": "object", + "description": "Detailed pricing information for an sku.", "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." + "id": { + "type": "string", + "description": "Unique id for this pricing information." + }, + "value": { + "type": "string", + "description": "The unit cost of this sku." } - }, - "description": "Tags object for patch operations." + } }, - "WorkspaceResourceProperties": { - "description": "Properties of a Workspace", + "PricingDimension": { + "type": "object", + "description": "Information about pricing dimension.", "properties": { - "providers": { - "type": "array", - "description": "List of Providers selected for this Workspace", - "items": { - "$ref": "#/definitions/Provider" - }, - "x-ms-identifiers": [] + "id": { + "type": "string", + "description": "Unique id of this pricing dimension." }, - "usable": { + "name": { "type": "string", - "enum": [ - "Yes", - "No", - "Partial" - ], - "x-ms-enum": { - "name": "UsableStatus", - "modelAsString": true - }, - "description": "Whether the current workspace is ready to accept Jobs.", - "readOnly": true + "description": "The display name of this pricing dimension." + } + } + }, + "Provider": { + "type": "object", + "description": "Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs.", + "properties": { + "providerId": { + "type": "string", + "description": "Unique id of this provider." + }, + "providerSku": { + "type": "string", + "description": "The sku associated with pricing information for this provider." + }, + "instanceUri": { + "type": "string", + "description": "A Uri identifying the specific instance of this provider." + }, + "applicationName": { + "type": "string", + "description": "The provider's marketplace application display name." }, "provisioningState": { "type": "string", + "description": "Provisioning status field", "enum": [ "Succeeded", - "ProviderLaunching", - "ProviderUpdating", - "ProviderDeleting", - "ProviderProvisioning", + "Launching", + "Updating", + "Deleting", + "Deleted", "Failed" ], "x-ms-enum": { - "name": "ProvisioningStatus", + "name": "Status", "modelAsString": true - }, - "description": "Provisioning status field", - "readOnly": true - }, - "storageAccount": { - "type": "string", - "description": "ARM Resource Id of the storage account associated with this workspace." + } }, - "endpointUri": { + "resourceUsageId": { "type": "string", - "description": "The URI of the workspace endpoint.", - "readOnly": true - }, - "apiKeyEnabled": { - "type": "boolean", - "description": "Indicator of enablement of the Quantum workspace Api keys." + "description": "Id to track resource usage for the provider." } } }, @@ -816,44 +786,99 @@ "$ref": "#/definitions/QuotaDimension" } }, - "pricingDimensions": { - "type": "array", - "description": "The list of pricing dimensions from the provider.", - "items": { - "$ref": "#/definitions/PricingDimension" - } + "pricingDimensions": { + "type": "array", + "description": "The list of pricing dimensions from the provider.", + "items": { + "$ref": "#/definitions/PricingDimension" + } + } + } + }, + "QuantumWorkspace": { + "type": "object", + "description": "The resource proxy definition object for quantum workspace.", + "properties": { + "properties": { + "$ref": "#/definitions/WorkspaceResourceProperties", + "description": "Gets or sets the properties. Define quantum workspace's specific properties.", + "x-ms-client-flatten": true + }, + "identity": { + "type": "object", + "description": "Managed Identity information.", + "properties": { + "principalId": { + "type": "string", + "description": "The principal ID of resource identity.", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "The tenant ID of resource.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": true + } + } + } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", + "description": "System metadata", + "readOnly": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] }, - "TargetDescription": { + "QuotaDimension": { "type": "object", - "description": "Information about a Target. A target is the component that can process a specific type of Job.", + "description": "Information about a specific quota dimension.", "properties": { "id": { "type": "string", - "description": "Unique target id." + "description": "Unique id of this dimension." + }, + "scope": { + "type": "string", + "description": "The scope of this quota dimension." + }, + "period": { + "type": "string", + "description": "The reset period of this quota dimension." + }, + "quota": { + "type": "number", + "description": "The max limit of this dimension." }, "name": { "type": "string", - "description": "Display name of this target." + "description": "The display name of this quota dimension." }, "description": { "type": "string", - "description": "A description about this target." + "description": "A description about this quota dimension." }, - "acceptedDataFormats": { - "type": "array", - "description": "List of data formats accepted by this target.", - "items": { - "type": "string" - } + "unit": { + "type": "string", + "description": "The standard unit of measurement used for this quota dimension." }, - "acceptedContentEncodings": { - "type": "array", - "description": "List of content encodings accepted by this target.", - "items": { - "type": "string" - } + "unitPlural": { + "type": "string", + "description": "The standard unit of measurement used for this quota dimension in plural form." } } }, @@ -908,111 +933,120 @@ } } }, - "QuotaDimension": { + "TagsObject": { + "description": "Tags object for patch operations.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TargetDescription": { "type": "object", - "description": "Information about a specific quota dimension.", + "description": "Information about a Target. A target is the component that can process a specific type of Job.", "properties": { "id": { "type": "string", - "description": "Unique id of this dimension." - }, - "scope": { - "type": "string", - "description": "The scope of this quota dimension." - }, - "period": { - "type": "string", - "description": "The reset period of this quota dimension." - }, - "quota": { - "type": "number", - "description": "The max limit of this dimension." + "description": "Unique target id." }, "name": { "type": "string", - "description": "The display name of this quota dimension." + "description": "Display name of this target." }, "description": { "type": "string", - "description": "A description about this quota dimension." + "description": "A description about this target." }, - "unit": { - "type": "string", - "description": "The standard unit of measurement used for this quota dimension." + "acceptedDataFormats": { + "type": "array", + "description": "List of data formats accepted by this target.", + "items": { + "type": "string" + } }, - "unitPlural": { - "type": "string", - "description": "The standard unit of measurement used for this quota dimension in plural form." + "acceptedContentEncodings": { + "type": "array", + "description": "List of content encodings accepted by this target.", + "items": { + "type": "string" + } } } }, - "PricingDetail": { - "type": "object", - "description": "Detailed pricing information for an sku.", + "WorkspaceListResult": { + "description": "The response of a list Workspaces operation.", "properties": { - "id": { - "type": "string", - "description": "Unique id for this pricing information." - }, "value": { - "type": "string", - "description": "The unit cost of this sku." - } - } - }, - "PricingDimension": { - "type": "object", - "description": "Information about pricing dimension.", - "properties": { - "id": { - "type": "string", - "description": "Unique id of this pricing dimension." + "type": "array", + "description": "Result of a list Workspaces operation.", + "items": { + "$ref": "#/definitions/QuantumWorkspace" + } }, - "name": { + "nextLink": { "type": "string", - "description": "The display name of this pricing dimension." + "description": "Link to the next set of results. Not empty if Value contains incomplete list of Workspaces." } } }, - "Provider": { - "type": "object", - "description": "Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs.", + "WorkspaceResourceProperties": { + "description": "Properties of a Workspace", "properties": { - "providerId": { - "type": "string", - "description": "Unique id of this provider." - }, - "providerSku": { - "type": "string", - "description": "The sku associated with pricing information for this provider." - }, - "instanceUri": { - "type": "string", - "description": "A Uri identifying the specific instance of this provider." + "providers": { + "type": "array", + "description": "List of Providers selected for this Workspace", + "items": { + "$ref": "#/definitions/Provider" + }, + "x-ms-identifiers": [] }, - "applicationName": { + "usable": { "type": "string", - "description": "The provider's marketplace application display name." + "description": "Whether the current workspace is ready to accept Jobs.", + "enum": [ + "Yes", + "No", + "Partial" + ], + "x-ms-enum": { + "name": "UsableStatus", + "modelAsString": true + }, + "readOnly": true }, "provisioningState": { "type": "string", + "description": "Provisioning status field", "enum": [ "Succeeded", - "Launching", - "Updating", - "Deleting", - "Deleted", + "ProviderLaunching", + "ProviderUpdating", + "ProviderDeleting", + "ProviderProvisioning", "Failed" ], "x-ms-enum": { - "name": "Status", + "name": "ProvisioningStatus", "modelAsString": true }, - "description": "Provisioning status field" + "readOnly": true }, - "resourceUsageId": { + "storageAccount": { "type": "string", - "description": "Id to track resource usage for the provider." + "description": "ARM Resource Id of the storage account associated with this workspace." + }, + "endpointUri": { + "type": "string", + "description": "The URI of the workspace endpoint.", + "readOnly": true + }, + "apiKeyEnabled": { + "type": "boolean", + "description": "Indicator of enablement of the Quantum workspace Api keys." } } }, @@ -1024,8 +1058,8 @@ "description": "Name of the operation" }, "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" + "type": "boolean", + "description": "Indicates whether the operation is a data action" }, "display": { "type": "object", @@ -1052,17 +1086,17 @@ } }, "operationsList": { - "description": "Lists the operations available.", "type": "object", + "description": "Lists the operations available.", "properties": { "nextLink": { - "description": "Url to follow for getting next page of operations.", - "type": "string" + "type": "string", + "description": "Url to follow for getting next page of operations." }, "value": { + "type": "array", "description": "Array of operations", "uniqueItems": false, - "type": "array", "items": { "$ref": "#/definitions/operation" }, @@ -1072,59 +1106,25 @@ "required": [ "value" ] - }, - "CheckNameAvailabilityParameters": { - "description": "Details of check name availability request body.", - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name for checking availability." - }, - "type": { - "type": "string", - "default": "Microsoft.Quantum/Workspaces", - "description": "The resource type of Quantum Workspace." - } - } - }, - "CheckNameAvailabilityResult": { - "description": "Result of check name availability.", - "type": "object", - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Indicator of availability of the Quantum Workspace resource name." - }, - "reason": { - "type": "string", - "description": "The reason of unavailability." - }, - "message": { - "readOnly": true, - "type": "string", - "description": "The detailed info regarding the reason associated with the Namespace." - } - } } }, "parameters": { "LocationParameter": { "name": "locationName", "in": "path", + "description": "Location.", "required": true, "type": "string", - "description": "Location.", "x-ms-parameter-location": "method" }, "WorkspaceNameParameter": { "name": "workspaceName", "in": "path", + "description": "The name of the quantum workspace resource.", "required": true, "type": "string", "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "description": "The name of the quantum workspace resource.", "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 92ba1c6128e27bf49b7cd4019c82f04921c0c65c Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:41:14 -0800 Subject: [PATCH 5/8] Update 2024-02-01 metricBatch.json Update metrics dataplane batch descriptions for 2024-02-01 --- .../Microsoft.Insights/stable/2024-02-01/metricBatch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json b/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json index da083b1c23cb..74d491790256 100644 --- a/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json +++ b/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json @@ -52,7 +52,7 @@ "Metrics" ], "operationId": "MetricsBatch_Batch", - "description": "Lists the metric values for multiple resources.", + "description": "Lists the metric values for multiple resources. The default rate limit is 3k request/30s/userId though this is subject to change. See the following response headers for current limits: X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -183,7 +183,7 @@ "type": "string" }, "collectionFormat": "csv", - "description": "The names of the metrics (comma separated) to retrieve.", + "description": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics.", "x-ms-parameter-location": "method" }, "FilterParameter": { From f0c098a2280727cda5b6575825baa3e387f513b0 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:44:34 -0800 Subject: [PATCH 6/8] Update 2023-10-01 metricBatch.json Update metrics dataplane batch descriptions for 2023-10-01 --- .../Microsoft.Insights/stable/2023-10-01/metricBatch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json b/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json index 5ebbd91d24d7..0ab4e38b6ffa 100644 --- a/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json +++ b/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json @@ -52,7 +52,7 @@ "Metrics" ], "operationId": "MetricsBatch_Batch", - "description": "Lists the metric values for multiple resources.", + "description": "Lists the metric values for multiple resources. The default rate limit is 3k request/30s/userId though this is subject to change. See the following response headers for current limits: X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -183,7 +183,7 @@ "type": "string" }, "collectionFormat": "csv", - "description": "The names of the metrics (comma separated) to retrieve.", + "description": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics.", "x-ms-parameter-location": "method" }, "FilterParameter": { From ba8ca2a8743de9d160386120cfb83cc24485a903 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:46:20 -0800 Subject: [PATCH 7/8] Update 2023-05-01-preview metricBatch.json Update metrics dataplane batch descriptions for 2023-05-01-preview --- .../preview/2023-05-01-preview/metricBatch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json b/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json index 04c40a06ff79..c9309a762f0a 100644 --- a/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json +++ b/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json @@ -52,7 +52,7 @@ "Metrics" ], "operationId": "MetricsBatch_Batch", - "description": "Lists the metric values for multiple resources.", + "description": "Lists the metric values for multiple resources. The default rate limit is 3k request/30s/userId though this is subject to change. See the following response headers for current limits: X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -179,7 +179,7 @@ "type": "string" }, "collectionFormat": "csv", - "description": "The names of the metrics (comma separated) to retrieve.", + "description": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics.", "x-ms-parameter-location": "method" }, "AggregationsParameter": { From 9ce1a4928b2af47a7d95f2d0f0e3c874d9485e0a Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:47:56 -0800 Subject: [PATCH 8/8] Update 2023-03-01-preview metricBatch.json Update metrics dataplane batch descriptions for 2023-03-01-preview --- .../preview/2023-03-01-preview/metricBatch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json b/specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json index 2e4352b3abc2..321d66f00ac4 100644 --- a/specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json +++ b/specification/monitor/data-plane/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json @@ -32,7 +32,7 @@ "Metrics" ], "operationId": "Metrics_Batch", - "description": "Lists the metric values for multiple resources.", + "description": "Lists the metric values for multiple resources. The default rate limit is 3k request/30s/userId though this is subject to change. See the following response headers for current limits: X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -149,7 +149,7 @@ "type": "string" }, "collectionFormat": "csv", - "description": "The names of the metrics (comma separated) to retrieve.", + "description": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics.", "x-ms-parameter-location": "method" }, "AggregationsParameter": {