From 44160b5c4170978d7f608705b523f811a4f367a7 Mon Sep 17 00:00:00 2001 From: Brent Rusinow <44413020+brrusino@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:58:38 -0700 Subject: [PATCH 01/12] Adds base for updating Microsoft.Chaos from version preview/2023-04-15-preview to version 2023-09-01-preview --- .../2023-09-01-preview/capabilities.json | 262 ++++++ .../2023-09-01-preview/capabilityTypes.json | 131 +++ .../examples/CancelAExperiment.json | 17 + .../examples/CreateOrUpdateACapability.json | 35 + .../examples/CreateOrUpdateAExperiment.json | 114 +++ .../examples/CreateOrUpdateATarget.json | 45 + .../examples/DeleteACapability.json | 16 + .../examples/DeleteAExperiment.json | 12 + .../examples/DeleteATarget.json | 15 + .../examples/GetACapability.json | 32 + .../examples/GetACapabilityType.json | 30 + .../examples/GetAExperiment.json | 70 ++ .../GetAExperimentExecutionDetails.json | 67 ++ .../examples/GetAExperimentStatus.json | 24 + .../examples/GetATarget.json | 35 + .../examples/GetATargetType.json | 28 + .../examples/ListCapabilities.json | 36 + .../examples/ListCapabilityTypes.json | 34 + .../ListExperimentExecutionsDetails.json | 112 +++ .../examples/ListExperimentStatuses.json | 29 + .../ListExperimentsInAResourceGroup.json | 75 ++ .../ListExperimentsInASubscription.json | 74 ++ .../examples/ListTargetTypes.json | 33 + .../examples/ListTargets.json | 40 + .../examples/PatchExperiment.json | 81 ++ .../examples/StartAExperiment.json | 17 + .../2023-09-01-preview/experiments.json | 575 ++++++++++++ .../2023-09-01-preview/operations.json | 70 ++ .../2023-09-01-preview/targetTypes.json | 125 +++ .../preview/2023-09-01-preview/targets.json | 250 +++++ .../types/capabilities.json | 84 ++ .../types/capabilityTypes.json | 125 +++ .../2023-09-01-preview/types/common.json | 185 ++++ .../2023-09-01-preview/types/experiments.json | 867 ++++++++++++++++++ .../2023-09-01-preview/types/targetTypes.json | 88 ++ .../2023-09-01-preview/types/targets.json | 64 ++ 36 files changed, 3897 insertions(+) create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json new file mode 100644 index 000000000000..c81b61321fbe --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json @@ -0,0 +1,262 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/GetACapability.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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/DeleteACapability.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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create/update a Capability that extends a virtual machine Target resource.": { + "$ref": "./examples/CreateOrUpdateACapability.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json new file mode 100644 index 000000000000..91f143d34d74 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json @@ -0,0 +1,131 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Capability Type for a virtual machine Target resource on westus2 location.": { + "$ref": "./examples/GetACapabilityType.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json new file mode 100644 index 000000000000..f1cc37246ab9 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview" + }, + "responses": { + "202": { + "headers": {}, + "body": { + "name": "exampleExperiment", + "statusUrl": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json new file mode 100644 index 000000000000..1c6c43aec03b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.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": "2023-04-15-preview", + "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/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json new file mode 100644 index 000000000000..f0f3b591e48e --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview", + "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": { + "200": { + "headers": {}, + "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": { + "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/2023-09-01-preview/examples/CreateOrUpdateATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json new file mode 100644 index 000000000000..17bfd4fbc495 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.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": "2023-04-15-preview", + "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/2023-09-01-preview/examples/DeleteACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json new file mode 100644 index 000000000000..bb8ab59fd782 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.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": "2023-04-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json new file mode 100644 index 000000000000..2993dc2fffef --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json new file mode 100644 index 000000000000..1cf03d8979f7 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.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": "2023-04-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json new file mode 100644 index 000000000000..3828a4dbbe76 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.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": "2023-04-15-preview" + }, + "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/2023-09-01-preview/examples/GetACapabilityType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json new file mode 100644 index 000000000000..47da66d5a70e --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-VirtualMachine", + "capabilityTypeName": "Shutdown-1.0", + "api-version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/examples/GetAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json new file mode 100644 index 000000000000..fcf433dc4355 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json new file mode 100644 index 000000000000..2547b5bc6c43 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "executionDetailsId": "f24500ad-744e-4a26-864b-b76199eac333", + "api-version": "2023-04-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "Microsoft.Chaos/experiments/executionDetails", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/f24500ad-744e-4a26-864b-b76199eac333", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "createdDateTime": "2020-12-14T21:52:42.917983Z", + "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", + "startDateTime": "2020-12-14T21:52:52.2552574Z", + "stopDateTime": "2020-12-14T21:56:18.9281956Z", + "experimentId": "f24500ad-744e-4a26-864b-b76199eac333", + "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/2023-09-01-preview/examples/GetAExperimentStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json new file mode 100644 index 000000000000..4f23a7050fab --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "statusId": "50734542-2e64-4e08-814c-cc0e7475f7e4", + "api-version": "2023-04-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4", + "type": "Microsoft.Chaos/experiments/statuses", + "name": "50734542-2e64-4e08-814c-cc0e7475f7e4", + "properties": { + "status": "Successful", + "createdDateUtc": "2021-07-01T00:00:00.0Z", + "endDateUtc": "2021-07-01T01:00:00.0Z" + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json new file mode 100644 index 000000000000..4f89015c3f4d --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.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": "2023-04-15-preview" + }, + "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/2023-09-01-preview/examples/GetATargetType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json new file mode 100644 index 000000000000..32ccfa8bed3b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-Agent", + "api-version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/examples/ListCapabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json new file mode 100644 index 000000000000..686c388940c9 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-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": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json new file mode 100644 index 000000000000..b655c0ac2b43 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "targetTypeName": "Microsoft-VirtualMachine", + "api-version": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json new file mode 100644 index 000000000000..1bd907686192 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "Microsoft.Chaos/experiments/executionDetails", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/f24500ad-744e-4a26-864b-b76199eac333", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "createdDateTime": "2020-12-14T21:52:42.917983Z", + "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", + "startDateTime": "2020-12-14T21:52:52.2552574Z", + "stopDateTime": "2020-12-14T21:56:18.9281956Z", + "status": "failed", + "failureReason": "Dependency failure", + "experimentId": "f24500ad-744e-4a26-864b-b76199eac333", + "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" + } + ] + } + ] + } + ] + } + ] + } + } + }, + { + "type": "Microsoft.Chaos/experiments/executionDetails", + "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": { + "createdDateTime": "2020-12-14T21:52:42.917983Z", + "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", + "startDateTime": "2020-12-14T21:52:52.2552574Z", + "stopDateTime": "2020-12-14T21:56:18.9281956Z", + "status": "success", + "failureReason": "", + "experimentId": "14d98367-52ef-4596-be4f-53fc81bbfc33", + "runInformation": { + "steps": [ + { + "stepName": "FirstStep", + "stepId": "FirstStep", + "status": "success", + "branches": [ + { + "branchName": "FirstBranch", + "branchId": "FirstBranch", + "status": "success", + "actions": [ + { + "actionName": "urn:provider:agent-v2:Microsoft.Azure.Chaos.Fault.CPUPressureAllProcessors", + "actionId": "59499d33-6751-4b6e-a1f6-58f4d56a040a", + "status": "success", + "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" + } + ] + } + ] + } + ] + } + ] + } + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json new file mode 100644 index 000000000000..f575ac0a5066 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "continuationToken": null, + "api-version": "2023-04-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4", + "type": "Microsoft.Chaos/experiments/statuses", + "name": "50734542-2e64-4e08-814c-cc0e7475f7e4", + "properties": { + "status": "Successful", + "createdDateUtc": "2021-07-01T00:00:00.0Z", + "endDateUtc": "2021-07-01T01:00:00.0Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses?continuationToken=&api-version=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json new file mode 100644 index 000000000000..3865bd5febaa --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "continuationToken": null, + "api-version": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json new file mode 100644 index 000000000000..fceb262d5339 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "continuationToken": null, + "api-version": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json new file mode 100644 index 000000000000..55d428c40aab --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "locationName": "westus2", + "continuationToken": null, + "api-version": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json new file mode 100644 index 000000000000..0a1694655a31 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-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": "2023-04-15-preview" + }, + "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=2023-04-15-preview" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json new file mode 100644 index 000000000000..026b4928054b --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview", + "experiment": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentity/exampleUMI": {} + } + } + } + }, + "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": "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" + }, + "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/2023-09-01-preview/examples/StartAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json new file mode 100644 index 000000000000..f1cc37246ab9 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-04-15-preview" + }, + "responses": { + "202": { + "headers": {}, + "body": { + "name": "exampleExperiment", + "statusUrl": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json new file mode 100644 index 000000000000..1f607ca6c326 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json @@ -0,0 +1,575 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/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/v2/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": { + "200": { + "description": "Request was successful." + }, + "204": { + "description": "Request was successful." + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Experiment in a resource group.": { + "$ref": "./examples/DeleteAExperiment.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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Experiment in a resource group.": { + "$ref": "./examples/GetAExperiment.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": { + "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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create/update a Experiment in a resource group.": { + "$ref": "./examples/CreateOrUpdateAExperiment.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": { + "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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch an Experiment in a resource group.": { + "$ref": "./examples/PatchExperiment.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": "Operation result returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentCancelOperationResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Cancel a running Experiment.": { + "$ref": "./examples/CancelAExperiment.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": "Operation result returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentStartOperationResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Start a Experiment.": { + "$ref": "./examples/StartAExperiment.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses": { + "get": { + "description": "Get a list of statuses of a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_ListAllStatuses", + "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 statuses returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentStatusListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all statuses of a Experiment.": { + "$ref": "./examples/ListExperimentStatuses.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses/{statusId}": { + "get": { + "description": "Get a status of a Experiment resource.", + "tags": [ + "Experiments" + ], + "operationId": "Experiments_GetStatus", + "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/statusId" + } + ], + "responses": { + "200": { + "description": "Status returned if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentStatus" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the status of a Experiment.": { + "$ref": "./examples/GetAExperimentStatus.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails": { + "get": { + "tags": [ + "Experiments" + ], + "description": "Get a list of execution details of a Experiment resource.", + "operationId": "Experiments_ListExecutionDetails", + "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": "Execution detail if request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentExecutionDetailsListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List experiment executions details": { + "$ref": "./examples/ListExperimentExecutionsDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails/{executionDetailsId}": { + "get": { + "tags": [ + "Experiments" + ], + "description": "Get an execution detail of a Experiment resource.", + "operationId": "Experiments_GetExecutionDetails", + "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/executionDetailsId" + } + ], + "responses": { + "200": { + "description": "List of execution details in request was successful.", + "schema": { + "$ref": "./types/experiments.json#/definitions/experimentExecutionDetails" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get experiment execution details": { + "$ref": "./examples/GetAExperimentExecutionDetails.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json new file mode 100644 index 000000000000..3f1f9d970e11 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json @@ -0,0 +1,70 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": {} + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json new file mode 100644 index 000000000000..58c96bd42410 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json @@ -0,0 +1,125 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Target Type for westus2 location": { + "$ref": "./examples/GetATargetType.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json new file mode 100644 index 000000000000..5f5bafa77892 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json @@ -0,0 +1,250 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-04-15-preview" + }, + "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/v2/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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Target that extends a virtual machine resource.": { + "$ref": "./examples/GetATarget.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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Target that extends a virtual machine resource.": { + "$ref": "./examples/DeleteATarget.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/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create/update a Target that extends a virtual machine resource.": { + "$ref": "./examples/CreateOrUpdateATarget.json" + } + } + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json new file mode 100644 index 000000000000..231de5120fd9 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json @@ -0,0 +1,84 @@ +{ + "swagger": "2.0", + "info": { + "title": "Capability Types", + "version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/types/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json new file mode 100644 index 000000000000..df3fae48d3a1 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json @@ -0,0 +1,125 @@ +{ + "swagger": "2.0", + "info": { + "title": "Capability Metadata Types", + "version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json new file mode 100644 index 000000000000..86785a4c7ff2 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json @@ -0,0 +1,185 @@ +{ + "swagger": "2.0", + "info": { + "title": "Common Types", + "version": "2023-04-15-preview" + }, + "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 + }, + "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 + } + }, + "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/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json new file mode 100644 index 000000000000..cc2331ad31cd --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -0,0 +1,867 @@ +{ + "swagger": "2.0", + "info": { + "title": "Experiment Types", + "version": "2023-04-15-preview" + }, + "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 + }, + "executionDetailsId": { + "name": "executionDetailsId", + "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" + } + } + }, + "experimentProperties": { + "description": "Model that represents the Experiment properties model.", + "type": "object", + "properties": { + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/step" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of steps.", + "minItems": 1 + }, + "selectors": { + "type": "array", + "items": { + "$ref": "#/definitions/selector" + }, + "description": "List of selectors.", + "minItems": 1 + }, + "startOnCreation": { + "description": "A boolean value that indicates if experiment should be started on creation or not.", + "type": "boolean", + "x-nullable": true + } + }, + "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 + } + }, + "required": [ + "name", + "branches" + ], + "additionalProperties": false + }, + "branch": { + "type": "object", + "description": "Model that represents a branch in the step.", + "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 + } + }, + "required": [ + "name", + "actions" + ], + "additionalProperties": false + }, + "action": { + "type": "object", + "description": "Model that represents the base action model.", + "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, + "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 + }, + "experimentStatus": { + "type": "object", + "description": "Model that represents the status 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/experimentStatusProperties" + } + }, + "additionalProperties": false + }, + "experimentStatusProperties": { + "description": "Model that represents the Experiment status properties model.", + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "String that represents the status of a Experiment.", + "readOnly": true + }, + "createdDateUtc": { + "type": "string", + "format": "date-time", + "description": "String that represents the created date time of a Experiment.", + "readOnly": true + }, + "endDateUtc": { + "type": "string", + "format": "date-time", + "description": "String that represents the end date time of a Experiment.", + "readOnly": true, + "x-nullable": true + } + }, + "additionalProperties": false + }, + "experimentStatusListResult": { + "type": "object", + "description": "Model that represents a list of Experiment statuses and a link for pagination.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/experimentStatus" + }, + "description": "List of Experiment statuses.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Experiment statuses.", + "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 + } + } + }, + "experimentExecutionDetailsListResult": { + "description": "Model that represents a list of Experiment execution details and a link for pagination.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/experimentExecutionDetails" + }, + "description": "List of Experiment execution details.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Experiment execution details.", + "readOnly": true + } + } + }, + "experimentExecutionDetails": { + "description": "Model that represents the execution details of a 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 Experiment execution details properties model.", + "type": "object", + "properties": { + "experimentId": { + "description": "The id of the experiment.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The value of the status of the experiment execution.", + "type": "string", + "readOnly": true + }, + "failureReason": { + "description": "The reason why the execution failed.", + "type": "string", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the created date time.", + "readOnly": true + }, + "lastActionDateTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the last action date time.", + "readOnly": true + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the start date time.", + "readOnly": true + }, + "stopDateTime": { + "type": "string", + "format": "date-time", + "description": "String that represents the stop 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/2023-09-01-preview/types/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json new file mode 100644 index 000000000000..c2542fa48308 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json @@ -0,0 +1,88 @@ +{ + "swagger": "2.0", + "info": { + "title": "Target Metadata Types", + "version": "2023-04-15-preview" + }, + "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/2023-09-01-preview/types/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json new file mode 100644 index 000000000000..d54afdafc903 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json @@ -0,0 +1,64 @@ +{ + "swagger": "2.0", + "info": { + "title": "Target Types", + "version": "2023-04-15-preview" + }, + "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 854540ac51a211ea97e91d82f87001eb61c7c383 Mon Sep 17 00:00:00 2001 From: Brent Rusinow <44413020+brrusino@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:58:45 -0700 Subject: [PATCH 02/12] Updates readme --- .../chaos/resource-manager/readme.md | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/specification/chaos/resource-manager/readme.md b/specification/chaos/resource-manager/readme.md index c6011a1ebb3e..18f0b2c248a7 100644 --- a/specification/chaos/resource-manager/readme.md +++ b/specification/chaos/resource-manager/readme.md @@ -24,18 +24,32 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the chaos. -```yaml +``` yaml title: ChaosManagementClient description: Chaos Management Client openapi-type: arm -tag: package-2023-04-15-preview +tag: package-preview-2023-09 ``` + +### Tag: package-preview-2023-09 + +These settings apply only when `--tag=package-preview-2023-09` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-09' +input-file: + - Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json + - Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json + - Microsoft.Chaos/preview/2023-09-01-preview/experiments.json + - Microsoft.Chaos/preview/2023-09-01-preview/operations.json + - Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json + - Microsoft.Chaos/preview/2023-09-01-preview/targets.json +``` ### Tag: package-2023-04-15-preview These settings apply only when `--tag=package-2023-04-15-preview` is specified on the command line. -```yaml $(tag) == 'package-2023-04-15-preview' +``` yaml $(tag) == 'package-2023-04-15-preview' input-file: - Microsoft.Chaos/preview/2023-04-15-preview/capabilities.json - Microsoft.Chaos/preview/2023-04-15-preview/capabilityTypes.json @@ -49,7 +63,7 @@ input-file: These settings apply only when `--tag=package-2023-04-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2023-04-01-preview' +``` yaml $(tag) == 'package-2023-04-01-preview' input-file: - Microsoft.Chaos/preview/2023-04-01-preview/capabilities.json - Microsoft.Chaos/preview/2023-04-01-preview/capabilityTypes.json @@ -63,7 +77,7 @@ input-file: These settings apply only when `--tag=package-2022-10-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2022-10-01-preview' +``` yaml $(tag) == 'package-2022-10-01-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -83,7 +97,7 @@ input-file: These settings apply only when `--tag=package-2022-07-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2022-07-01-preview' +``` yaml $(tag) == 'package-2022-07-01-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -103,7 +117,7 @@ input-file: These settings apply only when `--tag=package-2021-09-15-preview` is specified on the command line. -```yaml $(tag) == 'package-2021-09-15-preview' +``` yaml $(tag) == 'package-2021-09-15-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -128,7 +142,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java @@ -161,7 +175,7 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Suppression -```yaml +``` yaml directive: - suppress: TopLevelResourcesListBySubscription where: $.definitions.target From 76726c5312ec525040f3098a6e2697027c7cbd3b Mon Sep 17 00:00:00 2001 From: Brent Rusinow <44413020+brrusino@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:58:50 -0700 Subject: [PATCH 03/12] Updates API version in new specs and examples --- .../preview/2023-09-01-preview/capabilities.json | 2 +- .../preview/2023-09-01-preview/capabilityTypes.json | 2 +- .../2023-09-01-preview/examples/CancelAExperiment.json | 2 +- .../examples/CreateOrUpdateACapability.json | 2 +- .../examples/CreateOrUpdateAExperiment.json | 2 +- .../2023-09-01-preview/examples/CreateOrUpdateATarget.json | 2 +- .../2023-09-01-preview/examples/DeleteACapability.json | 2 +- .../2023-09-01-preview/examples/DeleteAExperiment.json | 2 +- .../preview/2023-09-01-preview/examples/DeleteATarget.json | 2 +- .../preview/2023-09-01-preview/examples/GetACapability.json | 2 +- .../2023-09-01-preview/examples/GetACapabilityType.json | 2 +- .../preview/2023-09-01-preview/examples/GetAExperiment.json | 2 +- .../examples/GetAExperimentExecutionDetails.json | 2 +- .../2023-09-01-preview/examples/GetAExperimentStatus.json | 2 +- .../preview/2023-09-01-preview/examples/GetATarget.json | 2 +- .../preview/2023-09-01-preview/examples/GetATargetType.json | 2 +- .../preview/2023-09-01-preview/examples/ListCapabilities.json | 4 ++-- .../2023-09-01-preview/examples/ListCapabilityTypes.json | 4 ++-- .../examples/ListExperimentExecutionsDetails.json | 4 ++-- .../2023-09-01-preview/examples/ListExperimentStatuses.json | 4 ++-- .../examples/ListExperimentsInAResourceGroup.json | 4 ++-- .../examples/ListExperimentsInASubscription.json | 4 ++-- .../preview/2023-09-01-preview/examples/ListTargetTypes.json | 4 ++-- .../preview/2023-09-01-preview/examples/ListTargets.json | 4 ++-- .../preview/2023-09-01-preview/examples/PatchExperiment.json | 2 +- .../preview/2023-09-01-preview/examples/StartAExperiment.json | 2 +- .../preview/2023-09-01-preview/experiments.json | 2 +- .../preview/2023-09-01-preview/operations.json | 2 +- .../preview/2023-09-01-preview/targetTypes.json | 2 +- .../Microsoft.Chaos/preview/2023-09-01-preview/targets.json | 2 +- .../preview/2023-09-01-preview/types/capabilities.json | 2 +- .../preview/2023-09-01-preview/types/capabilityTypes.json | 2 +- .../preview/2023-09-01-preview/types/common.json | 2 +- .../preview/2023-09-01-preview/types/experiments.json | 2 +- .../preview/2023-09-01-preview/types/targetTypes.json | 2 +- .../preview/2023-09-01-preview/types/targets.json | 2 +- 36 files changed, 44 insertions(+), 44 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json index c81b61321fbe..f7ac0b1c9e02 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json index 91f143d34d74..03f9e2ad256d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json index f1cc37246ab9..c5e3aca4117b 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "202": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json index 1c6c43aec03b..a7dce1bfece7 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json @@ -7,7 +7,7 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2023-04-15-preview", + "api-version": "2023-09-01-preview", "capability": { "properties": {} } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json index f0f3b591e48e..834e725117f2 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview", + "api-version": "2023-09-01-preview", "experiment": { "location": "eastus2euap", "identity": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json index 17bfd4fbc495..2727073ce7f0 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2023-04-15-preview", + "api-version": "2023-09-01-preview", "target": { "properties": { "identities": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json index bb8ab59fd782..c57b8d8c09b1 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json @@ -7,7 +7,7 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": {}, diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json index 2993dc2fffef..c3f318e598e6 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": {}, diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json index 1cf03d8979f7..369d80620fc7 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": {}, diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json index 3828a4dbbe76..1c0bf48a8f54 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json @@ -7,7 +7,7 @@ "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", "capabilityName": "Shutdown-1.0", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json index 47da66d5a70e..27fe3ad151d1 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json @@ -4,7 +4,7 @@ "locationName": "westus2", "targetTypeName": "Microsoft-VirtualMachine", "capabilityTypeName": "Shutdown-1.0", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json index fcf433dc4355..857180ba9e70 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json index 2547b5bc6c43..0251206cf625 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json @@ -4,7 +4,7 @@ "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", "executionDetailsId": "f24500ad-744e-4a26-864b-b76199eac333", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json index 4f23a7050fab..1bd87676018d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json @@ -4,7 +4,7 @@ "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", "statusId": "50734542-2e64-4e08-814c-cc0e7475f7e4", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json index 4f89015c3f4d..d7bd78f6ab02 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-Agent", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json index 32ccfa8bed3b..1a9638f4939e 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "targetTypeName": "Microsoft-Agent", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json index 686c388940c9..22f33883465c 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilities.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "targetName": "Microsoft-VirtualMachine", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -29,7 +29,7 @@ } } ], - "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=2023-04-15-preview" + "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=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json index b655c0ac2b43..ff83c4f238cf 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListCapabilityTypes.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "targetTypeName": "Microsoft-VirtualMachine", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -27,7 +27,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json index 1bd907686192..d852c04384b1 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentExecutionsDetails.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -105,7 +105,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json index f575ac0a5066..24acf7218f09 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentStatuses.json @@ -4,7 +4,7 @@ "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", "continuationToken": null, - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -22,7 +22,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json index 3865bd5febaa..9800a786d1c2 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInAResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "continuationToken": null, - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -68,7 +68,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json index fceb262d5339..50283094b3a1 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListExperimentsInASubscription.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "continuationToken": null, - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -67,7 +67,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/experiments?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json index 55d428c40aab..92723d2bf5da 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargetTypes.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "locationName": "westus2", "continuationToken": null, - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -26,7 +26,7 @@ } } ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes?continuationToken=&api-version=2023-04-15-preview" + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes?continuationToken=&api-version=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json index 0a1694655a31..74d4b2e73d72 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/ListTargets.json @@ -6,7 +6,7 @@ "parentResourceType": "virtualMachines", "parentResourceName": "exampleVM", "continuationToken": null, - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "200": { @@ -33,7 +33,7 @@ } } ], - "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=2023-04-15-preview" + "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=2023-09-01-preview" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json index 026b4928054b..7646ff3785fc 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview", + "api-version": "2023-09-01-preview", "experiment": { "identity": { "type": "UserAssigned", diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json index f1cc37246ab9..c5e3aca4117b 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json @@ -3,7 +3,7 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "api-version": "2023-04-15-preview" + "api-version": "2023-09-01-preview" }, "responses": { "202": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json index 1f607ca6c326..9ccd79637164 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json index 3f1f9d970e11..67f75de81e5a 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operations.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json index 58c96bd42410..fe27e8964ad8 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json index 5f5bafa77892..cfb87ad0fd27 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json @@ -3,7 +3,7 @@ "info": { "title": "Chaos Management", "description": "Azure Chaos Resource Provider REST API", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json index 231de5120fd9..9126419af6ad 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilities.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Capability Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "definitions": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json index df3fae48d3a1..e87579e2d12d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/capabilityTypes.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Capability Metadata Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "definitions": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json index 86785a4c7ff2..f5a6514dce0b 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Common Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "definitions": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json index cc2331ad31cd..2bd76a8a0dbc 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Experiment Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "parameters": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json index c2542fa48308..861723abc4b0 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targetTypes.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Target Metadata Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "definitions": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json index d54afdafc903..66883222fd21 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/targets.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Target Types", - "version": "2023-04-15-preview" + "version": "2023-09-01-preview" }, "paths": {}, "definitions": { From c5a6982ab785af34cd82691e0bebead61249998d Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Thu, 7 Sep 2023 10:51:41 -0700 Subject: [PATCH 04/12] updates to experiment types --- .../2023-09-01-preview/types/experiments.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json index 2bd76a8a0dbc..98e368f4f820 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -62,6 +62,11 @@ "description": "The identity of the experiment resource.", "$ref": "./common.json#/definitions/resourceIdentity" }, + "provisioningState": { + "type": "string", + "description": "Most recent provisioning state for the given experiment resource.", + "readOnly": true + }, "properties": { "description": "The properties of the experiment resource.", "x-ms-client-flatten": true, @@ -104,11 +109,6 @@ }, "description": "List of selectors.", "minItems": 1 - }, - "startOnCreation": { - "description": "A boolean value that indicates if experiment should be started on creation or not.", - "type": "boolean", - "x-nullable": true } }, "required": [ @@ -864,4 +864,4 @@ } } } -} +} \ No newline at end of file From d0006e3c365cd2e36b528e6e402d4b89aa95f816 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Thu, 7 Sep 2023 11:45:37 -0700 Subject: [PATCH 05/12] prettier fix --- .../preview/2023-09-01-preview/types/experiments.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json index 98e368f4f820..964fb5e796c8 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -864,4 +864,4 @@ } } } -} \ No newline at end of file +} From 71b1ed9498cda06bd5a2dfec8eec52678f8d07b5 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Fri, 15 Sep 2023 10:03:51 -0700 Subject: [PATCH 06/12] added m-ms-client-name directives --- .../chaos/resource-manager/readme.md | 55 ++++++++++++++++--- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/specification/chaos/resource-manager/readme.md b/specification/chaos/resource-manager/readme.md index 18f0b2c248a7..2cbd88799380 100644 --- a/specification/chaos/resource-manager/readme.md +++ b/specification/chaos/resource-manager/readme.md @@ -24,14 +24,13 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the chaos. -``` yaml +```yaml title: ChaosManagementClient description: Chaos Management Client openapi-type: arm tag: package-preview-2023-09 ``` - ### Tag: package-preview-2023-09 These settings apply only when `--tag=package-preview-2023-09` is specified on the command line. @@ -44,12 +43,50 @@ input-file: - Microsoft.Chaos/preview/2023-09-01-preview/operations.json - Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json - Microsoft.Chaos/preview/2023-09-01-preview/targets.json +directive: + - from: swagger-document + where: "$.definitions.action" + transform: > + $["x-ms-client-name"] = "ChaosExperimentAction"; + - from: swagger-document + where: "$.definitions.branch" + transform: > + $["x-ms-client-name"] = "ChaosExperimentBranch"; + - from: swagger-document + where: "$.definitions.step" + transform: > + $["x-ms-client-name"] = "ChaosExperimentStep"; + - from: swagger-document + where: "$.definitions.filter" + transform: > + $["x-ms-client-name"] = "ChaosTargetFilter"; + - from: swagger-document + where: "$.definitions.simpleFilter" + transform: > + $["x-ms-client-name"] = "ChaosTargetSimpleFilter"; + - from: swagger-document + where: "$.definitions.simpleFilterParameters" + transform: > + $["x-ms-client-name"] = "ChaosTargetSimpleFilterParameters"; + - from: swagger-document + where: "$.definitions.selector" + transform: > + $["x-ms-client-name"] = "ChaosTargetSelector"; + - from: swagger-document + where: "$.definitions.listSelector" + transform: > + $["x-ms-client-name"] = "ChaosTargetListSelector"; + - from: swagger-document + where: "$.definitions.querySelector" + transform: > + $["x-ms-client-name"] = "ChaosTargetQuerySelector"; ``` + ### Tag: package-2023-04-15-preview These settings apply only when `--tag=package-2023-04-15-preview` is specified on the command line. -``` yaml $(tag) == 'package-2023-04-15-preview' +```yaml $(tag) == 'package-2023-04-15-preview' input-file: - Microsoft.Chaos/preview/2023-04-15-preview/capabilities.json - Microsoft.Chaos/preview/2023-04-15-preview/capabilityTypes.json @@ -63,7 +100,7 @@ input-file: These settings apply only when `--tag=package-2023-04-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-2023-04-01-preview' +```yaml $(tag) == 'package-2023-04-01-preview' input-file: - Microsoft.Chaos/preview/2023-04-01-preview/capabilities.json - Microsoft.Chaos/preview/2023-04-01-preview/capabilityTypes.json @@ -77,7 +114,7 @@ input-file: These settings apply only when `--tag=package-2022-10-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-2022-10-01-preview' +```yaml $(tag) == 'package-2022-10-01-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -97,7 +134,7 @@ input-file: These settings apply only when `--tag=package-2022-07-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-2022-07-01-preview' +```yaml $(tag) == 'package-2022-07-01-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -117,7 +154,7 @@ input-file: These settings apply only when `--tag=package-2021-09-15-preview` is specified on the command line. -``` yaml $(tag) == 'package-2021-09-15-preview' +```yaml $(tag) == 'package-2021-09-15-preview' directive: - suppress: R3026 reason: Patch is not implemented in this version. @@ -142,7 +179,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -``` yaml $(swagger-to-sdk) +```yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java @@ -175,7 +212,7 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Suppression -``` yaml +```yaml directive: - suppress: TopLevelResourcesListBySubscription where: $.definitions.target From 6418ba8bce109e5147bc2417cda0a36e92bb9262 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Tue, 19 Sep 2023 09:26:35 -0700 Subject: [PATCH 07/12] PR updates --- .../2023-09-01-preview/types/common.json | 39 ++++++++++++++++++- .../2023-09-01-preview/types/experiments.json | 4 +- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json index f5a6514dce0b..f1f482b508b4 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json @@ -62,6 +62,43 @@ "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": { @@ -182,4 +219,4 @@ "x-nullable": false } } -} +} \ No newline at end of file diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json index 964fb5e796c8..83dc03d747b4 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -63,7 +63,7 @@ "$ref": "./common.json#/definitions/resourceIdentity" }, "provisioningState": { - "type": "string", + "$ref": "./common.json#/definitions/provisioningState", "description": "Most recent provisioning state for the given experiment resource.", "readOnly": true }, @@ -864,4 +864,4 @@ } } } -} +} \ No newline at end of file From 1f963f117c901146d11c02d3fb067608b022185d Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Tue, 19 Sep 2023 15:28:12 -0700 Subject: [PATCH 08/12] added LRO support --- .../examples/GetAnOperationStatus.json | 20 +++ .../2023-09-01-preview/experiments.json | 47 ++++--- .../2023-09-01-preview/operationStatuses.json | 116 ++++++++++++++++++ .../chaos/resource-manager/readme.md | 1 + 4 files changed, 166 insertions(+), 18 deletions(-) create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json new file mode 100644 index 000000000000..5c06e07c2d85 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "api-version": "2020-08-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" + } + } + } +} \ No newline at end of file diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json index 9ccd79637164..702aa65ab411 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json @@ -149,11 +149,8 @@ } ], "responses": { - "200": { - "description": "Request was successful." - }, - "204": { - "description": "Request was successful." + "202": { + "description": "Asynchronous delete operation." }, "default": { "description": "Error response returned if request was unsuccessful.", @@ -162,6 +159,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "Delete a Experiment in a resource group.": { "$ref": "./examples/DeleteAExperiment.json" @@ -238,8 +239,8 @@ } ], "responses": { - "200": { - "description": "Experiment resource returned if request was successful.", + "201": { + "description": "Long running create/update operation.", "schema": { "$ref": "./types/experiments.json#/definitions/experiment" } @@ -251,6 +252,10 @@ } } }, + "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/CreateOrUpdateAExperiment.json" @@ -287,8 +292,8 @@ } ], "responses": { - "200": { - "description": "Experiment resource returned if request was successful.", + "202": { + "description": "Long running update operation.", "schema": { "$ref": "./types/experiments.json#/definitions/experiment" } @@ -300,6 +305,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "Patch an Experiment in a resource group.": { "$ref": "./examples/PatchExperiment.json" @@ -330,10 +339,7 @@ ], "responses": { "202": { - "description": "Operation result returned if request was successful.", - "schema": { - "$ref": "./types/experiments.json#/definitions/experimentCancelOperationResult" - } + "description": "Long running cancel operation." }, "default": { "description": "Error response returned if request was unsuccessful.", @@ -342,6 +348,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "Cancel a running Experiment.": { "$ref": "./examples/CancelAExperiment.json" @@ -372,10 +382,7 @@ ], "responses": { "202": { - "description": "Operation result returned if request was successful.", - "schema": { - "$ref": "./types/experiments.json#/definitions/experimentStartOperationResult" - } + "description": "Long running start experiment operation." }, "default": { "description": "Error response returned if request was unsuccessful.", @@ -384,6 +391,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, "x-ms-examples": { "Start a Experiment.": { "$ref": "./examples/StartAExperiment.json" @@ -572,4 +583,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json new file mode 100644 index 000000000000..3314ba858fbd --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json @@ -0,0 +1,116 @@ +{ + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-09-01-preview" + }, + "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}/operationsStatuses/{asyncOperationId}": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/GetAnOperationStatus.json" + } + }, + "tags": [ + "asyncOperations" + ], + "operationId": "OperationStatuses_Get", + "description": "Get the status of a long running azure asynchronous operation.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name of operation." + }, + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Operation status.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + } + } + } + } + }, + "definitions": { + "OperationsStatus": { + "description": "The status of operation.", + "type": "object", + "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." + }, + "endTime": { + "type": "string", + "description": "The end time of the operation." + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "error": { + "type": "object", + "description": "The error detail of the operation if any.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/chaos/resource-manager/readme.md b/specification/chaos/resource-manager/readme.md index 2cbd88799380..faec0d4b2559 100644 --- a/specification/chaos/resource-manager/readme.md +++ b/specification/chaos/resource-manager/readme.md @@ -43,6 +43,7 @@ input-file: - Microsoft.Chaos/preview/2023-09-01-preview/operations.json - Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json - Microsoft.Chaos/preview/2023-09-01-preview/targets.json + - Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json directive: - from: swagger-document where: "$.definitions.action" From 6ee0d665f62ffbbc85d328d141159eb2eb484999 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Tue, 19 Sep 2023 16:18:27 -0700 Subject: [PATCH 09/12] prettier fixes --- .../examples/GetAnOperationStatus.json | 36 +-- .../2023-09-01-preview/experiments.json | 2 +- .../2023-09-01-preview/operationStatuses.json | 228 +++++++++--------- .../2023-09-01-preview/types/common.json | 2 +- .../2023-09-01-preview/types/experiments.json | 2 +- 5 files changed, 138 insertions(+), 132 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json index 5c06e07c2d85..53fbaa749187 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json @@ -1,20 +1,20 @@ { - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "location": "West US", - "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", - "api-version": "2020-08-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" - } - } + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "api-version": "2020-08-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json index 702aa65ab411..306e1e208630 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json @@ -583,4 +583,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json index 3314ba858fbd..8243257799f8 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json @@ -1,116 +1,122 @@ { - "swagger": "2.0", - "info": { - "title": "Chaos Management", - "description": "Azure Chaos Resource Provider REST API", - "version": "2023-09-01-preview" - }, - "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" + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-09-01-preview" + }, + "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}/operationsStatuses/{asyncOperationId}": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/GetAnOperationStatus.json" + } + }, + "tags": [ + "asyncOperations" + ], + "operationId": "OperationStatuses_Get", + "description": "Get the status of a long running azure asynchronous operation.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name of operation." + }, + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Operation status.", + "schema": { + "$ref": "#/definitions/OperationStatus" } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/operationsStatuses/{asyncOperationId}": { - "get": { - "x-ms-examples": { - "Get specific operation status": { - "$ref": "./examples/GetAnOperationStatus.json" - } - }, - "tags": [ - "asyncOperations" - ], - "operationId": "OperationStatuses_Get", - "description": "Get the status of a long running azure asynchronous operation.", - "parameters": [ - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The region name of operation." - }, - { - "name": "asyncOperationId", - "in": "path", - "required": true, - "type": "string", - "description": "The operation Id." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/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/v2/types.json#/definitions/ErrorResponse" } + } } - }, - "definitions": { - "OperationsStatus": { - "description": "The status of operation.", - "type": "object", - "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." - }, - "endTime": { - "type": "string", - "description": "The end time of the operation." - }, - "status": { - "type": "string", - "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } + } + } + }, + "definitions": { + "OperationsStatus": { + "description": "The status of operation.", + "type": "object", + "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." + }, + "endTime": { + "type": "string", + "description": "The end time of the operation." + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "error": { + "type": "object", + "description": "The error detail of the operation if any.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } - }, - "parameters": {} -} \ No newline at end of file + } + } + }, + "parameters": {} +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json index f1f482b508b4..f2cc44846162 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/common.json @@ -219,4 +219,4 @@ "x-nullable": false } } -} \ No newline at end of file +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json index 83dc03d747b4..18aa66d94a8d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/types/experiments.json @@ -864,4 +864,4 @@ } } } -} \ No newline at end of file +} From fff35c90ee1ddf48430ad083c20ee97a16c98a9a Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Thu, 21 Sep 2023 09:06:19 -0700 Subject: [PATCH 10/12] fix --- .../2023-09-01-preview/operationStatuses.json | 234 +++++++++--------- 1 file changed, 117 insertions(+), 117 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json index 8243257799f8..601fed25dd33 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json @@ -1,122 +1,122 @@ { - "swagger": "2.0", - "info": { - "title": "Chaos Management", - "description": "Azure Chaos Resource Provider REST API", - "version": "2023-09-01-preview" - }, - "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}/operationsStatuses/{asyncOperationId}": { - "get": { - "x-ms-examples": { - "Get specific operation status": { - "$ref": "./examples/GetAnOperationStatus.json" - } - }, - "tags": [ - "asyncOperations" - ], - "operationId": "OperationStatuses_Get", - "description": "Get the status of a long running azure asynchronous operation.", - "parameters": [ - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The region name of operation." - }, - { - "name": "asyncOperationId", - "in": "path", - "required": true, - "type": "string", - "description": "The operation Id." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. Operation status.", - "schema": { - "$ref": "#/definitions/OperationStatus" + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-09-01-preview" + }, + "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" } - }, - "default": { - "description": "Error response returned if request was unsuccessful.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/operationsStatuses/{asyncOperationId}": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/GetAnOperationStatus.json" + } + }, + "tags": [ + "asyncOperations" + ], + "operationId": "OperationStatuses_Get", + "description": "Get the status of a long running azure asynchronous operation.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name of operation." + }, + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/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/v2/types.json#/definitions/ErrorResponse" + } + } + } } - } } - } - } - }, - "definitions": { - "OperationsStatus": { - "description": "The status of operation.", - "type": "object", - "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." - }, - "endTime": { - "type": "string", - "description": "The end time of the operation." - }, - "status": { - "type": "string", - "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "definitions": { + "OperationStatus": { + "description": "The status of operation.", + "type": "object", + "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." + }, + "endTime": { + "type": "string", + "description": "The end time of the operation." + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "error": { + "type": "object", + "description": "The error detail of the operation if any.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } } - } - } - }, - "parameters": {} -} + }, + "parameters": {} +} \ No newline at end of file From 91ac262f68fa913828b5713e92be6ac6fb1f3fd3 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Fri, 22 Sep 2023 09:51:15 -0700 Subject: [PATCH 11/12] PR fixes and example renames --- .../2023-09-01-preview/capabilities.json | 6 +- .../2023-09-01-preview/capabilityTypes.json | 2 +- .../examples/CancelAExperiment.json | 17 -- .../examples/CancelExperiment.json | 14 ++ ...ility.json => CreateUpdateCapability.json} | 0 ...iment.json => CreateUpdateExperiment.json} | 3 +- ...teATarget.json => CreateUpdateTarget.json} | 0 ...ACapability.json => DeleteCapability.json} | 0 ...AExperiment.json => DeleteExperiment.json} | 3 +- .../{DeleteATarget.json => DeleteTarget.json} | 0 ...GetACapability.json => GetCapability.json} | 0 ...bilityType.json => GetCapabilityType.json} | 0 ...GetAExperiment.json => GetExperiment.json} | 0 ...son => GetExperimentExecutionDetails.json} | 0 ...ntStatus.json => GetExperimentStatus.json} | 0 ...ionStatus.json => GetOperationStatus.json} | 2 +- .../{GetATarget.json => GetTarget.json} | 0 ...GetATargetType.json => GetTargetType.json} | 0 .../examples/StartAExperiment.json | 17 -- .../examples/StartExperiment.json | 14 ++ ...hExperiment.json => UpdateExperiment.json} | 0 .../2023-09-01-preview/experiments.json | 28 +-- .../2023-09-01-preview/operationStatuses.json | 234 +++++++++--------- .../2023-09-01-preview/targetTypes.json | 2 +- .../preview/2023-09-01-preview/targets.json | 6 +- 25 files changed, 171 insertions(+), 177 deletions(-) delete mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{CreateOrUpdateACapability.json => CreateUpdateCapability.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{CreateOrUpdateAExperiment.json => CreateUpdateExperiment.json} (98%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{CreateOrUpdateATarget.json => CreateUpdateTarget.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{DeleteACapability.json => DeleteCapability.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{DeleteAExperiment.json => DeleteExperiment.json} (88%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{DeleteATarget.json => DeleteTarget.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetACapability.json => GetCapability.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetACapabilityType.json => GetCapabilityType.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetAExperiment.json => GetExperiment.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetAExperimentExecutionDetails.json => GetExperimentExecutionDetails.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetAExperimentStatus.json => GetExperimentStatus.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetAnOperationStatus.json => GetOperationStatus.json} (93%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetATarget.json => GetTarget.json} (100%) rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{GetATargetType.json => GetTargetType.json} (100%) delete mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json rename specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/{PatchExperiment.json => UpdateExperiment.json} (100%) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json index f7ac0b1c9e02..602dbb2775c7 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilities.json @@ -140,7 +140,7 @@ }, "x-ms-examples": { "Get a Capability that extends a virtual machine Target resource.": { - "$ref": "./examples/GetACapability.json" + "$ref": "./examples/GetCapability.json" } } }, @@ -192,7 +192,7 @@ }, "x-ms-examples": { "Delete a Capability that extends a virtual machine Target resource.": { - "$ref": "./examples/DeleteACapability.json" + "$ref": "./examples/DeleteCapability.json" } } }, @@ -253,7 +253,7 @@ }, "x-ms-examples": { "Create/update a Capability that extends a virtual machine Target resource.": { - "$ref": "./examples/CreateOrUpdateACapability.json" + "$ref": "./examples/CreateUpdateCapability.json" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json index 03f9e2ad256d..d97b826e4a70 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/capabilityTypes.json @@ -122,7 +122,7 @@ }, "x-ms-examples": { "Get a Capability Type for a virtual machine Target resource on westus2 location.": { - "$ref": "./examples/GetACapabilityType.json" + "$ref": "./examples/GetCapabilityType.json" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json deleted file mode 100644 index c5e3aca4117b..000000000000 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelAExperiment.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", - "resourceGroupName": "exampleRG", - "experimentName": "exampleExperiment", - "api-version": "2023-09-01-preview" - }, - "responses": { - "202": { - "headers": {}, - "body": { - "name": "exampleExperiment", - "statusUrl": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4" - } - } - } -} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json new file mode 100644 index 000000000000..2a38b7868c56 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-09-01-preview" + }, + "responses": { + "202": { + "headers": {}, + "body": {} + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateCapability.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateACapability.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateCapability.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json similarity index 98% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json index 834e725117f2..65dddee4e862 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json @@ -50,11 +50,12 @@ } }, "responses": { - "200": { + "201": { "headers": {}, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", "type": "Microsoft.Chaos/experiments", + "provisioningState": "Creating", "name": "exampleExperiment", "location": "eastus2euap", "identity": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateTarget.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateOrUpdateATarget.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateTarget.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteCapability.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteACapability.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteCapability.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json similarity index 88% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json index c3f318e598e6..4c8a3dc8b234 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteAExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json @@ -6,7 +6,6 @@ "api-version": "2023-09-01-preview" }, "responses": { - "200": {}, - "204": {} + "202": {} } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteTarget.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteATarget.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteTarget.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetCapability.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapability.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetCapability.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetCapabilityType.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetACapabilityType.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetCapabilityType.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperiment.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperiment.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperiment.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperimentExecutionDetails.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentExecutionDetails.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperimentExecutionDetails.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperimentStatus.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAExperimentStatus.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetExperimentStatus.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetOperationStatus.json similarity index 93% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetOperationStatus.json index 53fbaa749187..a4ac6c5168f2 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetAnOperationStatus.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-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": "2020-08-01" + "api-version": "2023-09-01-preview" }, "responses": { "200": { diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetTarget.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATarget.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetTarget.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetTargetType.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetATargetType.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/GetTargetType.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json deleted file mode 100644 index c5e3aca4117b..000000000000 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartAExperiment.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", - "resourceGroupName": "exampleRG", - "experimentName": "exampleExperiment", - "api-version": "2023-09-01-preview" - }, - "responses": { - "202": { - "headers": {}, - "body": { - "name": "exampleExperiment", - "statusUrl": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4" - } - } - } -} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json new file mode 100644 index 000000000000..7c1098bb3db4 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-09-01-preview" + }, + "responses": { + "202": { + "headers": {}, + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json similarity index 100% rename from specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/PatchExperiment.json rename to specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json index 306e1e208630..00269b4dfc89 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/experiments.json @@ -161,11 +161,11 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "Delete a Experiment in a resource group.": { - "$ref": "./examples/DeleteAExperiment.json" + "$ref": "./examples/DeleteExperiment.json" } } }, @@ -205,7 +205,7 @@ }, "x-ms-examples": { "Get a Experiment in a resource group.": { - "$ref": "./examples/GetAExperiment.json" + "$ref": "./examples/GetExperiment.json" } } }, @@ -254,11 +254,11 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "Create/update a Experiment in a resource group.": { - "$ref": "./examples/CreateOrUpdateAExperiment.json" + "$ref": "./examples/CreateUpdateExperiment.json" } } }, @@ -307,11 +307,11 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { - "Patch an Experiment in a resource group.": { - "$ref": "./examples/PatchExperiment.json" + "Update an Experiment in a resource group.": { + "$ref": "./examples/UpdateExperiment.json" } } } @@ -350,11 +350,11 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "Cancel a running Experiment.": { - "$ref": "./examples/CancelAExperiment.json" + "$ref": "./examples/CancelExperiment.json" } } } @@ -393,11 +393,11 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-examples": { "Start a Experiment.": { - "$ref": "./examples/StartAExperiment.json" + "$ref": "./examples/StartExperiment.json" } } } @@ -487,7 +487,7 @@ }, "x-ms-examples": { "Get the status of a Experiment.": { - "$ref": "./examples/GetAExperimentStatus.json" + "$ref": "./examples/GetExperimentStatus.json" } } } @@ -577,7 +577,7 @@ }, "x-ms-examples": { "Get experiment execution details": { - "$ref": "./examples/GetAExperimentExecutionDetails.json" + "$ref": "./examples/GetExperimentExecutionDetails.json" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json index 601fed25dd33..87b8f3200ab0 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json @@ -1,122 +1,122 @@ { - "swagger": "2.0", - "info": { - "title": "Chaos Management", - "description": "Azure Chaos Resource Provider REST API", - "version": "2023-09-01-preview" - }, - "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" + "swagger": "2.0", + "info": { + "title": "Chaos Management", + "description": "Azure Chaos Resource Provider REST API", + "version": "2023-09-01-preview" + }, + "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}/operationsStatuses/{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": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name of operation." + }, + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Operation status.", + "schema": { + "$ref": "#/definitions/OperationStatus" } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/operationsStatuses/{asyncOperationId}": { - "get": { - "x-ms-examples": { - "Get specific operation status": { - "$ref": "./examples/GetAnOperationStatus.json" - } - }, - "tags": [ - "asyncOperations" - ], - "operationId": "OperationStatuses_Get", - "description": "Get the status of a long running azure asynchronous operation.", - "parameters": [ - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The region name of operation." - }, - { - "name": "asyncOperationId", - "in": "path", - "required": true, - "type": "string", - "description": "The operation Id." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/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/v2/types.json#/definitions/ErrorResponse" - } - } - } + }, + "default": { + "description": "Error response returned if request was unsuccessful.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } + } } - }, - "definitions": { - "OperationStatus": { - "description": "The status of operation.", - "type": "object", - "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." - }, - "endTime": { - "type": "string", - "description": "The end time of the operation." - }, - "status": { - "type": "string", - "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } + } + } + }, + "definitions": { + "OperationStatus": { + "description": "The status of operation.", + "type": "object", + "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." + }, + "endTime": { + "type": "string", + "description": "The end time of the operation." + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "error": { + "type": "object", + "description": "The error detail of the operation if any.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } - }, - "parameters": {} -} \ No newline at end of file + } + } + }, + "parameters": {} +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json index fe27e8964ad8..b0608eb1cda3 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targetTypes.json @@ -116,7 +116,7 @@ }, "x-ms-examples": { "Get a Target Type for westus2 location": { - "$ref": "./examples/GetATargetType.json" + "$ref": "./examples/GetTargetType.json" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json index cfb87ad0fd27..74ad176d91e6 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/targets.json @@ -134,7 +134,7 @@ }, "x-ms-examples": { "Get a Target that extends a virtual machine resource.": { - "$ref": "./examples/GetATarget.json" + "$ref": "./examples/GetTarget.json" } } }, @@ -183,7 +183,7 @@ }, "x-ms-examples": { "Delete a Target that extends a virtual machine resource.": { - "$ref": "./examples/DeleteATarget.json" + "$ref": "./examples/DeleteTarget.json" } } }, @@ -241,7 +241,7 @@ }, "x-ms-examples": { "Create/update a Target that extends a virtual machine resource.": { - "$ref": "./examples/CreateOrUpdateATarget.json" + "$ref": "./examples/CreateUpdateTarget.json" } } } From 1574be2c470d7e90f47b079947d53d7323528728 Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Fri, 22 Sep 2023 12:03:41 -0700 Subject: [PATCH 12/12] Fixes from linting --- .../2023-09-01-preview/examples/CancelExperiment.json | 6 ++++-- .../examples/CreateUpdateExperiment.json | 5 ++++- .../2023-09-01-preview/examples/DeleteExperiment.json | 7 ++++++- .../2023-09-01-preview/examples/StartExperiment.json | 8 +++++--- .../2023-09-01-preview/examples/UpdateExperiment.json | 7 +++++-- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json index 2a38b7868c56..6b7ea8a239e9 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CancelExperiment.json @@ -7,8 +7,10 @@ }, "responses": { "202": { - "headers": {}, - "body": {} + "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=2023-09-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=2023-09-01-preview" + } } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json index 65dddee4e862..f6389cbf9d9f 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/CreateUpdateExperiment.json @@ -51,7 +51,10 @@ }, "responses": { "201": { - "headers": {}, + "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=2023-09-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=2023-09-01-preview" + }, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", "type": "Microsoft.Chaos/experiments", diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json index 4c8a3dc8b234..6b7ea8a239e9 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/DeleteExperiment.json @@ -6,6 +6,11 @@ "api-version": "2023-09-01-preview" }, "responses": { - "202": {} + "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=2023-09-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=2023-09-01-preview" + } + } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json index 7c1098bb3db4..6b7ea8a239e9 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/StartExperiment.json @@ -7,8 +7,10 @@ }, "responses": { "202": { - "headers": {}, - "body": {} + "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=2023-09-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=2023-09-01-preview" + } } } -} \ No newline at end of file +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json index 7646ff3785fc..4db4ae4ba7ba 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/examples/UpdateExperiment.json @@ -14,8 +14,11 @@ } }, "responses": { - "200": { - "headers": {}, + "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=2023-09-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=2023-09-01-preview" + }, "body": { "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment", "type": "Microsoft.Chaos/experiments",