From abf6236631a6619ff03b770d7d72964fe82cbcba Mon Sep 17 00:00:00 2001 From: Vishnu Priya Ananthu Sundaram Date: Wed, 6 Nov 2019 00:35:16 -0800 Subject: [PATCH] Azure stack deployment resource provider admin open api specification (#7561) --- .../preview/2019-01-01/ActionPlan.json | 204 +++++++ .../2019-01-01/ActionPlanOperation.json | 233 ++++++++ .../preview/2019-01-01/Deployment.json | 212 +++++++ .../preview/2019-01-01/FileContainer.json | 322 ++++++++++ .../preview/2019-01-01/ProductDeployment.json | 565 ++++++++++++++++++ .../preview/2019-01-01/ProductPackage.json | 270 +++++++++ .../preview/2019-01-01/ProductSecret.json | 513 ++++++++++++++++ .../2019-01-01/examples/ActionPlan/Get.json | 28 + .../2019-01-01/examples/ActionPlan/List.json | 32 + .../examples/ActionPlanOperations/Get.json | 84 +++ .../examples/ActionPlanOperations/List.json | 447 ++++++++++++++ .../examples/FileContainer/Create.json | 29 + .../examples/FileContainer/Delete.json | 12 + .../examples/FileContainer/Get.json | 24 + .../examples/FileContainer/List.json | 26 + .../2019-01-01/examples/Operations/List.json | 159 +++++ .../examples/ProductDeployment/Bootstrap.json | 15 + .../examples/ProductDeployment/Deploy.json | 15 + .../examples/ProductDeployment/Get.json | 23 + .../examples/ProductDeployment/List.json | 43 ++ .../examples/ProductDeployment/Lock.json | 11 + .../examples/ProductDeployment/Remove.json | 12 + .../ProductDeployment/RotateSecrets.json | 12 + .../examples/ProductDeployment/Unlock.json | 14 + .../examples/ProductPackage/Create.json | 29 + .../examples/ProductPackage/Delete.json | 12 + .../examples/ProductPackage/Get.json | 24 + .../examples/ProductPackage/List.json | 26 + .../examples/ProductSecret/Get.Json | 34 ++ .../examples/ProductSecret/Import.json | 24 + .../examples/ProductSecret/List.json | 92 +++ .../examples/ProductSecret/Validate.json | 25 + .../resource-manager/deployment/readme.md | 87 +++ 33 files changed, 3658 insertions(+) create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/Get.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/Get.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Create.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Delete.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Get.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/Operations/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Bootstrap.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Deploy.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Get.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Lock.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Remove.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/RotateSecrets.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Unlock.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Create.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Delete.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Get.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Get.Json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Import.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/List.json create mode 100644 specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Validate.json create mode 100644 specification/azsadmin/resource-manager/deployment/readme.md diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json new file mode 100644 index 000000000000..0f24730ed82f --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json @@ -0,0 +1,204 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans": { + "get": { + "x-ms-examples": { + "Gets the list of action plans": { + "$ref": "./examples/ActionPlan/List.json" + } + }, + "description": "Gets the list of action plans", + "tags": [ + "ActionPlans" + ], + "operationId": "ActionPlans_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActionPlanList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans/{planId}": { + "get": { + "x-ms-examples": { + "Gets the specified action plan": { + "$ref": "./examples/ActionPlan/Get.json" + } + }, + "description": "Gets the specified action plan", + "tags": [ + "ActionPlans" + ], + "operationId": "ActionPlans_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActionPlanResourceEntity" + } + }, + "404": { + "description": "NOT FOUND" + } + } + } + } + }, + "definitions": { + "ActionPlanList": { + "description": "List of action plans", + "properties": { + "value": { + "description": "Array of action plans.", + "type": "array", + "items": { + "$ref": "#/definitions/ActionPlanResourceEntity" + } + }, + "nextLink": { + "type": "string", + "description": "Continuation token" + } + } + }, + "ActionPlanResourceEntity": { + "type": "object", + "description": "Action Plan Resource Entity", + "properties": { + "properties": { + "description": "Action Plan Properties", + "$ref": "#/definitions/ActionPlanAdminProperties", + "x-ms-client-flatten": true + }, + "eTag": { + "description": "Entity tag of the resource", + "type": "string" + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "ActionPlanAdminProperties": { + "type": "object", + "description": "Action Plan Properties", + "properties": { + "actionPlanUri": { + "description": "Action plan uri", + "type": "string" + }, + "resourceGroupName": { + "description": "The target resource group name", + "type": "string" + }, + "subscriptionId": { + "description": "The target subscription identifier", + "type": "string" + }, + "parameters": { + "description": "The deployment parameters in JToken format", + "type": "object", + "$ref": "Deployment.json#/definitions/JTokenString" + }, + "startTime": { + "description": "The deployment start time", + "type": "string", + "format": "date-time" + }, + "endTime": { + "description": "The deployment end time", + "type": "string", + "format": "date-time" + }, + "error": { + "description": "Error Information", + "$ref": "Deployment.json#/definitions/ExtendedErrorInfo" + }, + "provisioningState": { + "description": "The provisioning state", + "type": "string" + }, + "actionPlanInstanceId": { + "description": "Action plan instance identifier", + "type": "string" + }, + "blobContainerName": { + "description": "Blob container name storing the deployment data", + "type": "string" + } + } + } + }, + "parameters": { + "PlanIdParameter": { + "description": "Identifier of the action plan.", + "name": "planId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json new file mode 100644 index 000000000000..9de1d44fcdc7 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json @@ -0,0 +1,233 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans/{planId}/operations": { + "get": { + "x-ms-examples": { + "Lists the action plan operations": { + "$ref": "./examples/ActionPlanOperations/List.json" + } + }, + "description": "Lists the action plan operations", + "tags": [ + "ActionPlanOperations" + ], + "operationId": "ActionPlanOperations_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActionPlanOperationsList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans/{planId}/operations/{operationId}": { + "get": { + "x-ms-examples": { + "Gets the specified action plan operation": { + "$ref": "./examples/ActionPlanOperations/Get.json" + } + }, + "description": "Gets the specified action plan operation", + "tags": [ + "ActionPlanOperations" + ], + "operationId": "ActionPlanOperations_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/OperationIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ActionPlanOperationResourceEntity" + } + }, + "404": { + "description": "NOT FOUND" + } + } + } + } + }, + "definitions": { + "ActionPlanOperationsList": { + "description": "List of action plan operations", + "properties": { + "value": { + "description": "Array of action plan operations.", + "type": "array", + "items": { + "$ref": "#/definitions/ActionPlanOperationResourceEntity" + } + }, + "nextLink": { + "type": "string", + "description": "Continuation token" + } + } + }, + "ActionPlanOperationResourceEntity": { + "type": "object", + "description": "Action Plan Operation Resource Entity", + "properties": { + "properties": { + "description": "Action Plan Properties", + "$ref": "#/definitions/ActionPlanOperationAdminProperties", + "x-ms-client-flatten": true + }, + "eTag": { + "description": "Entity tag of the resource", + "type": "string" + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "ActionPlanOperationAdminProperties": { + "description": "Action Plan Operation Properties", + "type": "object", + "properties": { + "title": { + "description": "The operation title", + "type": "string" + }, + "description": { + "description": "The operation description", + "type": "string" + }, + "type": { + "description": "The action plan operation type", + "$ref": "#/definitions/ActionType" + }, + "subscriptionId": { + "description": "The target subscription identifier", + "type": "string" + }, + "parameters": { + "description": "The deployment parameters in JToken format", + "type": "object" + }, + "startTime": { + "description": "The deployment start time", + "type": "string", + "format": "date-time" + }, + "endTime": { + "description": "The deployment end time", + "type": "string", + "format": "date-time" + }, + "outputs": { + "description": "The action plan operation outputs in JToken format", + "type": "object" + }, + "error": { + "description": "Error Information", + "$ref": "Deployment.json#/definitions/ExtendedErrorInfo" + }, + "provisioningState": { + "description": "The provisioning state", + "type": "string" + }, + "actionPlanInstanceId": { + "description": "Action plan instance identifier", + "type": "string" + }, + "actionPlanOperationId": { + "description": "Action plan operation identifier", + "type": "string" + }, + "blobContainerName": { + "description": "Blob container name storing the deployment data", + "type": "string" + } + } + }, + "ActionType": { + "description": "Action plan operation type", + "type": "string" + } + }, + "parameters": { + "PlanIdParameter": { + "description": "Identifier of the action plan.", + "name": "planId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "OperationIdParameter": { + "description": "Identifier of the action plan operation.", + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json new file mode 100644 index 000000000000..8d0057c40a0b --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json @@ -0,0 +1,212 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.Deployment.Admin/operations": { + "get": { + "x-ms-examples": { + "Returns the list of supported REST operations.": { + "$ref": "./examples/Operations/List.json" + } + }, + "description": "Returns the list of supported REST operations.", + "tags": [ + "Deployment" + ], + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Resource": { + "description": "Object model of azure resource manager base.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "description": "ID of the resource.", + "type": "string" + }, + "name": { + "readOnly": true, + "description": "Name of the resource.", + "type": "string" + }, + "type": { + "readOnly": true, + "description": "Type of Resource.", + "type": "string" + }, + "location": { + "description": "Location of the resource.", + "type": "string" + } + }, + "x-ms-azure-resource": true + }, + "ExtendedErrorInfo": { + "description": "Error information", + "type": "object", + "properties": { + "code": { + "description": "Error Code", + "type": "string" + }, + "message": { + "description": "Error Message", + "type": "string" + }, + "details": { + "description": "Error message details", + "$ref": "#/definitions/ExtendedErrorInfo" + } + } + }, + "JTokenString": { + "description": "Error information", + "type": "object", + "properties": { + "value": { + "description": "Parameters as JToken string", + "type": "string" + } + } + }, + "Operation": { + "description": "Describes the supported REST operation.", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object. This name should match the name that appears in RBAC or the event service.", + "type": "string" + }, + "display": { + "description": "Contains the localized display information for this particular operation or action.", + "$ref": "#/definitions/Display" + }, + "origin": { + "description": "Origin for the operation. Eg. User, System", + "type": "string" + } + } + }, + "Display": { + "description": "Contains the localized display information for this particular operation or action.", + "properties": { + "provider": { + "description": "The localized, friendly version of the resource provider name. The provider name is expected to include the name of the publisher or company responsible. The provider name format should use title case and begin with \"Microsoft\" for first-party services. For example, the provider name may be\"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"", + "type": "string" + }, + "resource": { + "description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.", + "type": "string" + }, + "operation": { + "description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.", + "type": "string" + }, + "description": { + "description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.", + "type": "string" + } + } + }, + "OperationList": { + "description": "List of Operations", + "properties": { + "value": { + "description": "Array of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URI to the next page of operations.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Client API Version.", + "required": true, + "type": "string", + "default": "2019-01-01" + }, + "LocationParameter": { + "description": "Location of the resource.", + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "default": "2019-01-01" + }, + "ProductIdParameter": { + "name": "productId", + "in": "path", + "description": "The product identifier.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json new file mode 100644 index 000000000000..282c10ba7140 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json @@ -0,0 +1,322 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/fileContainers": { + "get": { + "x-ms-examples": { + "Return file containers list.": { + "$ref": "./examples/FileContainer/List.json" + } + }, + "description": "Returns an array of file containers.", + "tags": [ + "FileContainers" + ], + "operationId": "FileContainers_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FileContainersList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/fileContainers/{fileContainerId}": { + "get": { + "x-ms-examples": { + "Return the file container details.": { + "$ref": "./examples/FileContainer/Get.json" + } + }, + "description": "Retrieves the specific file container details.", + "tags": [ + "FileContainers" + ], + "operationId": "FileContainers_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/FileContainerIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FileContainer" + } + }, + "404": { + "description": "Not Found" + } + } + }, + "put": { + "x-ms-examples": { + "Creates a new file container.": { + "$ref": "./examples/FileContainer/Create.json" + } + }, + "description": "Creates a new file container.", + "tags": [ + "FileContainers" + ], + "operationId": "FileContainers_Create", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/FileContainerParameters" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FileContainerIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FileContainer" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "x-ms-examples": { + "Deletes specified file container.": { + "$ref": "examples/FileContainer/Delete.json" + } + }, + "tags": [ + "FileContainers" + ], + "summary": "Deletes specified file container.", + "description": "Delete an existing file container.", + "operationId": "FileContainers_Delete", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/FileContainerIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "404": { + "description": "Not found" + } + } + } + } + }, + "definitions": { + "FileContainer": { + "type": "object", + "description": "File container entity.", + "properties": { + "properties": { + "description": "File Container properties", + "$ref": "#/definitions/FileContainerAdminProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "FileContainerAdminProperties": { + "description": "File Container Properties.", + "type": "object", + "properties": { + "fileContainerId": { + "description": "File container resource identifier containing product manifest.", + "$ref": "#/definitions/FileContainerId" + }, + "sourceUri": { + "description": "The remote file location. This is write-only property, DRP never returns it back to a user.", + "$ref": "#/definitions/SourceUri" + }, + "uri": { + "description": "The file or container Uri. This is read-only property; a user cannot set it.", + "type": "string" + }, + "postCopyAction": { + "description": "Specifies the file post copy action.", + "$ref": "#/definitions/PostCopyAction" + }, + "error": { + "description": "The error response message.", + "$ref": "#/definitions/ErrorInfo" + }, + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string" + } + } + }, + "FileContainersList": { + "description": "List of file containers.", + "properties": { + "value": { + "description": "List of file containers.", + "type": "array", + "items": { + "$ref": "#/definitions/FileContainer" + } + }, + "nextLink": { + "description": "Continuation token.", + "type": "string" + } + } + }, + "ErrorInfo": { + "description": "Extended Error Information.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "The detailed error messages.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorInfo" + } + } + } + }, + "PostCopyAction": { + "description": "Specifies the file post copy action.", + "type": "string", + "enum": [ + "None", + "Unzip" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "PostCopyAction" + } + }, + "SourceUri": { + "description": "Specifies The remote file location.", + "type": "string" + }, + "FileContainerId": { + "description": "File container resource identifier containing product manifest.", + "type": "string" + }, + "FileContainerParameters": { + "description": "Parameters for creating a new file container.", + "type": "object", + "properties": { + "postCopyAction": { + "description": "Specifies the file post copy action.", + "$ref": "#/definitions/PostCopyAction" + }, + "sourceUri": { + "description": "Specifies The remote file location.", + "$ref": "#/definitions/SourceUri" + } + } + } + }, + "parameters": { + "FileContainerIdParameter": { + "description": "The file container identifier.", + "name": "fileContainerId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "FileContainerParameters": { + "description": "The parameters required to create a new file container.", + "name": "fileContainerParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FileContainerParameters" + }, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json new file mode 100644 index 000000000000..7402634f6765 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json @@ -0,0 +1,565 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments": { + "get": { + "x-ms-examples": { + "List the product deployments": { + "$ref": "./examples/ProductDeployment/List.json" + } + }, + "description": "Invokes bootstrap action on the product deployment", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "$ref": "#/definitions/ProductDeploymentsList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}": { + "get": { + "x-ms-examples": { + "Gets the specified product deployment": { + "$ref": "./examples/ProductDeployment/Get.json" + } + }, + "description": "Invokes bootstrap action on the product deployment", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "$ref": "#/definitions/ProductDeploymentResourceEntity" + } + }, + "404": { + "description": "NOT FOUND" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/bootstrap": { + "post": { + "x-ms-examples": { + "Invokes bootstrap action on the product deployment": { + "$ref": "./examples/ProductDeployment/Bootstrap.json" + } + }, + "description": "Invokes bootstrap action on the product deployment", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_BootStrap", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "ProductDeployment.json#/parameters/BootstrapActionParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "202": { + "description": "ACCEPTED" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/deploy": { + "post": { + "x-ms-examples": { + "Invokes deploy action on the product": { + "$ref": "./examples/ProductDeployment/Deploy.json" + } + }, + "description": "Invokes deploy action on the product", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_Deploy", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "ProductDeployment.json#/parameters/DeployActionParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "202": { + "description": "ACCEPTED" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/remove": { + "post": { + "x-ms-examples": { + "Invokes remove action on the product deployment": { + "$ref": "./examples/ProductDeployment/Remove.json" + } + }, + "description": "Invokes remove action on the product deployment", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_Remove", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "202": { + "description": "ACCEPTED" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/rotateSecrets": { + "post": { + "x-ms-examples": { + "Invokes rotate secrets action on the product deployment": { + "$ref": "./examples/ProductDeployment/RotateSecrets.json" + } + }, + "description": "Invokes rotate secrets action on the product deployment", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_RotateSecrets", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "ACCEPTED" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/unlock": { + "post": { + "x-ms-examples": { + "Unlocks the product subscription": { + "$ref": "./examples/ProductDeployment/Unlock.json" + } + }, + "description": "Unlocks the product subscription", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_Unlock", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "ProductDeployment.json#/parameters/UnlockActionParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/{productId}/lock": { + "post": { + "x-ms-examples": { + "locks the product subscription": { + "$ref": "./examples/ProductDeployment/Lock.json" + } + }, + "description": "locks the product subscription", + "tags": [ + "ProductDeployments" + ], + "operationId": "ProductDeployments_Lock", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + } + }, + "definitions": { + "ProductDeploymentsList": { + "description": "List of Product Deployments.", + "properties": { + "value": { + "description": "List of Product Deployments.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductDeploymentResourceEntity" + } + }, + "nextLink": { + "description": "URI to the next page.", + "type": "string" + } + } + }, + "ProductDeploymentResourceEntity": { + "type": "object", + "description": "Product deployment entity", + "properties": { + "properties": { + "description": "Product deployment resource properties", + "$ref": "#/definitions/ProductDeploymentsProperties", + "x-ms-client-flatten": true + }, + "eTag": { + "description": "entity tag", + "type": "string" + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "ProductDeploymentsProperties": { + "type": "object", + "description": "Product deployment resource properties", + "properties": { + "status": { + "description": "Status of the product deployment.", + "$ref": "#/definitions/DeploymentStatus" + }, + "subscriptionId": { + "description": "The product subscription identifier", + "type": "string" + }, + "deployment": { + "description": "The current deployment information", + "$ref": "#/definitions/DeploymentInfo" + }, + "lastSuccessfulDeployment": { + "description": "The last successful deployment information", + "$ref": "#/definitions/DeploymentInfo" + }, + "secretRotation": { + "description": "Resource provider secret rotation information", + "$ref": "#/definitions/SecretRotationInfo" + }, + "internalState": { + "description": "Product deployment resource internal state", + "$ref": "#/definitions/ProductDeploymentsInternalState" + }, + "error": { + "description": "Error Information", + "$ref": "Deployment.json#/definitions/ExtendedErrorInfo" + }, + "externalAccess": { + "description": "Resource provider secret rotation information", + "$ref": "#/definitions/ExternalAccessInfo" + }, + "provisioningState": { + "description": "The provisioning state", + "type": "string" + }, + "productId": { + "description": "The product identifier", + "type": "string" + } + } + }, + "DeploymentStatus": { + "description": "Status of an operation.", + "type": "string", + "enum": [ + "None", + "Bootstrapping", + "BootstrapSucceeded", + "BootstrapFailed", + "Deploying", + "DeploymentSucceeded", + "DeploymentFailed", + "Updating", + "UpdateSucceeded", + "UpdateFailed", + "Removing", + "RemoveFailed", + "SecretRotationInProgress", + "SecretRotationSucceeded", + "SecretRotationFailed", + "Migrated" + ], + "x-ms-enum": { + "name": "DeploymentStatus", + "modelAsString": true + } + }, + "DeploymentInfo": { + "type": "object", + "description": "Resource provider deployment information", + "properties": { + "version": { + "description": "The product version", + "type": "string" + }, + "parameters": { + "description": "The latest deployment parameters as JToken", + "type": "string" + }, + "actionPlanInstanceResourceId": { + "description": "The identifier of the latest action plan instance resource.", + "type": "string" + }, + "eTag": { + "description": "entity tag", + "type": "string" + } + } + }, + "SecretRotationInfo": { + "type": "object", + "description": "Resource provider deployment information", + "properties": { + "secretRotationPlanInstanceResourceId": { + "description": "The identifier of the latest secret rotation plan instance resource.", + "type": "string" + } + } + }, + "ExternalAccessInfo": { + "type": "object", + "description": "Resource provider deployment information", + "properties": { + "principalId": { + "description": "The object identifier of the user, group or service principal that have access to resource provider subscription.", + "type": "string" + }, + "expirationTime": { + "description": "The deployment start time", + "type": "string", + "format": "date-time" + } + } + }, + "ProductDeploymentsInternalState": { + "type": "object", + "description": "Resource type internal state", + "properties": { + "jobId": { + "description": "The latest deployment job identifier", + "type": "string" + }, + "intermediateVaultId": { + "description": "The intermediate vault resource identifier", + "type": "string" + }, + "intermediateVaultUri": { + "description": "The intermediate vault Uri.", + "type": "string" + }, + "externalAccessRoleAssignmentId": { + "description": "The current external access role assignment identifier", + "type": "string" + } + } + }, + "DeployActionParameters": { + "description": "Parameters for deploy action", + "type": "object", + "properties": { + "version": { + "description": "Generic Version object", + "type": "string" + }, + "parameters": { + "description": "Deployment parameters, value in JToken", + "type": "string" + } + } + }, + "BootStrapActionParameters": { + "description": "Parameters for bootstrap action", + "type": "object", + "properties": { + "version": { + "description": "Generic Version object", + "type": "string" + } + } + }, + "UnlockActionParameters": { + "description": "Parameters for bootstrap action", + "type": "object", + "properties": { + "duration": { + "description": "Duration in TimeSpan format(Define which ISO format)", + "type": "string" + } + } + } + }, + "parameters": { + "ResourceGroupParameter": { + "description": "The resource group the resource is located under.", + "name": "resourceGroup", + "in": "path", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + "BootstrapActionParameter": { + "description": "Represents bootstrap action parameter", + "name": "bootstrapActionParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BootStrapActionParameters" + }, + "x-ms-parameter-location": "method" + }, + "UnlockActionParameter": { + "description": "Represents bootstrap action parameter", + "name": "unlockActionParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UnlockActionParameters" + }, + "x-ms-parameter-location": "method" + }, + "DeployActionParameter": { + "description": "Represents bootstrap action parameter", + "name": "deployActionParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeployActionParameters" + }, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json new file mode 100644 index 000000000000..472aecdd40a0 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json @@ -0,0 +1,270 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages": { + "get": { + "x-ms-examples": { + "Return product packages list.": { + "$ref": "./examples/ProductPackage/List.json" + } + }, + "description": "Returns an array of product packages.", + "tags": [ + "ProductPackages" + ], + "operationId": "ProductPackages_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductPackagesList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{productId}": { + "get": { + "x-ms-examples": { + "Return the product package details.": { + "$ref": "./examples/ProductPackage/Get.json" + } + }, + "description": "Retrieves the specific product package details.", + "tags": [ + "ProductPackages" + ], + "operationId": "ProductPackages_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductPackage" + } + }, + "404": { + "description": "Not Found" + } + } + }, + "put": { + "x-ms-examples": { + "Creates a new product package.": { + "$ref": "./examples/ProductPackage/Create.json" + } + }, + "description": "Creates a new product package.", + "tags": [ + "ProductPackages" + ], + "operationId": "ProductPackages_Create", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductPackage" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "x-ms-examples": { + "Removes a product package.": { + "$ref": "./examples/ProductPackage/Delete.json" + } + }, + "description": "Deletes a product package.", + "tags": [ + "ProductPackages" + ], + "operationId": "ProductPackages_Delete", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "404": { + "description": "Not found" + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ProductPackage": { + "description": "Properties for a product package.", + "type": "object", + "properties": { + "properties": { + "description": "Properties of a product package.", + "$ref": "#/definitions/ProductPackageProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "ProductPackagesList": { + "description": "List of product packages.", + "properties": { + "value": { + "description": "List of product packages.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductPackage" + } + }, + "nextLink": { + "description": "Continuation Token.", + "type": "string" + } + } + }, + "ProductPackageProperties": { + "type": "object", + "description": "Properties for Product package.", + "properties": { + "fileContainerId": { + "description": "File container resource identifier containing product manifest.", + "$ref": "#/definitions/FileContainerId" + }, + "isDeployable": { + "description": "Value indicating whether the package is applicable for deployment.", + "type": "boolean" + }, + "isUpdatable": { + "description": "Value indicating whether the package is applicable for update.", + "type": "boolean" + }, + "productDeploymentId": { + "description": "The identifier of product deployment; null if this version is not installed.", + "type": "string" + }, + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string" + } + } + }, + "FileContainerId": { + "description": "File container resource identifier containing product manifest.", + "type": "string" + }, + "ProductProperties": { + "description": "Additional properties of the product", + "type": "object", + "properties": { + "version": { + "description": "The version of the product", + "type": "string" + } + } + }, + "ProductLink": { + "description": "Link to a product.", + "type": "object", + "properties": { + "displayName": { + "description": "Displayed name of product.", + "type": "string" + }, + "uri": { + "description": "URI to product.", + "type": "string" + } + } + }, + "ProductLinks": { + "description": "List of product links.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductLink" + } + } + }, + "parameters": {}, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json new file mode 100644 index 000000000000..3d2c2693a1d9 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json @@ -0,0 +1,513 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01", + "title": "DeploymentAdminClient", + "description": "Deployment Admin Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{productId}/secrets": { + "get": { + "x-ms-examples": { + "Return product secrets list.": { + "$ref": "./examples/ProductSecret/List.json" + } + }, + "description": "Returns an array of product secrets.", + "tags": [ + "ProductSecrets" + ], + "operationId": "ProductSecrets_List", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductSecretsList" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productSecrets/{productId}/secrets/{secretName}": { + "get": { + "x-ms-examples": { + "Return the product package details.": { + "$ref": "./examples/ProductSecret/Get.Json" + } + }, + "description": "Retrieves the specific product secret details.", + "tags": [ + "ProductSecrets" + ], + "operationId": "ProductSecrets_Get", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SecretNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProductSecret" + } + }, + "404": { + "description": "Not Found" + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productSecrets/{productId}/secrets/{secretName}/import": { + "post": { + "x-ms-examples": { + "Imports a product secret.": { + "$ref": "./examples/ProductSecret/Import.json" + } + }, + "description": "Imports a product secret.", + "tags": [ + "ProductSecrets" + ], + "operationId": "ProductSecrets_Import", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "#/parameters/SecretNameParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SecretParameters" + } + ], + "responses": { + "200": { + "description": "Accepted" + }, + "404": { + "description": "Not Found" + } + }, + "x-ms-long-running-operation": true, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productSecrets/{productId}/secrets/{secretName}/validate": { + "post": { + "x-ms-examples": { + "Validates a product secret.": { + "$ref": "./examples/ProductSecret/Validate.json" + } + }, + "description": "Validates a product secret.", + "tags": [ + "ProductSecrets" + ], + "operationId": "ProductSecrets_Validate", + "parameters": [ + { + "$ref": "Deployment.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "Deployment.json#/parameters/ProductIdParameter" + }, + { + "$ref": "#/parameters/SecretNameParameter" + }, + { + "$ref": "Deployment.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SecretParameters" + } + ], + "responses": { + "200": { + "description": "Accepted" + }, + "404": { + "description": "Not Found" + } + }, + "x-ms-long-running-operation": true, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "definitions": { + "ProductSecret": { + "description": "Properties for a product secret.", + "type": "object", + "properties": { + "properties": { + "description": "Properties of a product secret.", + "$ref": "#/definitions/ProductSecretProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "Deployment.json#/definitions/Resource" + } + ] + }, + "ProductSecretsList": { + "description": "List of product secrets.", + "properties": { + "value": { + "description": "List of product secrets.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductSecret" + } + }, + "nextLink": { + "description": "URI to the next page.", + "type": "string" + } + } + }, + "ProductSecretProperties": { + "type": "object", + "description": "Properties of product secret.", + "properties": { + "secretState": { + "description": "The secret state.", + "$ref": "#/definitions/SecretState" + }, + "secretDescriptor": { + "description": "The secret type-specific descriptor.", + "$ref": "#/definitions/SecretDescriptor" + }, + "expiresAfter": { + "description": "The expiration period of the secret (in ISO8601 format).", + "type": "string" + }, + "description": { + "description": "The secret description.", + "type": "string" + }, + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string" + }, + "secretKind": { + "description": "Specifies the secret kind.", + "type": "string", + "enum": [ + "AdHoc", + "Certificate", + "Password", + "StorageAccount", + "SymmetricKey" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "SecretKind" + } + } + } + }, + "SecretDescriptor": { + "description": "The secret type-specific descriptor.", + "type": "object", + "properties": { + "keyLength": { + "description": "The key length.", + "type": "integer" + }, + "alternativeDnsNames": { + "description": "Alternative DNS Names.", + "type": "array", + "items": { + "$ref": "#/definitions/AlternativeDnsNames" + } + }, + "secondaryKeyIsActive": { + "description": "A value indicating whether the secondary or primary storage account key is active as a secret.", + "type": "boolean" + }, + "rotationStatus": { + "description": "The storage account key secret rotation status.", + "type": "string", + "enum": [ + "None", + "PlantNewSak", + "RotateInactiveSak", + "Complete" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "RotationStatus" + } + }, + "passwordLength": { + "description": "The minimum password length is 8 characters, and the maximum password length is 128 characters.", + "type": "integer" + }, + "allowedCharacters": { + "description": "The allowed characters in the password", + "type": "string" + }, + "passwordValidationRegex": { + "description": "Password validation regular expression.", + "type": "string" + }, + "subject": { + "description": "Certificate's subject", + "type": "string" + }, + "alternativeIpAddresses": { + "description": "The list of alternative IP addresses.", + "type": "array", + "items": { + "$ref": "#/definitions/AlternativeIpAddresses" + } + } + } + }, + "AlternativeDnsNames": { + "description": "List of alternative DNS names.", + "type": "string" + }, + "AlternativeIpAddresses": { + "description": "List of alternative IP Addresses.", + "type": "string" + }, + "SecretState": { + "description": "Represents the secret state.", + "type": "object", + "properties": { + "status": { + "description": "The secret status.", + "$ref": "#/definitions/SecretStatus" + }, + "rotationStatus": { + "description": "the secret rotation status.", + "$ref": "#/definitions/SecretRotationStatus" + }, + "expirationDate": { + "description": "The secret expiration date.", + "type": "string", + "format": "date-time" + } + } + }, + "SecretStatus": { + "description": "Specifies the secret status.", + "type": "string", + "enum": [ + "NotUploaded", + "Uploaded", + "Deployed" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "SecretStatus" + } + }, + "SecretRotationStatus": { + "description": "Specifies the secret rotation status.", + "type": "string", + "enum": [ + "None", + "InProgress", + "Complete" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "SecretRotationStatus" + } + }, + "SecretValue": { + "description": "The secret value in a secure string format.", + "type": "string" + }, + "PfxFileName": { + "description": "The pfx certificate file location.", + "type": "string" + }, + "PfxPassword": { + "description": "The pfx certificate file password as a secure string.", + "type": "string" + }, + "SymmetricKey": { + "description": "The symmetric key as a secure string.", + "type": "string" + }, + "Password": { + "description": "The password as a secure string.", + "type": "string" + }, + "SecretParameters": { + "description": "Parameters required for creating/updating a product secret.", + "type": "object", + "properties": { + "secretValue": { + "description": "The secret value in a secure string format.", + "$ref": "#/definitions/SecretValue" + }, + "pfxFileName": { + "description": "The pfx certificate file location.", + "$ref": "#/definitions/PfxFileName" + }, + "pfxPassword": { + "description": "The pfx certificate file password.", + "$ref": "#/definitions/PfxPassword" + }, + "symmetricKey": { + "description": "The symmetric key.", + "$ref": "#/definitions/SymmetricKey" + }, + "password": { + "description": "The pfx certificate file password.", + "$ref": "#/definitions/Password" + } + } + } + }, + "parameters": { + "SecretNameParameter": { + "description": "The secret name.", + "name": "secretName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SecretParameters": { + "description": "The parameters required for creating/updating a product secret.", + "name": "secretParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecretParameters" + }, + "x-ms-parameter-location": "method" + }, + "SecretValueParameter": { + "description": "The secret value in a secure string format.", + "name": "secretValue", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecretValue" + }, + "x-ms-parameter-location": "method" + }, + "PfxFileNameParameter": { + "description": "The pfx certificate file location.", + "name": "pfxFileName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PfxFileName" + }, + "x-ms-parameter-location": "method" + }, + "PfxPasswordParameter": { + "description": "The pfx certificate file password.", + "name": "pfxPasswordParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PfxPassword" + }, + "x-ms-parameter-location": "method" + }, + "SymmetricKeyParameter": { + "description": "The symmetric key.", + "name": "SymmetricKeyParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SymmetricKey" + }, + "x-ms-parameter-location": "method" + }, + "PasswordParameter": { + "description": "The password.", + "name": "PasswordParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Password" + }, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/Get.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/Get.json new file mode 100644 index 000000000000..bd293cc207e7 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "planId": "5f7d40b0-c504-4ebe-9db2-6f906d0faf6e" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "type": "Microsoft.Deployment.Admin/locations/actionplans", + "properties": { + "actionPlanUri": "https://deploymentrp.blob.redmond.ext-n22r1708.masd.stbtest.microsoft.com/msdpfilecontainer-cb72641657134ed79ffeb632a58a671e/Deployment/DeploymentPlan.json", + "subscriptionId": "ca13578c-6d3b-4478-b63e-a65c89601d86", + "resourceGroupName": "Microsoft.NullProvider", + "parameters": {}, + "startTime": "2019-10-15T19:29:22.6861068Z", + "endTime": "2019-10-15T19:36:29.5214075Z", + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/List.json new file mode 100644 index 000000000000..9dcd1b396f30 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlan/List.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "planId": "5f7d40b0-c504-4ebe-9db2-6f906d0faf6e" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "type": "Microsoft.Deployment.Admin/locations/actionplans", + "properties": { + "actionPlanUri": "https://deploymentrp.blob.redmond.ext-n22r1708.masd.stbtest.microsoft.com/msdpfilecontainer-cb72641657134ed79ffeb632a58a671e/Deployment/DeploymentPlan.json", + "subscriptionId": "ca13578c-6d3b-4478-b63e-a65c89601d86", + "resourceGroupName": "Microsoft.NullProvider", + "parameters": {}, + "startTime": "2019-10-15T19:29:22.6861068Z", + "endTime": "2019-10-15T19:36:29.5214075Z", + "provisioningState": "Succeeded" + } + } + ] + }, + "404": {} + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/Get.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/Get.json new file mode 100644 index 000000000000..916645557aa5 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/Get.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "planId": "5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "operationId": "DeploySubOwnerResources" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/DeploySubOwnerResources", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/DeploySubOwnerResources", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Deploy Subscription Owner RG", + "description": "Script demonstrating how to deploy resources from subscription owner access.", + "type": "Script", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + }, + "result": true + }, + "startTime": "2019-10-15T19:35:23.8889341Z", + "endTime": "2019-10-15T19:36:29.4432822Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + }, + "result": true + }, + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/List.json new file mode 100644 index 000000000000..90e650806121 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ActionPlanOperations/List.json @@ -0,0 +1,447 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "planId": "5f7d40b0-c504-4ebe-9db2-6f906d0faf6e", + "operationId": "DeploySubOwnerResources" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/DeploySubOwnerResources", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/DeploySubOwnerResources", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Deploy Subscription Owner RG", + "description": "Script demonstrating how to deploy resources from subscription owner access.", + "type": "Script", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + }, + "result": true + }, + "startTime": "2019-10-15T19:35:23.8889341Z", + "endTime": "2019-10-15T19:36:29.4432822Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + }, + "result": true + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/Configure", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/Configure", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Configure Something", + "description": "Sample script demonstrating how to connect to ARM and how get secrets from provider's vault.", + "type": "Script", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "startTime": "2019-10-15T19:33:58.9810782Z", + "endTime": "2019-10-15T19:35:23.7610359Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + }, + "result": true + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/Secrets", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/Secrets", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Import and/or Create Secrets", + "description": "Import external secrets and/or create internal secrets.", + "type": "Template", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "startTime": "2019-10-15T19:33:00.5573558Z", + "endTime": "2019-10-15T19:33:58.9185836Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/AddSubscriptionOwner", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/AddSubscriptionOwner", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Add Subscription Owner", + "description": "Grant subscription owner access to the add-on RP", + "type": "AddSubscriptionOwner", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "startTime": "2019-10-15T19:32:59.882963Z", + "endTime": "2019-10-15T19:33:00.5417235Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/SetVaultAccessPolicies", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/SetVaultAccessPolicies", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Set Vault Access Policies", + "description": "Grant access to provider's vault to provider's identity.", + "type": "Template", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "startTime": "2019-10-15T19:32:00.433533Z", + "endTime": "2019-10-15T19:32:59.8360901Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/Identity", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/Identity", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Create Identity", + "description": "Create provider's identity.", + "type": "Template", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + } + }, + "startTime": "2019-10-15T19:30:30.1106752Z", + "endTime": "2019-10-15T19:32:00.3866607Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + }, + "providerIdentity": { + "identifierUriPrefix": "nullprovider", + "displayName": "Azure Stack - NullProvider App", + "certificates": [ + { + "secretUri": "https://null-provider-vault.adminvault.redmond.ext-n22r1708.masd.stbtest.microsoft.com/secrets/ProviderIdentityClientCertPublic" + } + ], + "applicationId": "99011b1e-4056-44d0-b1a2-9c9ed959f024", + "servicePrincipalObjectId": "b0121fa7-fcdb-4d09-80ef-cdcc9d04493b", + "identifierUris": [ + "https://nullprovider.rp.azurestackci02.onmicrosoft.com/3d6d059d-5b08-4432-bc39-a29fe8de30c1" + ], + "tenantId": "6a8092d6-08d4-45af-894a-121400ef36a1", + "loginBaseEndpoint": "https://login.microsoftonline.com/", + "graphBaseEndpoint": "https://graph.windows.net/", + "graphResource": "https://graph.windows.net/", + "graphApiVersion": "1.6", + "identitySystem": "AzureAD", + "provisioningState": "Succeeded" + } + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/CreateVault", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/CreateVault", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Create Vault", + "description": "Create provider's vault with minimal access policies.", + "type": "Template", + "parameters": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + } + }, + "startTime": "2019-10-15T19:29:56.6504711Z", + "endTime": "2019-10-15T19:30:30.0794295Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + } + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/actionplans/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/operations/Constants", + "name": "global/5f7d40b0-c504-4ebe-9db2-6f906d0faf6e/Constants", + "type": "Microsoft.Deployment.Admin/locations/actionplans/operations", + "properties": { + "title": "Create Constants", + "description": "Create deployment constants.", + "type": "Template", + "parameters": {}, + "startTime": "2019-10-15T19:29:22.7017314Z", + "endTime": "2019-10-15T19:29:56.6348495Z", + "outputs": { + "vault": { + "name": "null-provider-vault", + "id": "/subscriptions/ca13578c-6d3b-4478-b63e-a65c89601d86/resourceGroups/Microsoft.NullProvider/providers/Microsoft.KeyVault/vaults/null-provider-vault" + } + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Create.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Create.json new file mode 100644 index 000000000000..66908fa86cf1 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Create.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "fileContainerId": "Microsoft.NullProvider.1.1", + "fileContainerParameters": { + "properties": { + "sourceUri": "https://deploymentproviderbvts.blob.redmond.ext-n22r1708.masd.stbtest.microsoft.com/temp/Microsoft.NullProvider.1.1.zip", + "postCopyAction": "Unzip" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/fileContainers/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/fileContainers", + "location": "global", + "properties": { + "postCopyAction": "Unzip", + "provisioningState": "Creating" + } + } + }, + "202": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Delete.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Delete.json new file mode 100644 index 000000000000..7ee403600e6d --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "fileContainerId": "Microsoft.NullProvider.1.1" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Get.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Get.json new file mode 100644 index 000000000000..1825d47eb2a0 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "fileContainerId": "Microsoft.NullProvider.1.1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/fileContainers/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/fileContainers", + "location": "global", + "properties": { + "postCopyAction": "Unzip", + "uri": "https://deploymentrp.blob.redmond.ext-n22r1708.masd.stbtest.microsoft.com/msdpfilecontainer-cb72641657134ed79ffeb632a58a671e/", + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/List.json new file mode 100644 index 000000000000..7516a854589b --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/FileContainer/List.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/fileContainers/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/fileContainers", + "location": "global", + "properties": { + "postCopyAction": "Unzip", + "uri": "https://deploymentrp.blob.redmond.ext-n22r1708.masd.stbtest.microsoft.com/msdpfilecontainer-cb72641657134ed79ffeb632a58a671e/", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/Operations/List.json new file mode 100644 index 000000000000..6a927b325599 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/Operations/List.json @@ -0,0 +1,159 @@ +{ + "parameters": { + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Deployment.Admin/locations/fileContainers/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "File Container", + "operation": "List/Get File Container(s)", + "description": "Returns the list of file containers or gets properties for the specified file container." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/fileContainers/write", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "File Container", + "operation": "Create/Update File Container", + "description": "Creates or updates a file container." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/fileContainers/delete", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "File Container", + "operation": "Delete File Container", + "description": "Deletes an existing file container." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/operationresults/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Operation Result", + "operation": "Poll Asynchronous Operation", + "description": "Polls the status of an asynchronous operation." + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Deployment.Admin/Operations/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Operation", + "operation": "List Supported Operations", + "description": "Returns the list of supported operations." + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Deployment", + "operation": "List/Get Product Deployment(s)", + "description": "Returns the list of product deployments or gets properties for the specified product deployment." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/bootstrap/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Deployment", + "operation": "Execute Bootstrap Deployment Phase", + "description": "Executes 'bootstrap' deployment phase." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/deploy/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Deployment", + "operation": "Execute Provision Deployment Phase", + "description": "Executes 'provision' deployment phase." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/remove/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Deployment", + "operation": "Remove Installed Product", + "description": "Removes installed product." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/setexternalaccess/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Deployment", + "operation": "Set External Access", + "description": "Enables or disables operator's access to product subscription." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/secrets/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Secret", + "operation": "List/Get Secret(s)", + "description": "Returns the list of secrets or gets properties for the specified secret." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/secrets/import/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Secret", + "operation": "Import Secret Value", + "description": "Imports a new secret value." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productDeployments/secrets/validateImport/action", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Secret", + "operation": "Validate Import", + "description": "Validates input for the import action." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productPackages/read", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Package", + "operation": "List/Get Product Package(s)", + "description": "Returns the list of product packages or gets properties for the specified product package." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productPackages/write", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Package", + "operation": "Create/Update Product Package", + "description": "Creates or updates a product package." + } + }, + { + "name": "Microsoft.Deployment.Admin/locations/productPackages/delete", + "display": { + "provider": "Microsoft Deployment Provider", + "resource": "Product Package", + "operation": "Delete Product Package", + "description": "Deletes an existing product package." + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Bootstrap.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Bootstrap.json new file mode 100644 index 000000000000..1231430f0a43 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Bootstrap.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview", + "bootstrapActionParameter": { + "version": "1.0.2" + } + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Deploy.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Deploy.json new file mode 100644 index 000000000000..47466509160e --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Deploy.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview", + "deployActionParameter": { + "version": "1.0.2" + } + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Get.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Get.json new file mode 100644 index 000000000000..260d2b3f837e --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/microsoft.iothubpreview", + "name": "global/microsoft.iothubpreview", + "type": "Microsoft.Deployment.Admin/locations/productDeployments", + "properties": { + "status": "BootstrapSucceeded", + "subscriptionId": "c487a9cf-9841-44fa-9370-7b9e094db57e", + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/List.json new file mode 100644 index 000000000000..d505ca50cf2e --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview" + }, + "responses": { + "200": { + "body": [ + { + "id": "/subscriptions/0a581108-e747-40cf-8a80-2c82ddd0438a/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/microsoft.iothubpreview", + "name": "global/microsoft.iothubpreview", + "type": "Microsoft.Deployment.Admin/locations/productDeployments", + "properties": { + "status": "None", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/0a581108-e747-40cf-8a80-2c82ddd0438a/providers/Microsoft.Deployment.Admin/locations/global/productDeployments/microsoft.eventhubstaging", + "name": "global/microsoft.eventhubstaging", + "type": "Microsoft.Deployment.Admin/locations/productDeployments", + "properties": { + "status": "DeploymentSucceeded", + "subscriptionId": "bc070a98-3728-476c-aeb0-8957e067c29d", + "deployment": { + "version": "1.3.1", + "actionPlanInstanceResourceId": "/subscriptions/0a581108-e747-40cf-8a80-2c82ddd0438a/providers/Microsoft.Deployment.Admin/locations/global/actionplans/33a10be1-2365-44a9-8c69-c8a06e8fd81c", + "parameters": {} + }, + "lastSuccessfulDeployment": { + "version": "1.3.1", + "actionPlanInstanceResourceId": "/subscriptions/0a581108-e747-40cf-8a80-2c82ddd0438a/providers/Microsoft.Deployment.Admin/locations/global/actionplans/33a10be1-2365-44a9-8c69-c8a06e8fd81c", + "parameters": {} + }, + "provisioningState": "Succeeded" + } + } + ] + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Lock.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Lock.json new file mode 100644 index 000000000000..2f0b39fa1bb4 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Lock.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Remove.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Remove.json new file mode 100644 index 000000000000..05fdceedfbb6 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Remove.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/RotateSecrets.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/RotateSecrets.json new file mode 100644 index 000000000000..05fdceedfbb6 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/RotateSecrets.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Unlock.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Unlock.json new file mode 100644 index 000000000000..648670de33b3 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductDeployment/Unlock.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview", + "unlockActionParameter": { + "duration": "P5D" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Create.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Create.json new file mode 100644 index 000000000000..b3439f9c6e71 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Create.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.NullProvider.1.1", + "fileContainerParameter": { + "properties": { + "fileContainerId": "Microsoft.NullProvider.1.1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/productPackages", + "properties": { + "fileContainerId": "Microsoft.NullProvider.1.1", + "isDeployable": true, + "isUpdatable": true, + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Delete.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Delete.json new file mode 100644 index 000000000000..106199cd1975 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.NullProvider.1.1" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Get.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Get.json new file mode 100644 index 000000000000..593f444612a6 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.NullProvider.1.1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/productPackages", + "properties": { + "fileContainerId": "Microsoft.NullProvider.1.1", + "isDeployable": true, + "isUpdatable": true, + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/List.json new file mode 100644 index 000000000000..6138961357d4 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductPackage/List.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "be8b2e19-7f92-4644-b808-a18283aebb01", + "location": "global", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1", + "name": "global/Microsoft.NullProvider.1.1", + "type": "Microsoft.Deployment.Admin/locations/productPackages", + "properties": { + "fileContainerId": "Microsoft.NullProvider.1.1", + "isDeployable": true, + "isUpdatable": true, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Get.Json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Get.Json new file mode 100644 index 000000000000..b6c83ec44937 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Get.Json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "secretName": "secretName", + "secretValue": "sslCert" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0a581108-e747-40cf-8a80-2c82ddd0438a/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.IotHubPreview.1.0.2/secrets/sslCert", + "name": "global/Microsoft.IotHubPreview.1.0.2/sslCert", + "type": "Microsoft.Deployment.Admin/locations/productPackages/secrets", + "properties": { + "secretKind": "Certificate", + "description": "Application SSL certificate.", + "expiresAfter": "P365D", + "secretDescriptor": { + "keyLength": 3072, + "alternativeDnsNames": [] + }, + "secretState": { + "status": "NotUploaded", + "rotationStatus": "None" + }, + "provisioningState": "Succeeded" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Import.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Import.json new file mode 100644 index 000000000000..bf7340c44ac4 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Import.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "secretName": "secretName", + "secretParameters": { + "properties": { + "secretValue": "sslCert" + } + }, + "newOffer": { + "properties": { + "password": "password", + "data": "MII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7bEw9w3HgWojsQavaqewuAp9OYyg4ZfQCApNmSievlt673v0nZ5dooS9rZroDukwIwTQpxmWaS0wo7SWkkRy99Owe08PFEsM93FrtuyTNz4+1sAWWkQrU7eU5l5C+NM9ZUhCe7jTxTBAs+VMHdMVRF5FQKPLM5CU5RIfg7RDs94TSVPEB8gG5r13+Kmf5gv1NzX8QHmrRA1k0uzF9g4btWdXhoCarB61wFXsizx3mTFEmYev5A3vb6Dn6E4Md//+gJFJ31DcmK7I1DvJCM8QV1mKQydZTef5GkrPxxCk4/kK6cbSNpaHwgNZRPoq+2q9+ZBGK8dzvWbOUwOzAfMAcGBSsOAwIaBBQYe7dTefP7Lx9vu5M0PY3co6yQXwQUiMIUs1ICQSCmLpbiC0DEBnr1JxYCAgfQ" + } + } + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/List.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/List.json new file mode 100644 index 000000000000..cc35a2b5b53a --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/List.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "secretValue": "sslCert" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1/secrets/AdHoc", + "name": "global/Microsoft.NullProvider.1.1/AdHoc", + "type": "Microsoft.Deployment.Admin/locations/productPackages/secrets", + "properties": { + "secretKind": "AdHoc", + "description": "This is an ad-hoc secret.", + "expiresAfter": "P365D", + "secretState": { + "status": "NotUploaded", + "rotationStatus": "None" + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1/secrets/TlsCertificate", + "name": "global/Microsoft.NullProvider.1.1/TlsCertificate", + "type": "Microsoft.Deployment.Admin/locations/productPackages/secrets", + "properties": { + "secretKind": "Certificate", + "description": "This is a TLS certificate.", + "expiresAfter": "P365D", + "secretDescriptor": { + "subject": "CN=NullProviderTLS", + "keyLength": 4096, + "alternativeDnsNames": [ + "noterp.redmond.ext-n22r1708.masd.stbtest.microsoft.com" + ] + }, + "secretState": { + "status": "NotUploaded", + "rotationStatus": "None" + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1/secrets/ExternalPassword", + "name": "global/Microsoft.NullProvider.1.1/ExternalPassword", + "type": "Microsoft.Deployment.Admin/locations/productPackages/secrets", + "properties": { + "secretKind": "Password", + "description": "This is an external password.", + "expiresAfter": "P365D", + "secretDescriptor": { + "passwordLength": 10, + "allowedCharacters": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", + "passwordValidationRegex": "^(?=.*\\d)(?=.*[A-Z])(?=.*[a-z]).*$" + }, + "secretState": { + "status": "NotUploaded", + "rotationStatus": "None" + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/be8b2e19-7f92-4644-b808-a18283aebb01/providers/Microsoft.Deployment.Admin/locations/global/productPackages/Microsoft.NullProvider.1.1/secrets/ExternalSymmetricKey", + "name": "global/Microsoft.NullProvider.1.1/ExternalSymmetricKey", + "type": "Microsoft.Deployment.Admin/locations/productPackages/secrets", + "properties": { + "secretKind": "SymmetricKey", + "description": "This is an external symmetric key.", + "expiresAfter": "P365D", + "secretDescriptor": { + "keyLength": 128 + }, + "secretState": { + "status": "NotUploaded", + "rotationStatus": "None" + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Validate.json b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Validate.json new file mode 100644 index 000000000000..09fc63e01e89 --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/examples/ProductSecret/Validate.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "location": "global", + "api-version": "2019-01-01", + "productId": "Microsoft.IotHubPreview.1.0.2", + "secretName": "secretName", + "secretParameters": { + "properties": { + "secretValue": "sslCert" + } + }, + "secretValue": "sslCert", + "newOffer": { + "properties": { + "password": "password", + "data": "MIIasdajCasdadIIKlDCCCpAGCyqGSIb3DQEMCgECoIIJfjCCCXowHAYKKoZIhvcNAQwBAzAOBAg8H9AO2t5mSwICB9AEgglYZET8GdClyLmngkqx8gob6P56kmMBIB72BG9BZtjnCpY/D4E9Rhl2hmxHFPY2ivsRSgFKDg8tVs+hnMuokWShJhZ0oIaBo4nHRcKk4sWzCfgEN21T2tgCnkG+Fz2kpvv485YaRpnU+vRU19NfwOe34A+zxI63H7V8cnAOuy5fI7MPqWYFDYLAWtJwVbslLVBDmdyKTah7+53g4P71wZD3rupW/ntOJQUzmZUV5RXphIyQn1pN15DCLRPwgc0FwqglrUJMxHD/MJ8w23JXG9HcgVS7tCEDEVGs2X7P/svcy8zV14Amhy73Lcqy7ZS8lxlyvyuXMCbRmY9UxsGc3SvbgWZqVzWaaHbiq/8jEncq0Cd21I0Ynv3cGBwGR9ERml3NNeZWon1NFUxkZhG2CQ5z6W4NhnVX3iq9D1lklRbzYls8qcCKTIsT6qPbBonAKFBZ9+JqJxZSkzoiWVR3GqTdGaaSrY56g2WKwQ330/rJXSR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RBh6pnLi/ktajwBo331edlI4q91AGxuJvxugwPYiudkiSWnZc7LxwOPiwExivuq7Era85mci9URRnBb+EYMA4RqnFrs327POeytuMmNtGAESRA1NwlRJOTLplO7suJmnDT9A0mOfUmnkcyzah3khqCucl96w9mINmbcEoOBGp1xVske2TGhFSsDCObae0BvF2f+43ciwbxDpGTuNB9UnV8w41HV2UhZ+OjYJK0pgVlk5+vfnXEw+iJiPItSynB1HZsdqLJuEqRESRVRIozqR/bHSkv61y2Bq5isT9ZwF9FNbZuSgGoLAvuzpwN95Mx83g4MsNvYWo9EyIEGvjbecBzL9fpeunkvrD2LC8k8+sdtQQ5rPibMKV6kL6ThWbeDhXExk0vZcHos3nLBLsW5Ov/J2erN/CcJdd/CGnwzxMjfmbp2FxLFMwe4XdMsBp7WlGjMy++hRbINtwMAysboIb/YOTOylgBNSDl6uJ27MHtbLhgSyDEw18bFglqWvjvKUJKPbZE7bEw9w3HgWojsQavaqewuAp9OYyg4ZfQCApNmSievlt673v0nZ5dooS9rZroDukwIwTQpxmWaS0wo7SWkkRy99Owe08PFEsM93FrtuyTNz4+1sAWWkQrU7eU5l5C+NM9ZUhCe7jTxTBAs+VMHdMVRF5FQKPLM5CU5RIfg7RDs94TSVPEB8gG5r13+Kmf5gv1NzX8QHmrRA1k0uzF9g4btWdXhoCarB61wFXsizx3mTFEmYev5A3vb6Dn6E4Md//+gJFJ31DcmK7I1DvJCM8QV1mKQydZTef5GkrPxxCk4/kK6cbSNpaHwgNZRPoq+2q9+ZBGK8dzvWbOUwOzAfMAcGBSsOAwIaBBQYe7dTefP7Lx9vu5M0PY3co6yQXwQUiMIUs1ICQSCmLpbiC0DEBnr1JxYCAgfQ" + } + } + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/deployment/readme.md b/specification/azsadmin/resource-manager/deployment/readme.md new file mode 100644 index 000000000000..3976fe43cc0f --- /dev/null +++ b/specification/azsadmin/resource-manager/deployment/readme.md @@ -0,0 +1,87 @@ +# Deployment Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Deployment Admin. + +--- +## Getting Started +To build the SDK for Deployment Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the Deployment Resource Provider API. + +``` yaml +title: DeploymentAdminClient +description: Deployment Admin Client +openapi-type: arm +tag: package-2019-01-01 +``` + +### Tag: package-2019-01-01 + +These settings apply only when `--tag=package-2019-01-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-01-01' +input-file: + - Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json + - Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json + - Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json + - Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json + - Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json + - Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json + - Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json +``` + +--- +# Code Generation + +## C# + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.AzureStack.Management.Deployment.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +``` + +## Multi-API/Profile support for AutoRest v3 generators + +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. + +This block is updated by an automatic script. Edits may be lost! + +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../../profiles/readme.md + +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/Deployment.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlanOperation.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/FileContainer.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/ProductDeployment.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/ProductPackage.json + - $(this-folder)/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. + +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json +```