-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chaos Microsoft.Chaos 2023-11-01 stable (#26255)
* Adds base for updating Microsoft.Chaos from version preview/2023-09-01-preview to version 2023-11-01 * Updates readme * Updates API version in new specs and examples * Updates for experiments for GA (#26179) * Add experiment schema enforced quota limits (#26243) * Add experiment schema enforced quota limits --------- Co-authored-by: Connor Blomquist <[email protected]> * Chaos consolidate execution details (#26020) * feat: consolidate execution details api * chore: fix typos and add expand * Chaos swap expand to post (#26271) * chore: remove expand and add execution details to post endpoint * chore: fix comments on PR * update wording on description (#26330) Co-authored-by: James Duan <[email protected]> * update details to getExecutionDetails (#26332) Co-authored-by: James Duan <[email protected]> * resolve merge conflict with main (#26393) Co-authored-by: James Duan <[email protected]> * Jduan/fix merge 2 (#26400) * Revert "resolve merge conflict with main (#26393)" This reverts commit 3d7e4a1. * Merge remote-tracking branch 'origin/main' into jduan/fix-merge-2 # Conflicts: # specification/chaos/resource-manager/readme.md --------- Co-authored-by: James Duan <[email protected]> * Revert "Jduan/fix merge 2 (#26400)" This reverts commit be8c336. * Revert "resolve merge conflict with main (#26393)" This reverts commit 3d7e4a1. * Merge remote-tracking branch 'origin/main' into jduan/fix-merge-3 # Conflicts: # specification/chaos/resource-manager/readme.md * reset readme back to main (#26408) Co-authored-by: James Duan <[email protected]> --------- Co-authored-by: Brent Rusinow <[email protected]> Co-authored-by: Connor Blomquist <[email protected]> Co-authored-by: Connor Blomquist <[email protected]> Co-authored-by: RenzoPrettoMS <[email protected]> Co-authored-by: James Duan <[email protected]>
- Loading branch information
1 parent
93c5edf
commit a1bec27
Showing
38 changed files
with
3,977 additions
and
1 deletion.
There are no files selected for viewing
262 changes: 262 additions & 0 deletions
262
specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/capabilities.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,262 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Chaos Management", | ||
"description": "Azure Chaos Resource Provider REST API", | ||
"version": "2023-11-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "Impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities": { | ||
"get": { | ||
"description": "Get a list of Capability resources that extend a Target resource..", | ||
"tags": [ | ||
"Capabilities" | ||
], | ||
"operationId": "Capabilities_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "./types/common.json#/parameters/apiVersion" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/subscriptionId" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/resourceGroupName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentProviderNamespace" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceType" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/targetName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/continuationToken" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "List of Capability resources returned if request was successful.", | ||
"schema": { | ||
"$ref": "./types/capabilities.json#/definitions/capabilityListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response returned if request was unsuccessful.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/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/GetCapability.json" | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"description": "Delete a Capability that extends a Target resource.", | ||
"tags": [ | ||
"Capabilities" | ||
], | ||
"operationId": "Capabilities_Delete", | ||
"parameters": [ | ||
{ | ||
"$ref": "./types/common.json#/parameters/apiVersion" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/subscriptionId" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/resourceGroupName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentProviderNamespace" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceType" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/targetName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/capabilityName" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Capability resource deletion was successful." | ||
}, | ||
"204": { | ||
"description": "Capability resource deletion was successful." | ||
}, | ||
"default": { | ||
"description": "Error response returned if request was unsuccessful.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"Delete a Capability that extends a virtual machine Target resource.": { | ||
"$ref": "./examples/DeleteCapability.json" | ||
} | ||
} | ||
}, | ||
"put": { | ||
"description": "Create or update a Capability resource that extends a Target resource.", | ||
"tags": [ | ||
"Capabilities" | ||
], | ||
"operationId": "Capabilities_CreateOrUpdate", | ||
"parameters": [ | ||
{ | ||
"$ref": "./types/common.json#/parameters/apiVersion" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/subscriptionId" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/resourceGroupName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentProviderNamespace" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceType" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/parentResourceName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/targetName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/capabilityName" | ||
}, | ||
{ | ||
"name": "capability", | ||
"description": "Capability resource to be created or updated.", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "./types/capabilities.json#/definitions/capability" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Capability resource returned if request was successful.", | ||
"schema": { | ||
"$ref": "./types/capabilities.json#/definitions/capability" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response returned if request was unsuccessful.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"Create/update a Capability that extends a virtual machine Target resource.": { | ||
"$ref": "./examples/CreateUpdateCapability.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
131 changes: 131 additions & 0 deletions
131
specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/capabilityTypes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Chaos Management", | ||
"description": "Azure Chaos Resource Provider REST API", | ||
"version": "2023-11-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "Impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes": { | ||
"get": { | ||
"description": "Get a list of Capability Type resources for given Target Type and location.", | ||
"tags": [ | ||
"CapabilityTypes" | ||
], | ||
"operationId": "CapabilityTypes_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "./types/common.json#/parameters/apiVersion" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/subscriptionId" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/locationName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/targetTypeName" | ||
}, | ||
{ | ||
"$ref": "./types/common.json#/parameters/continuationToken" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "List of Capability Type resources returned if request was successful.", | ||
"schema": { | ||
"$ref": "./types/capabilityTypes.json#/definitions/capabilityTypeListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response returned if request was unsuccessful.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/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/GetCapabilityType.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.