From 39d7325c94e305b4c787eb92619cfe09b149409b Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 18 Jul 2022 23:37:34 -0700 Subject: [PATCH 01/24] Moved swagger specs from resources to solutions folder. --- .../examples/createOrUpdateApplication.json | 57 + .../createOrUpdateApplicationDefinition.json | 92 + .../examples/deleteApplicationDefinition.json | 13 + .../examples/getApplication.json | 53 + .../examples/getApplicationDefinition.json | 49 + ...ApplicationDefinitionsByResourceGroup.json | 78 + .../listApplicationsByResourceGroup.json | 50 + .../examples/listSolutionsOperations.json | 30 + .../examples/updateApplication.json | 42 + .../managedapplications.json | 2408 +++++++++++++++++ .../examples/createOrUpdateApplication.json | 57 + .../createOrUpdateApplicationDefinition.json | 92 + .../examples/createOrUpdateJitRequest.json | 90 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationDefinition.json | 13 + .../examples/deleteJitRequest.json | 12 + .../examples/getApplication.json | 53 + .../examples/getApplicationDefinition.json | 49 + .../examples/getJitRequest.json | 42 + ...ApplicationDefinitionsByResourceGroup.json | 78 + .../listApplicationsByResourceGroup.json | 50 + .../listJitRequestsByResourceGroup.json | 74 + .../examples/listSolutionsOperations.json | 34 + .../refreshApplicationPermissions.json | 12 + .../examples/updateApplication.json | 37 + .../examples/updateApplicationDefinition.json | 49 + .../examples/updateJitRequest.json | 47 + .../managedapplications.json | 2093 ++++++++++++++ .../examples/createOrUpdateApplication.json | 43 + .../createOrUpdateApplicationDefinition.json | 63 + .../2017-09-01/examples/getApplication.json | 34 + .../examples/getApplicationDefinition.json | 48 + ...ApplicationDefinitionsByResourceGroup.json | 86 + .../listApplicationsByResourceGroup.json | 58 + .../2017-09-01/managedapplications.json | 1378 ++++++++++ .../examples/createOrUpdateApplication.json | 59 + .../createOrUpdateApplicationById.json | 57 + .../createOrUpdateApplicationDefinition.json | 99 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../examples/deleteApplicationDefinition.json | 13 + .../2018-06-01/examples/getApplication.json | 32 + .../examples/getApplicationById.json | 30 + .../examples/getApplicationDefinition.json | 48 + ...ApplicationDefinitionsByResourceGroup.json | 84 + .../listApplicationsByResourceGroup.json | 52 + .../listApplicationsBySubscription.json | 51 + .../examples/listSolutionsOperations.json | 30 + .../examples/updateApplication.json | 37 + .../examples/updateApplicationById.json | 35 + .../2018-06-01/managedapplications.json | 1553 +++++++++++ .../examples/createOrUpdateApplication.json | 62 + .../createOrUpdateApplicationDefinition.json | 97 + .../examples/deleteApplicationDefinition.json | 13 + .../2019-07-01/examples/getApplication.json | 55 + .../examples/getApplicationDefinition.json | 51 + ...ApplicationDefinitionsByResourceGroup.json | 82 + .../listApplicationsByResourceGroup.json | 54 + .../examples/listSolutionsOperations.json | 30 + .../examples/updateApplication.json | 42 + .../2019-07-01/managedapplications.json | 2361 ++++++++++++++++ .../solutions/resource-manager/readme.go.md | 57 +- .../solutions/resource-manager/readme.java.md | 77 +- .../solutions/resource-manager/readme.md | 55 + .../resource-manager/readme.python.md | 55 + .../solutions/resource-manager/readme.ruby.md | 55 + 66 files changed, 12822 insertions(+), 2 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..26d0ac01f2a8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..2247a4fedecd --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..ec85348c1fa0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json new file mode 100644 index 000000000000..9d1b515434d6 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..543bdd5ab96b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..1d4172cb1ac1 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..5fb082f17885 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..bc7802d2bf55 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json new file mode 100644 index 000000000000..b9722b2d6d2e --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json new file mode 100644 index 000000000000..c076ddc41af3 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -0,0 +1,2408 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2020-08-21-preview", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the JIT request", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "200": { + "description": "Ok - Returns information about existing JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "managementMode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode.", + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "storageAccountId": { + "type": "string", + "description": "The storage account id for bring your own storage scenario." + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message." + }, + "JitRequestDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Solutions operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..fc9dce3d1623 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplication.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..22b39f5d1156 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..0b30d99f42df --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json new file mode 100644 index 000000000000..762193569d63 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..513f23ae9c1a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteJitRequest.json new file mode 100644 index 000000000000..1db04c190a85 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json new file mode 100644 index 000000000000..a8633eab0b49 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..ad9ba601dbd5 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json new file mode 100644 index 000000000000..f3227fa2dd58 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..1993a2817682 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..1ce491645669 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..7cf0b297aead --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..84d2c5cc771b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listSolutionsOperations.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "isDataAction": false, + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read", + "description": "Description of the operation" + } + }, + { + "name": "SolutionssOpeartion2", + "isDataAction": false, + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write", + "description": "Description of the operation" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..0b74be016c96 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json new file mode 100644 index 000000000000..d7a647f487bb --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..08dfaa438a45 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2021-02-01-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateJitRequest.json new file mode 100644 index 000000000000..07b44ca2a873 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2021-02-01-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json new file mode 100644 index 000000000000..7e8df9f17f37 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -0,0 +1,2093 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2021-02-01-preview", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Delete managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "delete managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Gets all the application definitions within a subscription.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", + "x-ms-examples": { + "Create or update jit request": { + "$ref": "./examples/getJitRequest.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/JitRequestNameParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the JIT request", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", + "x-ms-examples": { + "Create or update jit request": { + "$ref": "./examples/createOrUpdateJitRequest.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/JitRequestNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "200": { + "description": "Ok - Returns information about existing JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", + "x-ms-examples": { + "Create or update jit request": { + "$ref": "./examples/updateJitRequest.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/JitRequestNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "x-ms-examples": { + "Delete jit request": { + "$ref": "./examples/deleteJitRequest.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/JitRequestNameParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "List jit requests": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "List jit requests": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Refresh managed application permissions": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "type": "object", + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "managementMode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode.", + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "type": "object", + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "type": "object", + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "storageAccountId": { + "type": "string", + "description": "The storage account id for bring your own storage scenario." + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, + "Plan": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "type": "object", + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "type": "object", + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "type": "object", + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "type": "object", + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "type": "object", + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "type": "object", + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "type": "object", + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "type": "object", + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "JitRequestDefinition": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "type": "object", + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "type": "object", + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "type": "object", + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Solutions operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + } + }, + "parameters": { + "ApplicationNameParameter": { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64, + "x-ms-parameter-location": "method" + }, + "ApplicationDefinitionNameParameter": { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64, + "x-ms-parameter-location": "method" + }, + "JitRequestNameParameter": { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..2c387c508963 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "managedApplicationName": "myManagedApplication", + "api-version": "2017-09-01", + "parameters": { + "properties": { + "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "name": "myManagedApplication", + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..fabcb760e0d2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "managedApplicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-09-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": null, + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json new file mode 100644 index 000000000000..c2f5a730749d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "managedApplicationName": "myManagedApplication", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..90ba4b258839 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "managedApplicationName": "myManagedApplicationDef", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": null, + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..e5cd89d3ae1a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": null, + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": null, + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..7d3d798fc3dc --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "resourceGroup": "rg", + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json new file mode 100644 index 000000000000..2a2c87730222 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -0,0 +1,1378 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2017-09-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{applicationDefinitionId}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "parameters": [ + { + "name": "applicationDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "parameters": [ + { + "name": "applicationDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "parameters": [ + { + "name": "applicationDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationPropertiesPatchable", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "uiDefinitionUri": { + "type": "string", + "description": "The blob URI where the UI definition file is located." + } + }, + "required": [ + "managedResourceGroupId" + ], + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "uiDefinitionUri": { + "type": "string", + "description": "The blob URI where the UI definition file is located." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "string", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationProviderAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + } + }, + "required": [ + "lockLevel", + "authorizations" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + } + }, + "description": "Identity for the resource." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "type": "string", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "description": "Managed application artifact." + }, + "ApplicationProviderAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ErrorResponse": { + "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "httpStatus": { + "description": "Http status code.", + "type": "string" + }, + "errorCode": { + "description": "Error code.", + "type": "string" + }, + "errorMessage": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..451460766d90 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..71d06101e915 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..745348a35fe4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json new file mode 100644 index 000000000000..c1ad3fb56744 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..f1fb09280cb5 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..72e9f6531a59 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "200": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json new file mode 100644 index 000000000000..339b581af507 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "404": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json new file mode 100644 index 000000000000..10109822f0e7 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "404": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..b6886c726d4d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "404": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..a7924b761b65 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..ffc143598fec --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..447651b364f0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..55f367f84dc3 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json new file mode 100644 index 000000000000..f356f65167ea --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..673261ecdf00 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json new file mode 100644 index 000000000000..bd7b751c934a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -0,0 +1,1553 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2018-06-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Deletes a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Updates a managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Deletes a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications by subscription": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get application by id": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Delete application by id": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update application by id": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Update application by id": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Delete application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationPropertiesPatchable", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "required": [ + "managedResourceGroupId" + ], + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "string", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationProviderAuthorization" + }, + "x-ms-identifiers": [ + "principalId", + "roleDefinitionId" + ] + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "x-ms-identifiers": [ + "name", + "uri" + ] + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + } + }, + "required": [ + "lockLevel", + "authorizations" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + } + }, + "description": "Identity for the resource." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "type": "string", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "description": "Managed application artifact." + }, + "ApplicationProviderAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ErrorResponse": { + "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "httpStatus": { + "description": "Http status code.", + "type": "string" + }, + "errorCode": { + "description": "Error code.", + "type": "string" + }, + "errorMessage": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of Microsoft.Solutions operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..57f181b155ef --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..8b4ef39435d0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..c542a5d3dd5f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2019-07-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json new file mode 100644 index 000000000000..d47cbf060e59 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..2b3b9fc39618 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..3a0f627edcab --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..fa0f8ee99249 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..9aca8d10fb87 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json new file mode 100644 index 000000000000..b9722b2d6d2e --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json new file mode 100644 index 000000000000..b0a8ddd1c017 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -0,0 +1,2361 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2019-07-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the JIT request", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "200": { + "description": "Ok - Returns information about existing JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "managementMode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode.", + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "JitRequestDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/readme.go.md b/specification/solutions/resource-manager/readme.go.md index 8d74f63f2114..2878d00516de 100644 --- a/specification/solutions/resource-manager/readme.go.md +++ b/specification/solutions/resource-manager/readme.go.md @@ -21,6 +21,11 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: - tag: package-managedapplications-2021-07 + - tag: package-managedapplications-2021-02 + - tag: package-managedapplications-2020-08 + - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2017-09 ``` ### Tag: package-managedapplications-2021-07 and go @@ -31,4 +36,54 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2021-02' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2021-02-01-preview/managedapplications +``` + +### Tag: package-managedapplications-2020-08 and go + +These settings apply only when `--tag=package-managedapplications-2020-08 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2020-08' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2020-08-21-preview/managedapplications +``` + +### Tag: package-managedapplications-2019-07 and go + +These settings apply only when `--tag=package-managedapplications-2019-07 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2019-07' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2019-07-01/managedapplications +``` + +### Tag: package-managedapplications-2018-06 and go + +These settings apply only when `--tag=package-managedapplications-2018-06 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-06' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2018-06-01/managedapplications +``` + +### Tag: package-managedapplications-2017-09 and go + +These settings apply only when `--tag=package-managedapplications-2017-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-09' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2017-09-01/managedapplications +``` diff --git a/specification/solutions/resource-manager/readme.java.md b/specification/solutions/resource-manager/readme.java.md index d24956f196d4..4e0ffe39823e 100644 --- a/specification/solutions/resource-manager/readme.java.md +++ b/specification/solutions/resource-manager/readme.java.md @@ -20,6 +20,11 @@ Generate all API versions currently shipped for this package ``` yaml $(java) && $(multiapi) batch: - tag: package-managedapplications-2021-07 + - tag: package-managedapplications-2021-02 + - tag: package-managedapplications-2020-08 + - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2017-09 ``` ``` @@ -30,9 +35,79 @@ Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2021-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2021_02_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2021_07_01_preview +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2020-08 and java + +These settings apply only when `--tag=package-managedapplications-2020-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2020-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2020_08_21_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2020_08_21_preview +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2019-07 and java + +These settings apply only when `--tag=package-managedapplications-2019-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2019-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2019_07_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2019_07_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2018-06 and java + +These settings apply only when `--tag=package-managedapplications-2018-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2018_06_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2018_06_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2017-09 and java + +These settings apply only when `--tag=package-managedapplications-2017-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2017_09_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2017_09_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' ``` \ No newline at end of file diff --git a/specification/solutions/resource-manager/readme.md b/specification/solutions/resource-manager/readme.md index eee826291802..f66b941a65b8 100644 --- a/specification/solutions/resource-manager/readme.md +++ b/specification/solutions/resource-manager/readme.md @@ -28,10 +28,20 @@ These are the global settings for the managedApplication. openapi-type: arm openapi-subtype: rpaas tag: package-managedapplications-2021-07 +tag: package-managedapplications-2021-02 +tag: package-managedapplications-2020-08 +tag: package-managedapplications-2019-07 +tag: package-managedapplications-2018-06 +tag: package-managedapplications-2017-09 ``` ``` yaml $(package-managedapplications) tag: package-managedapplications-2021-07 +tag: package-managedapplications-2021-02 +tag: package-managedapplications-2020-08 +tag: package-managedapplications-2019-07 +tag: package-managedapplications-2018-06 +tag: package-managedapplications-2017-09 ``` @@ -44,6 +54,51 @@ input-file: - Microsoft.Solutions/stable/2021-07-01/managedapplications.json ``` +### Tag: package-managedapplications-2021-02 + +These settings apply only when `--tag=package-managedapplications-2021-02` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2021-02' +input-file: +- Microsoft.Solutions/stable/2021-02-01-preview/managedapplications.json +``` + +### Tag: package-managedapplications-2020-08 + +These settings apply only when `--tag=package-managedapplications-2020-08` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2020-08' +input-file: +- Microsoft.Solutions/stable/2020-08-21-preview/managedapplications.json +``` + +### Tag: package-managedapplications-2019-07 + +These settings apply only when `--tag=package-managedapplications-2019-07` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2019-07' +input-file: +- Microsoft.Solutions/stable/2019-07-01/managedapplications.json +``` + +### Tag: package-managedapplications-2018-06 + +These settings apply only when `--tag=package-managedapplications-2018-06` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2018-06' +input-file: +- Microsoft.Solutions/stable/2018-06-01/managedapplications.json +``` + +### Tag: package-managedapplications-2017-09 + +These settings apply only when `--tag=package-managedapplications-2017-09` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2017-09' +input-file: +- Microsoft.Solutions/stable/2017-09-01/managedapplications.json +``` + --- # Code Generation diff --git a/specification/solutions/resource-manager/readme.python.md b/specification/solutions/resource-manager/readme.python.md index face3195acad..eca1e6909092 100644 --- a/specification/solutions/resource-manager/readme.python.md +++ b/specification/solutions/resource-manager/readme.python.md @@ -21,6 +21,11 @@ Generate all API versions currently shipped for this package clear-output-folder: true batch: - tag: package-managedapplications-2021-07 + - tag: package-managedapplications-2021-02 + - tag: package-managedapplications-2020-08 + - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2017-09 - multiapiscript: true ``` @@ -38,3 +43,53 @@ Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2021-02' +namespace: azure.mgmt.managedapplication.v2021_02_01_preview +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2021_02_01_preview +``` + +### Tag: package-managedapplications-2020-08 and python + +These settings apply only when `--tag=package-managedapplications-2020-08 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2020-08' +namespace: azure.mgmt.managedapplication.v2020_08_21_preview +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2020_08_21_preview +``` + +### Tag: package-managedapplications-2019-07 and python + +These settings apply only when `--tag=package-managedapplications-2019-07 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2019-07' +namespace: azure.mgmt.managedapplication.v2019_07_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2019_07_01 +``` + +### Tag: package-managedapplications-2018-06 and python + +These settings apply only when `--tag=package-managedapplications-2018-06 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-06' +namespace: azure.mgmt.managedapplication.v2018_06_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2018_06_01 +``` + +### Tag: package-managedapplications-2017-09 and python + +These settings apply only when `--tag=package-managedapplications-2017-09 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-09' +namespace: azure.mgmt.managedapplication.v2017_09_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2017_09_01 +``` diff --git a/specification/solutions/resource-manager/readme.ruby.md b/specification/solutions/resource-manager/readme.ruby.md index 0fef72cfef0c..34272697aad7 100644 --- a/specification/solutions/resource-manager/readme.ruby.md +++ b/specification/solutions/resource-manager/readme.ruby.md @@ -6,6 +6,11 @@ package-version: "0.16.0" azure-arm: true batch: - tag: package-managedapplications-2021-07 + - tag: package-managedapplications-2021-02 + - tag: package-managedapplications-2020-08 + - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2017-09 ``` ### Tag: package-managedapplications-2021-07 and ruby @@ -16,4 +21,54 @@ Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2021-02' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2021_02_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2020-08 and ruby + +These settings apply only when `--tag=package-managedapplications-2020-08 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2020-08' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2020_08_21_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2019-07 and ruby + +These settings apply only when `--tag=package-managedapplications-2019-07 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2019-07' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2019_07_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2018-06 and ruby + +These settings apply only when `--tag=package-managedapplications-2018-06 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-06' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2018_06_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2017-09 and ruby + +These settings apply only when `--tag=package-managedapplications-2017-09 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-09' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2017_09_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib ``` \ No newline at end of file From ded034506f4089ad6bd2ee1fd1afe2022d36392e Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 10:41:09 -0700 Subject: [PATCH 02/24] Fixed validation errors. --- .../createOrUpdateApplicationById.json | 55 ++++++ .../examples/createOrUpdateJitRequest.json | 90 ++++++++++ .../examples/deleteApplication.json | 12 ++ .../examples/deleteApplicationById.json | 10 ++ .../examples/deleteJitRequest.json | 12 ++ .../examples/getApplicationById.json | 51 ++++++ .../examples/getJitRequest.json | 42 +++++ .../listApplicationsBySubscription.json | 49 ++++++ .../listJitRequestsByResourceGroup.json | 74 +++++++++ .../listJitRequestsBySubscription.json | 73 ++++++++ .../refreshApplicationPermissions.json | 12 ++ .../examples/updateApplication.json | 2 +- .../examples/updateApplicationById.json | 40 +++++ .../examples/updateJitRequest.json | 47 ++++++ .../managedapplications.json | 70 ++++++++ .../examples/createOrUpdateApplication.json | 7 +- .../createOrUpdateApplicationDefinition.json | 6 +- .../examples/deleteApplication.json | 12 ++ .../examples/deleteApplicationById.json | 10 ++ .../examples/deleteApplicationDefinition.json | 13 ++ .../2017-09-01/examples/getApplication.json | 5 +- .../examples/getApplicationById.json | 51 ++++++ .../examples/getApplicationDefinition.json | 6 +- ...ApplicationDefinitionsByResourceGroup.json | 6 +- .../listApplicationsByResourceGroup.json | 4 - .../listApplicationsBySubscription.json | 49 ++++++ .../examples/updateApplication.json | 37 +++++ .../2017-09-01/managedapplications.json | 157 ++++-------------- .../solutions/resource-manager/readme.md | 4 +- 29 files changed, 854 insertions(+), 152 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..b7959c8b1e38 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..7a4ae980207b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json new file mode 100644 index 000000000000..65d025667a84 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json new file mode 100644 index 000000000000..e52e950b3305 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteJitRequest.json new file mode 100644 index 000000000000..8aa6d0d7a127 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json new file mode 100644 index 000000000000..178b927b4040 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json new file mode 100644 index 000000000000..6e4a02ec32a9 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..3a06c2ad35d3 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..a0b92af9680d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsBySubscription.json new file mode 100644 index 000000000000..5a2ee2f76e64 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listJitRequestsBySubscription.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..db5b435c1515 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json index b9722b2d6d2e..91d1637cd87c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2021-07-01", + "api-version": "2020-08-21-preview", "parameters": { "properties": { "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json new file mode 100644 index 000000000000..1a580d18f64c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateJitRequest.json new file mode 100644 index 000000000000..b661e6f9c3e3 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2020-08-21-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index c076ddc41af3..39cb2b39cf8b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -130,6 +130,11 @@ ], "operationId": "Applications_Delete", "description": "Deletes the managed application.", + "x-ms-examples": { + "Deletes a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -367,6 +372,11 @@ ], "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Delete managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -588,6 +598,11 @@ ], "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -622,6 +637,11 @@ ], "operationId": "Applications_GetById", "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -656,6 +676,11 @@ ], "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -691,6 +716,11 @@ ], "operationId": "Applications_CreateOrUpdateById", "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -741,6 +771,11 @@ ], "operationId": "Applications_UpdateById", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -785,6 +820,11 @@ ], "operationId": "JitRequests_Get", "description": "Gets the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -831,6 +871,11 @@ ], "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -893,6 +938,11 @@ ], "operationId": "JitRequests_Update", "description": "Updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -948,6 +998,11 @@ ], "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -996,6 +1051,11 @@ ], "operationId": "jitRequests_ListBySubscription", "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -1027,6 +1087,11 @@ ], "operationId": "jitRequests_ListByResourceGroup", "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -1068,6 +1133,11 @@ ], "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, "parameters": [ { "name": "resourceGroupName", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json index 2c387c508963..aeb83278f0ae 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json @@ -2,19 +2,18 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "rg", - "managedApplicationName": "myManagedApplication", + "applicationName": "myManagedApplication", "api-version": "2017-09-01", "parameters": { "properties": { - "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" }, - "name": "myManagedApplication", "location": "East US 2", "kind": "ServiceCatalog" } }, "responses": { + "200": {}, "201": { "headers": {}, "body": { @@ -23,14 +22,12 @@ "type": "Microsoft.Solutions/applications", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { - "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json index fabcb760e0d2..19d1678c1186 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "rg", - "managedApplicationDefinitionName": "myManagedApplicationDef", + "applicationDefinitionName": "myManagedApplicationDef", "api-version": "2017-09-01", "parameters": { "properties": { @@ -21,6 +21,7 @@ } }, "responses": { + "200" : {}, "201": { "headers": {}, "body": { @@ -29,7 +30,6 @@ "type": "Microsoft.Solutions/applicationDefinitions", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "identity": null, "sku": null, @@ -54,7 +54,7 @@ ], "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", - "lockLevel": null, + "lockLevel": ReadOnly, "packageFileUri": "https://path/to/packagezipfile" } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json new file mode 100644 index 000000000000..1d0120dab098 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-09-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..2f414f821cee --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-09-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..8ccecdb824bd --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-09-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json index c2f5a730749d..1e84a754d6ee 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplication.json @@ -2,10 +2,11 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "rg", - "managedApplicationName": "myManagedApplication", + "applicationName": "myManagedApplication", "api-version": "2017-09-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { @@ -14,14 +15,12 @@ "type": "Microsoft.Solutions/applications", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { - "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json new file mode 100644 index 000000000000..81b6c8e559db --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json index 90ba4b258839..2e63e602aa00 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json @@ -2,10 +2,11 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "rg", - "managedApplicationName": "myManagedApplicationDef", + "applicationDefinitionName": "myManagedApplicationDef", "api-version": "2017-09-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { @@ -14,7 +15,6 @@ "type": "Microsoft.Solutions/applicationDefinitions", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "identity": null, "sku": null, @@ -39,7 +39,7 @@ ], "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", - "lockLevel": null, + "lockLevel": "ReadOnly", "packageFileUri": "https://path/to/packagezipfile" } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json index e5cd89d3ae1a..62aa1bf3eb1a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -15,7 +15,6 @@ "type": "Microsoft.Solutions/applicationDefinitions", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "identity": null, "sku": null, @@ -40,7 +39,7 @@ ], "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", - "lockLevel": null, + "lockLevel": ReadOnly, "packageFileUri": "https://path/to/packagezipfile" } }, @@ -50,7 +49,6 @@ "type": "Microsoft.Solutions/applicationDefinitions", "location": "West US", "managedBy": null, - "resourceGroup": "rg", "tags": null, "identity": null, "sku": null, @@ -75,7 +73,7 @@ ], "description": "myManagedApplicationDef2 description", "displayName": "myManagedApplicationDef2", - "lockLevel": null, + "lockLevel": "ReadOnly", "packageFileUri": "https://path/to/packagezipfile" } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json index 7d3d798fc3dc..b82f5b0f335f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsByResourceGroup.json @@ -15,14 +15,12 @@ "type": "Microsoft.Solutions/applications", "location": "East US 2", "managedBy": null, - "resourceGroup": "rg", "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { - "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, @@ -36,14 +34,12 @@ "type": "Microsoft.Solutions/applications", "location": "West US", "managedBy": null, - "resourceGroup": "rg", "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { - "managedApplicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..5d5098c66513 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json new file mode 100644 index 000000000000..d81b4af98313 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-09-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index 2a2c87730222..be885ca7d11c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -97,6 +97,11 @@ ], "operationId": "Applications_Delete", "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -215,6 +220,11 @@ ], "operationId": "Applications_Update", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -329,6 +339,11 @@ ], "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -550,6 +565,11 @@ ], "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -584,6 +604,11 @@ ], "operationId": "Applications_GetById", "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -621,6 +646,11 @@ ], "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -742,133 +772,6 @@ } } } - }, - "/{applicationDefinitionId}": { - "get": { - "tags": [ - "ApplicationDefinitions" - ], - "operationId": "ApplicationDefinitions_GetById", - "description": "Gets the managed application definition.", - "parameters": [ - { - "name": "applicationDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns the managed application definition.", - "schema": { - "$ref": "#/definitions/ApplicationDefinition" - } - }, - "404": { - "description": "Not Found" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "ApplicationDefinitions" - ], - "operationId": "ApplicationDefinitions_DeleteById", - "description": "Deletes the managed application definition.", - "parameters": [ - { - "name": "applicationDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "204": { - "description": "NoContent" - }, - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - }, - "put": { - "tags": [ - "ApplicationDefinitions" - ], - "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", - "parameters": [ - { - "name": "applicationDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}", - "x-ms-skip-url-encoding": true - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ApplicationDefinition" - }, - "description": "Parameters supplied to the create or update a managed application definition." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the managed application definition, including provisioning status.", - "schema": { - "$ref": "#/definitions/ApplicationDefinition" - } - }, - "201": { - "description": "Created - Returns information about the managed application definition, including provisioning status.", - "schema": { - "$ref": "#/definitions/ApplicationDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - } } }, "definitions": { diff --git a/specification/solutions/resource-manager/readme.md b/specification/solutions/resource-manager/readme.md index f66b941a65b8..28d00f29a3f3 100644 --- a/specification/solutions/resource-manager/readme.md +++ b/specification/solutions/resource-manager/readme.md @@ -60,7 +60,7 @@ These settings apply only when `--tag=package-managedapplications-2021-02` is sp ``` yaml $(tag) == 'package-managedapplications-2021-02' input-file: -- Microsoft.Solutions/stable/2021-02-01-preview/managedapplications.json +- Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json ``` ### Tag: package-managedapplications-2020-08 @@ -69,7 +69,7 @@ These settings apply only when `--tag=package-managedapplications-2020-08` is sp ``` yaml $(tag) == 'package-managedapplications-2020-08' input-file: -- Microsoft.Solutions/stable/2020-08-21-preview/managedapplications.json +- Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json ``` ### Tag: package-managedapplications-2019-07 From c9f6b3f2c2c864674664d1b32216ca142c792ee8 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 11:54:38 -0700 Subject: [PATCH 03/24] Validation error. --- .../createOrUpdateApplicationById.json | 2 +- .../examples/deleteApplicationById.json | 2 +- .../examples/getApplicationById.json | 2 +- .../examples/updateApplicationById.json | 7 +- .../managedapplications.json | 1 - .../createOrUpdateApplicationDefinition.json | 2 +- ...ApplicationDefinitionsByResourceGroup.json | 2 +- .../examples/createOrUpdateJitRequest.json | 90 ++ .../2018-06-01/examples/deleteJitRequest.json | 12 + .../2018-06-01/examples/getJitRequest.json | 42 + .../listJitRequestsByResourceGroup.json | 74 + .../listJitRequestsBySubscription.json | 73 + .../refreshApplicationPermissions.json | 12 + .../2018-06-01/examples/updateJitRequest.json | 47 + .../2018-06-01/managedapplications.json | 1203 ++++++++++++++--- .../createOrUpdateApplicationById.json | 55 + .../examples/createOrUpdateJitRequest.json | 90 ++ .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../2019-07-01/examples/deleteJitRequest.json | 12 + .../examples/getApplicationById.json | 51 + .../2019-07-01/examples/getJitRequest.json | 42 + .../listApplicationsBySubscription.json | 49 + .../listJitRequestsByResourceGroup.json | 74 + .../listJitRequestsBySubscription.json | 73 + .../refreshApplicationPermissions.json | 12 + .../examples/updateApplicationById.json | 35 + .../2019-07-01/examples/updateJitRequest.json | 47 + .../2019-07-01/managedapplications.json | 71 +- 29 files changed, 2028 insertions(+), 176 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateJitRequest.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json index b7959c8b1e38..3823d0b90d01 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json index e52e950b3305..4d333b5213de 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json index 178b927b4040..3b5193e011c2 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json index 1a580d18f64c..d3deb2607370 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { "properties": { @@ -30,11 +30,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": { - "location": "https://url.to.query" - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 39cb2b39cf8b..2e1a730d0298 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -2368,7 +2368,6 @@ }, "JitSchedulingType": { "description": "The JIT request scheduling type.", - "readOnly": true, "enum": [ "NotSpecified", "Once", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json index 19d1678c1186..867051f0ec08 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json @@ -54,7 +54,7 @@ ], "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", - "lockLevel": ReadOnly, + "lockLevel": "ReadOnly", "packageFileUri": "https://path/to/packagezipfile" } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json index 62aa1bf3eb1a..cdd4733e496a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -39,7 +39,7 @@ ], "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", - "lockLevel": ReadOnly, + "lockLevel": "ReadOnly", "packageFileUri": "https://path/to/packagezipfile" } }, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..5c8e31e22499 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteJitRequest.json new file mode 100644 index 000000000000..15a8fea15b42 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-06-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json new file mode 100644 index 000000000000..cbbd511a3980 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..07c864be30cd --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsBySubscription.json new file mode 100644 index 000000000000..fec000c2221a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listJitRequestsBySubscription.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..59b9f95cef6f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateJitRequest.json new file mode 100644 index 000000000000..d65b3b5cde42 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-06-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index bd7b751c934a..fb58d185ac52 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -55,7 +55,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } } }, @@ -110,13 +110,10 @@ "$ref": "#/definitions/Application" } }, - "404": { - "description": "Not Found" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -128,7 +125,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Deletes a managed application": { + "Get a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -169,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -238,7 +235,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -251,7 +248,7 @@ "operationId": "Applications_Update", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", "x-ms-examples": { - "Updates a managed application": { + "Create or update managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -297,10 +294,13 @@ "$ref": "#/definitions/Application" } }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -352,13 +352,10 @@ "$ref": "#/definitions/ApplicationDefinition" } }, - "404": { - "description": "Not Found" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -370,7 +367,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Deletes a managed application": { + "Get a managed application": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -414,7 +411,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -483,7 +480,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -530,7 +527,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -579,7 +576,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -596,7 +593,7 @@ "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", "x-ms-examples": { - "Lists applications by subscription": { + "Lists applications": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -618,7 +615,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -635,7 +632,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Get application by id": { + "Lists applications": { "$ref": "./examples/getApplicationById.json" } }, @@ -659,13 +656,10 @@ "$ref": "#/definitions/Application" } }, - "404": { - "description": "Not Found" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -677,7 +671,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Delete application by id": { + "Lists applications": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -704,7 +698,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -717,7 +711,7 @@ "operationId": "Applications_CreateOrUpdateById", "description": "Creates a new managed application.", "x-ms-examples": { - "Create or update application by id": { + "Lists applications": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -759,7 +753,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -772,7 +766,7 @@ "operationId": "Applications_UpdateById", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", "x-ms-examples": { - "Update application by id": { + "Lists applications": { "$ref": "./examples/updateApplicationById.json" } }, @@ -807,24 +801,22 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } } - } - }, - "x-ms-paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { "get": { "tags": [ - "ApplicationDefinitions" + "JitRequests" ], - "operationId": "ApplicationDefinitions_GetById", - "description": "Gets the managed application definition.", + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", "x-ms-examples": { - "Get managed application definition": { - "$ref": "./examples/getApplicationDefinition.json" + "Lists applications": { + "$ref": "./examples/getJitRequest.json" } }, "parameters": [ @@ -839,13 +831,11 @@ "maxLength": 90 }, { - "name": "applicationDefinitionName", + "name": "jitRequestName", "in": "path", "required": true, "type": "string", - "description": "The name of the managed application definition.", - "minLength": 3, - "maxLength": 64 + "description": "The name of the JIT request." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -856,31 +846,28 @@ ], "responses": { "200": { - "description": "OK - Returns the managed application definition.", + "description": "OK - Returns the JIT request", "schema": { - "$ref": "#/definitions/ApplicationDefinition" + "$ref": "#/definitions/JitRequestDefinition" } }, - "404": { - "description": "Not Found" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } }, - "delete": { + "put": { "tags": [ - "ApplicationDefinitions" + "JitRequests" ], - "operationId": "ApplicationDefinitions_DeleteById", - "description": "Deletes the managed application definition.", + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Delete application definition": { - "$ref": "./examples/deleteApplicationDefinition.json" + "Lists applications": { + "$ref": "./examples/createOrUpdateJitRequest.json" } }, "parameters": [ @@ -895,13 +882,20 @@ "maxLength": 90 }, { - "name": "applicationDefinitionName", + "name": "jitRequestName", "in": "path", "required": true, "type": "string", - "description": "The name of the managed application definition.", - "minLength": 3, - "maxLength": 64 + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -911,33 +905,36 @@ } ], "responses": { - "204": { - "description": "NoContent" + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } }, "200": { - "description": "OK" - }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." + "description": "Ok - Returns information about existing JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-long-running-operation": true }, - "put": { + "patch": { "tags": [ - "ApplicationDefinitions" + "JitRequests" ], - "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", "x-ms-examples": { - "Create or update managed application definition": { - "$ref": "./examples/createOrUpdateApplicationDefinition.json" + "Lists applications": { + "$ref": "./examples/updateJitRequest.json" } }, "parameters": [ @@ -952,47 +949,224 @@ "maxLength": 90 }, { - "name": "applicationDefinitionName", + "name": "jitRequestName", "in": "path", "required": true, "type": "string", - "description": "The name of the managed application definition.", - "minLength": 3, - "maxLength": 64 + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." }, { "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 }, { - "name": "parameters", - "in": "body", + "name": "jitRequestName", + "in": "path", "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ApplicationDefinition" - }, - "description": "Parameters supplied to the create or update a managed application definition." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK - Returns information about the managed application definition, including provisioning status.", + "description": "OK - Returns an array of JIT requests.", "schema": { - "$ref": "#/definitions/ApplicationDefinition" + "$ref": "#/definitions/JitRequestDefinitionListResult" } }, - "201": { - "description": "Created - Returns information about the managed application definition, including provisioning status.", + "default": { + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ApplicationDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1000,23 +1174,210 @@ } } }, - "definitions": { - "Application": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApplicationProperties", - "description": "The managed application properties." - }, - "plan": { - "$ref": "#/definitions/Plan", - "description": "The plan information." - }, - "kind": { - "type": "string", - "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", - "pattern": "^[-\\w\\._,\\(\\)]+$" - } + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } }, "required": [ "properties", @@ -1033,7 +1394,7 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ApplicationPropertiesPatchable", + "$ref": "#/definitions/ApplicationProperties", "description": "The managed application properties." }, "plan": { @@ -1044,6 +1405,10 @@ "type": "string", "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." } }, "allOf": [ @@ -1094,11 +1459,63 @@ "readOnly": true, "$ref": "#/definitions/ProvisioningState", "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "managementMode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode.", + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." } }, - "required": [ - "managedResourceGroupId" - ], "description": "The managed application properties." }, "ApplicationPropertiesPatchable": { @@ -1139,30 +1556,22 @@ "description": "The managed application definition display name." }, "isEnabled": { - "type": "string", + "type": "boolean", "description": "A value indicating whether the package is enabled or not." }, "authorizations": { "description": "The managed application provider authorizations.", "type": "array", "items": { - "$ref": "#/definitions/ApplicationProviderAuthorization" - }, - "x-ms-identifiers": [ - "principalId", - "roleDefinitionId" - ] + "$ref": "#/definitions/ApplicationAuthorization" + } }, "artifacts": { "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", "type": "array", "items": { - "$ref": "#/definitions/ApplicationArtifact" - }, - "x-ms-identifiers": [ - "name", - "uri" - ] + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } }, "description": { "type": "string", @@ -1179,11 +1588,33 @@ "createUiDefinition": { "type": "object", "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } } }, "required": [ - "lockLevel", - "authorizations" + "lockLevel" ], "description": "The managed application definition properties." }, @@ -1252,10 +1683,6 @@ "sku": { "$ref": "#/definitions/Sku", "description": "The SKU of the resource." - }, - "identity": { - "$ref": "#/definitions/Identity", - "description": "The identity of the resource." } }, "allOf": [ @@ -1314,19 +1741,44 @@ "type": "string", "description": "The identity type.", "enum": [ - "SystemAssigned" + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" ], "x-ms-enum": { "name": "ResourceIdentityType", "modelAsString": false } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." } }, "description": "Identity for the resource." }, - "Resource": { + "userAssignedResourceIdentity": { "properties": { - "id": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { "readOnly": true, "type": "string", "description": "Resource ID" @@ -1392,6 +1844,7 @@ "description": "Provisioning status of the managed application.", "readOnly": true, "enum": [ + "NotSpecified", "Accepted", "Running", "Ready", @@ -1426,6 +1879,7 @@ "ApplicationArtifactType": { "description": "The managed application artifact type.", "enum": [ + "NotSpecified", "Template", "Custom" ], @@ -1435,10 +1889,38 @@ "modelAsString": false } }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, "ApplicationArtifact": { "properties": { "name": { - "type": "string", + "$ref": "#/definitions/ApplicationArtifactName", "description": "The managed application artifact name." }, "uri": { @@ -1450,9 +1932,120 @@ "description": "The managed application artifact type." } }, + "required": [ + "name", + "type", + "uri" + ], "description": "Managed application artifact." }, - "ApplicationProviderAuthorization": { + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { "properties": { "principalId": { "type": "string", @@ -1469,22 +2062,299 @@ ], "description": "The managed application provider authorization." }, - "ErrorResponse": { - "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", + "ApplicationPackageContact": { "properties": { - "httpStatus": { - "description": "Http status code.", - "type": "string" + "contactName": { + "type": "string", + "description": "The contact name." }, - "errorCode": { - "description": "Error code.", - "type": "string" + "email": { + "type": "string", + "description": "The contact email." }, - "errorMessage": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "JitRequestDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true } }, "Operation": { @@ -1514,23 +2384,30 @@ } } }, - "OperationListResult": { - "description": "Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of Microsoft.Solutions operations." - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any." - } + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true } } }, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..d126d8a73cf2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..80121770466d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json new file mode 100644 index 000000000000..3b0cb3177070 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..c808076dd0c0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteJitRequest.json new file mode 100644 index 000000000000..3089f6ba7079 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2019-07-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json new file mode 100644 index 000000000000..6abef40774f1 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json new file mode 100644 index 000000000000..b42a387150ba --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..1868eb87403f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..c72c66033fe8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsBySubscription.json new file mode 100644 index 000000000000..e2ce70b0f26a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listJitRequestsBySubscription.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..5e0769ee2017 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..3264abe598a2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateJitRequest.json new file mode 100644 index 000000000000..3346b314da48 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2019-07-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index b0a8ddd1c017..a81748b74240 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -124,6 +124,11 @@ ], "operationId": "Applications_Delete", "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -361,6 +366,11 @@ ], "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -582,6 +592,11 @@ ], "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -616,6 +631,11 @@ ], "operationId": "Applications_GetById", "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -650,6 +670,11 @@ ], "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -685,6 +710,11 @@ ], "operationId": "Applications_CreateOrUpdateById", "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -735,6 +765,11 @@ ], "operationId": "Applications_UpdateById", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -779,6 +814,11 @@ ], "operationId": "JitRequests_Get", "description": "Gets the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -825,6 +865,11 @@ ], "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -887,6 +932,11 @@ ], "operationId": "JitRequests_Update", "description": "Updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -942,6 +992,11 @@ ], "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteJitRequest.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -990,6 +1045,11 @@ ], "operationId": "jitRequests_ListBySubscription", "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -1021,6 +1081,11 @@ ], "operationId": "jitRequests_ListByResourceGroup", "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -1062,6 +1127,11 @@ ], "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -2276,7 +2346,6 @@ }, "JitSchedulingType": { "description": "The JIT request scheduling type.", - "readOnly": true, "enum": [ "NotSpecified", "Once", From 2a6bf82224b43277d5afad36ad92dc788218c4f0 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 12:47:20 -0700 Subject: [PATCH 04/24] Fixed validation errors. --- .../examples/listToken.json | 11 + .../refreshApplicationPermissions.json | 1 - .../examples/updateAccess.json | 11 + .../managedapplications.json | 255 +++++++++++++++++ .../examples/deleteApplication.json | 2 +- .../examples/listToken.json | 11 + .../refreshApplicationPermissions.json | 1 - .../examples/updateAccess.json | 11 + .../managedapplications.json | 255 +++++++++++++++++ .../examples/createOrUpdateApplication.json | 22 +- .../createOrUpdateApplicationById.json | 58 ++++ .../createOrUpdateApplicationDefinition.json | 38 ++- .../examples/deleteApplicationById.json | 2 +- .../examples/getApplicationById.json | 29 +- .../examples/updateApplicationById.json | 35 +++ .../2017-09-01/managedapplications.json | 10 + .../examples/createOrUpdateApplication.json | 7 +- .../createOrUpdateApplicationById.json | 14 +- .../createOrUpdateApplicationDefinition.json | 10 +- .../examples/deleteApplication.json | 4 +- .../examples/deleteApplicationById.json | 6 +- .../examples/deleteApplicationDefinition.json | 3 +- .../2018-06-01/examples/getApplication.json | 29 +- .../examples/getApplicationById.json | 33 ++- .../examples/getApplicationDefinition.json | 13 +- ...ApplicationDefinitionsByResourceGroup.json | 6 +- .../listApplicationsByResourceGroup.json | 2 + .../listApplicationsBySubscription.json | 6 +- .../stable/2018-06-01/examples/listToken.json | 11 + .../refreshApplicationPermissions.json | 1 - .../2018-06-01/examples/updateAccess.json | 11 + .../examples/updateApplication.json | 5 + .../examples/updateApplicationById.json | 2 +- .../2018-06-01/managedapplications.json | 258 ++++++++++++++++++ .../examples/deleteApplication.json | 2 +- .../examples/deleteApplicationDefinition.json | 1 - .../stable/2019-07-01/examples/listToken.json | 11 + .../refreshApplicationPermissions.json | 1 - .../2019-07-01/examples/updateAccess.json | 11 + .../2019-07-01/managedapplications.json | 255 +++++++++++++++++ .../examples/deleteApplication.json | 2 +- .../stable/2021-07-01/examples/listToken.json | 11 + .../refreshApplicationPermissions.json | 1 - .../2021-07-01/examples/updateAccess.json | 11 + .../2021-07-01/managedapplications.json | 255 +++++++++++++++++ 45 files changed, 1651 insertions(+), 83 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json new file mode 100644 index 000000000000..33de943d55d8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json index db5b435c1515..5be65aac2e58 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json @@ -6,7 +6,6 @@ "api-version": "2020-08-21-preview" }, "responses": { - "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json new file mode 100644 index 000000000000..5be65aac2e58 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 2e1a730d0298..8d36cccd09e2 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -1181,6 +1181,120 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "x-ms-paths": { @@ -2456,6 +2570,147 @@ "name": "ApplicationManagementMode", "modelAsString": true } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "RequestorId": { + "type": "string", + "description": "The requestor id." + }, + "TenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "SubjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json index 762193569d63..3af58b099185 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json @@ -6,7 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { - "200": {}, + "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json new file mode 100644 index 000000000000..e01ecb7b583a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json index 0b74be016c96..780167e03d94 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json @@ -6,7 +6,6 @@ "api-version": "2021-02-01-preview" }, "responses": { - "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json new file mode 100644 index 000000000000..780167e03d94 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 7e8df9f17f37..7c0abb78a091 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -920,6 +920,120 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -2058,6 +2172,147 @@ "name": "ApplicationManagementMode", "modelAsString": true } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "RequestorId": { + "type": "string", + "description": "The requestor id." + }, + "TenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "SubjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json index aeb83278f0ae..ea69a7768cb9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json @@ -13,7 +13,27 @@ } }, "responses": { - "200": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..35092debc73b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-09-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json index 867051f0ec08..053cf880c451 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json @@ -21,7 +21,43 @@ } }, "responses": { - "200" : {}, + "200" : { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json index 2f414f821cee..fc741df6b4f7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2017-09-01" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json index 81b6c8e559db..f5d34d522319 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2017-09-01" }, "responses": { @@ -10,40 +10,19 @@ "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "type": "Microsoft.Solutions/applications", + "location": "East US 2", "managedBy": null, + "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, "provisioningState": "Created", - "billingDetails": null, - "jitAccessPolicy": null, - "publisherTenantId": null, - "authorizations": [ - { - "principalId": "validprincipalguid", - "roleDefinitionId": "validroleguid" - } - ], - "managementMode": "Managed", - "customerSupport": null, - "supportUrls": null, - "artifacts": [], - "createdBy": { - "oid": "ClientOid", - "puid": "ClientPuid", - "applicationId": "ClientApplicationId" - }, - "updatedBy": { - "oid": "ClientOid", - "puid": "ClientPuid", - "applicationId": "ClientApplicationId" - } + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..50d7d44cd593 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-09-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index be885ca7d11c..90c3d5c43a8b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -686,6 +686,11 @@ ], "operationId": "Applications_CreateOrUpdateById", "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -736,6 +741,11 @@ ], "operationId": "Applications_UpdateById", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json index 451460766d90..6bdab06579ef 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01", "parameters": { "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" }, "location": "East US 2", @@ -13,7 +14,7 @@ } }, "responses": { - "201": { + "200": { "headers": {}, "body": { "name": "myManagedApplication", @@ -27,6 +28,7 @@ "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, @@ -34,7 +36,7 @@ } } }, - "200": { + "201": { "headers": {}, "body": { "name": "myManagedApplication", @@ -48,6 +50,7 @@ "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json index 71d06101e915..3b778977a04a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json @@ -1,30 +1,29 @@ { "parameters": { - "applicationId": "myApplicationId", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01", "parameters": { "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" }, - "location": "East US 2", "kind": "ServiceCatalog" } }, "responses": { - "201": { + "200": { "headers": {}, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "type": "Microsoft.Solutions/applications", - "location": "East US 2", "managedBy": null, - "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, @@ -32,20 +31,19 @@ } } }, - "200": { + "201": { "headers": {}, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "type": "Microsoft.Solutions/applications", - "location": "East US 2", "managedBy": null, - "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json index 745348a35fe4..ffdbf4986a58 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json @@ -21,7 +21,7 @@ } }, "responses": { - "201": { + "200": { "headers": {}, "body": { "name": "myManagedApplicationDef", @@ -30,7 +30,6 @@ "location": "East US 2", "managedBy": null, "tags": null, - "identity": null, "sku": null, "properties": { "artifacts": [ @@ -40,7 +39,7 @@ "uri": "https://path/to/managedApplicationCreateUiDefinition.json" }, { - "name": "ManagedApplicationResourceTemplate", + "name": "ApplicationResourceTemplate", "type": "Template", "uri": "https://path/to/mainTemplate.json" } @@ -58,7 +57,7 @@ } } }, - "200": { + "201": { "headers": {}, "body": { "name": "myManagedApplicationDef", @@ -67,7 +66,6 @@ "location": "East US 2", "managedBy": null, "tags": null, - "identity": null, "sku": null, "properties": { "artifacts": [ @@ -77,7 +75,7 @@ "uri": "https://path/to/managedApplicationCreateUiDefinition.json" }, { - "name": "ManagedApplicationResourceTemplate", + "name": "ApplicationResourceTemplate", "type": "Template", "uri": "https://path/to/mainTemplate.json" } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json index c1ad3fb56744..8e3893f8b060 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json @@ -6,7 +6,7 @@ "api-version": "2018-06-01" }, "responses": { - "204": {}, - "202": {} + "202": {}, + "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json index f1fb09280cb5..a25377d70d20 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -1,10 +1,10 @@ { "parameters": { - "applicationId": "myApplicationId", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01" }, "responses": { - "204": {}, - "202": {} + "202": {}, + "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json index 72e9f6531a59..7986b6fb4e13 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json @@ -6,8 +6,7 @@ "api-version": "2018-06-01" }, "responses": { - "204": {}, "200": {}, - "202": {} + "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json index 339b581af507..cf9755b8f360 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json @@ -20,13 +20,36 @@ "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, - "provisioningState": "Created" + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } } } - }, - "404": {} + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json index 10109822f0e7..7cd391f39df1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "myApplicationId", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01" }, "responses": { @@ -10,21 +10,42 @@ "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "type": "Microsoft.Solutions/applications", - "location": "East US 2", "managedBy": null, - "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, - "provisioningState": "Created" + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } } } - }, - "404": {} + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json index b6886c726d4d..d70615fb0a41 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json @@ -15,7 +15,6 @@ "location": "East US 2", "managedBy": null, "tags": null, - "identity": null, "sku": null, "properties": { "artifacts": [ @@ -25,7 +24,7 @@ "uri": "https://path/to/managedApplicationCreateUiDefinition.json" }, { - "name": "ManagedApplicationResourceTemplate", + "name": "ApplicationResourceTemplate", "type": "Template", "uri": "https://path/to/mainTemplate.json" } @@ -39,10 +38,14 @@ "description": "myManagedApplicationDef description", "displayName": "myManagedApplicationDef", "lockLevel": "None", - "packageFileUri": "https://path/to/packagezipfile" + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] } } - }, - "404": {} + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json index a7924b761b65..d734ac106db3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -16,7 +16,6 @@ "location": "East US 2", "managedBy": null, "tags": null, - "identity": null, "sku": null, "properties": { "artifacts": [ @@ -26,7 +25,7 @@ "uri": "https://path/to/managedApplicationCreateUiDefinition.json" }, { - "name": "ManagedApplicationResourceTemplate", + "name": "ApplicationResourceTemplate", "type": "Template", "uri": "https://path/to/mainTemplate.json" } @@ -50,7 +49,6 @@ "location": "West US", "managedBy": null, "tags": null, - "identity": null, "sku": null, "properties": { "artifacts": [ @@ -60,7 +58,7 @@ "uri": "https://path/to/managedApplicationCreateUiDefinition.json" }, { - "name": "ManagedApplicationResourceTemplate", + "name": "ApplicationResourceTemplate", "type": "Template", "uri": "https://path/to/mainTemplate.json" } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json index ffc143598fec..c03f9236ddda 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json @@ -21,6 +21,7 @@ "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, @@ -39,6 +40,7 @@ "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json index 447651b364f0..e73780a97c0e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json @@ -12,14 +12,13 @@ "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "type": "Microsoft.Solutions/applications", - "location": "East US 2", "managedBy": null, - "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, @@ -30,14 +29,13 @@ "name": "myManagedApplication2", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", "type": "Microsoft.Solutions/applications", - "location": "West US", "managedBy": null, - "tags": null, "plan": null, "identity": null, "kind": "ServiceCatalog", "sku": null, "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", "outputs": null, "parameters": null, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json new file mode 100644 index 000000000000..79b4cb609074 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json index 59b9f95cef6f..18b3472453b4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json @@ -6,7 +6,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json new file mode 100644 index 000000000000..18b3472453b4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json index f356f65167ea..8da3b40fdc9c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -32,6 +32,11 @@ "provisioningState": "Created" } } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json index 673261ecdf00..be269a5412c7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "myApplicationId", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index fb58d185ac52..9c68fecbd80f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -110,6 +110,9 @@ "$ref": "#/definitions/Application" } }, + "404": { + "description": "NotFound" + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1172,6 +1175,120 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "x-ms-paths": { @@ -2409,6 +2526,147 @@ "name": "ApplicationManagementMode", "modelAsString": true } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "RequestorId": { + "type": "string", + "description": "The requestor id." + }, + "TenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "SubjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json index 3b0cb3177070..70ec0f700718 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json @@ -6,7 +6,7 @@ "api-version": "2019-07-01" }, "responses": { - "200": {}, + "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json index c542a5d3dd5f..7ef8f8207110 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json new file mode 100644 index 000000000000..b8af36525641 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json index 5e0769ee2017..d9f10c672d3e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json @@ -6,7 +6,6 @@ "api-version": "2019-07-01" }, "responses": { - "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json new file mode 100644 index 000000000000..d9f10c672d3e --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index a81748b74240..9e21d7a27b4e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -1172,6 +1172,120 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "x-ms-paths": { @@ -2409,6 +2523,147 @@ "name": "ApplicationManagementMode", "modelAsString": true } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "RequestorId": { + "type": "string", + "description": "The requestor id." + }, + "TenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "SubjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json index 3d175e81486a..12ae39df4e58 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json @@ -6,7 +6,7 @@ "api-version": "2021-07-01" }, "responses": { - "200": {}, + "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json new file mode 100644 index 000000000000..6a93ca6853dc --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json index e22ab9fd8a88..cc21409d387f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json @@ -6,7 +6,6 @@ "api-version": "2021-07-01" }, "responses": { - "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json new file mode 100644 index 000000000000..cc21409d387f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index f0cd114d62ae..0a9e39e974c5 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -968,6 +968,120 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -2081,6 +2195,147 @@ "name": "ApplicationManagementMode", "modelAsString": true } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "RequestorId": { + "type": "string", + "description": "The requestor id." + }, + "TenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "SubjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { From 5cb675eda8bb09e527247b5294b5144df0031d48 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 15:17:46 -0700 Subject: [PATCH 05/24] Fixed validation errors. --- .../examples/listToken.json | 24 +++++++++- .../examples/updateAccess.json | 32 ++++++++++++- .../managedapplications.json | 43 ++++++----------- .../examples/listToken.json | 24 +++++++++- .../examples/updateAccess.json | 32 ++++++++++++- .../managedapplications.json | 39 +++++----------- .../examples/createOrUpdateApplication.json | 1 + .../createOrUpdateApplicationById.json | 3 +- .../stable/2018-06-01/examples/listToken.json | 24 +++++++++- .../2018-06-01/examples/updateAccess.json | 32 ++++++++++++- .../2018-06-01/managedapplications.json | 40 ++++++---------- .../stable/2019-07-01/examples/listToken.json | 24 +++++++++- .../2019-07-01/examples/updateAccess.json | 32 ++++++++++++- .../2019-07-01/managedapplications.json | 46 ++++++------------- .../stable/2021-07-01/examples/listToken.json | 24 +++++++++- .../2021-07-01/examples/updateAccess.json | 32 ++++++++++++- .../2021-07-01/managedapplications.json | 24 +++------- 17 files changed, 321 insertions(+), 155 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json index 33de943d55d8..fedc3008a1ba 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -3,9 +3,29 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2020-08-21-preview" + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index 5be65aac2e58..2afeca79c3f1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -3,9 +3,37 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2020-08-21-preview" + "api-version": "2020-08-21-preview", + "parameters": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } }, "responses": { - "202": {} + "202": { + "headers": {}, + "body": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 8d36cccd09e2..4fe2bbf67b4b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -294,12 +294,6 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", - "schema": { - "$ref": "#/definitions/Application" - } - }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -411,17 +405,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/CloudError" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -489,8 +479,7 @@ "$ref": "#/definitions/CloudError" } } - }, - "x-ms-long-running-operation": true + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -798,8 +787,8 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { "$ref": "#/definitions/Application" } @@ -810,7 +799,8 @@ "$ref": "#/definitions/CloudError" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1166,9 +1156,6 @@ } ], "responses": { - "200": { - "description": "Ok" - }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1236,7 +1223,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { @@ -1397,17 +1385,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/CloudError" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -1475,8 +1459,7 @@ "$ref": "#/definitions/CloudError" } } - }, - "x-ms-long-running-operation": true + } } } }, @@ -2603,15 +2586,15 @@ "type": "string", "description": "The origin request id." }, - "RequestorId": { + "requestorId": { "type": "string", "description": "The requestor id." }, - "TenantDisplayName": { + "tenantDisplayName": { "type": "string", "description": "The publisher's tenant name." }, - "SubjectDisplayName": { + "subjectDisplayName": { "type": "string", "description": "The subject display name." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json index e01ecb7b583a..9abda05acfad 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json @@ -3,9 +3,29 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2021-02-01-preview" + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json index 780167e03d94..ac44afbceb49 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -3,9 +3,37 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2021-02-01-preview" + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } }, "responses": { - "202": {} + "202": { + "headers": {}, + "body": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 7c0abb78a091..7a275508bdd5 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -140,7 +140,7 @@ "204": { "description": "NoContent" }, - "200": { + "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { @@ -216,7 +216,7 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/updateApplication.json" @@ -245,8 +245,8 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { "$ref": "#/definitions/Application" } @@ -257,7 +257,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -333,17 +334,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -398,10 +395,6 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" } }, "patch": { @@ -698,12 +691,6 @@ "$ref": "#/definitions/JitRequestDefinition" } }, - "200": { - "description": "Ok - Returns information about existing JIT request.", - "schema": { - "$ref": "#/definitions/JitRequestDefinition" - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -905,9 +892,6 @@ } ], "responses": { - "200": { - "description": "Ok" - }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -975,7 +959,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { @@ -2205,15 +2190,15 @@ "type": "string", "description": "The origin request id." }, - "RequestorId": { + "requestorId": { "type": "string", "description": "The requestor id." }, - "TenantDisplayName": { + "tenantDisplayName": { "type": "string", "description": "The publisher's tenant name." }, - "SubjectDisplayName": { + "subjectDisplayName": { "type": "string", "description": "The subject display name." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json index ea69a7768cb9..f63e20d5907f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json @@ -33,6 +33,7 @@ "provisioningState": "Created", "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" } + } }, "201": { "headers": {}, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json index 35092debc73b..49021bcae708 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json @@ -31,7 +31,8 @@ "provisioningState": "Created", "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" } - }, + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json index 79b4cb609074..ee2f915f8969 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json @@ -3,9 +3,29 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2018-06-01" + "api-version": "2018-06-01", + "parameters": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json index 18b3472453b4..913ccc354163 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -3,9 +3,37 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2018-06-01" + "api-version": "2018-06-01", + "parameters": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } }, "responses": { - "202": {} + "202": { + "headers": {}, + "body": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 9c68fecbd80f..54386a2f0acf 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -306,7 +306,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -408,17 +409,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -486,8 +483,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -795,8 +791,8 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { "$ref": "#/definitions/Application" } @@ -807,7 +803,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -914,12 +911,6 @@ "$ref": "#/definitions/JitRequestDefinition" } }, - "200": { - "description": "Ok - Returns information about existing JIT request.", - "schema": { - "$ref": "#/definitions/JitRequestDefinition" - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1391,17 +1382,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -1469,8 +1456,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } } } }, @@ -2559,15 +2545,15 @@ "type": "string", "description": "The origin request id." }, - "RequestorId": { + "requestorId": { "type": "string", "description": "The requestor id." }, - "TenantDisplayName": { + "tenantDisplayName": { "type": "string", "description": "The publisher's tenant name." }, - "SubjectDisplayName": { + "subjectDisplayName": { "type": "string", "description": "The subject display name." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json index b8af36525641..7a94a4f70a4f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json @@ -3,9 +3,29 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2019-07-01" + "api-version": "2019-07-01", + "parameters": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json index d9f10c672d3e..157f76daa097 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json @@ -3,9 +3,37 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2019-07-01" + "api-version": "2019-07-01", + "parameters": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } }, "responses": { - "202": {} + "202": { + "headers": {}, + "body": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 9e21d7a27b4e..aec4e87686af 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -288,12 +288,6 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", - "schema": { - "$ref": "#/definitions/Application" - } - }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -303,7 +297,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -405,17 +400,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -483,8 +474,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -792,8 +782,8 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { "$ref": "#/definitions/Application" } @@ -804,7 +794,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -911,12 +902,6 @@ "$ref": "#/definitions/JitRequestDefinition" } }, - "200": { - "description": "Ok - Returns information about existing JIT request.", - "schema": { - "$ref": "#/definitions/JitRequestDefinition" - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1388,17 +1373,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -1466,8 +1447,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } } } }, @@ -2556,15 +2536,15 @@ "type": "string", "description": "The origin request id." }, - "RequestorId": { + "requestorId": { "type": "string", "description": "The requestor id." }, - "TenantDisplayName": { + "tenantDisplayName": { "type": "string", "description": "The publisher's tenant name." }, - "SubjectDisplayName": { + "subjectDisplayName": { "type": "string", "description": "The subject display name." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json index 6a93ca6853dc..2e01f1440571 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json @@ -3,9 +3,29 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2021-07-01" + "api-version": "2021-07-01", + "parameters": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "properties": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json index cc21409d387f..09204680f3a3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json @@ -3,9 +3,37 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "applicationName": "myManagedApplication", - "api-version": "2021-07-01" + "api-version": "2021-07-01", + "parameters": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } }, "responses": { - "202": {} + "202": { + "headers": {}, + "body": { + "properties": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 0a9e39e974c5..a272d120a090 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -140,7 +140,7 @@ "204": { "description": "NoContent" }, - "200": { + "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { @@ -263,7 +263,8 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -339,17 +340,13 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ @@ -404,10 +401,6 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" } }, "patch": { @@ -914,9 +907,6 @@ } ], "responses": { - "200": { - "description": "Ok" - }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -2228,15 +2218,15 @@ "type": "string", "description": "The origin request id." }, - "RequestorId": { + "requestorId": { "type": "string", "description": "The requestor id." }, - "TenantDisplayName": { + "tenantDisplayName": { "type": "string", "description": "The publisher's tenant name." }, - "SubjectDisplayName": { + "subjectDisplayName": { "type": "string", "description": "The subject display name." } From 1d836d49e19ed18ba29c408c6ea637ae1885780b Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 15:39:54 -0700 Subject: [PATCH 06/24] Validation error. --- .../examples/createOrUpdateJitRequest.json | 32 ------------------- .../examples/deleteApplicationDefinition.json | 1 - .../examples/getApplication.json | 1 + .../examples/getApplicationById.json | 1 + .../examples/updateAccess.json | 20 ++++++------ .../examples/updateApplication.json | 7 +--- .../examples/updateApplicationById.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 ------------------- .../examples/deleteApplicationDefinition.json | 1 - .../examples/updateApplication.json | 2 +- .../examples/getApplicationById.json | 1 + .../examples/createOrUpdateJitRequest.json | 32 ------------------- .../2018-06-01/examples/getApplication.json | 1 + .../examples/getApplicationById.json | 1 + .../examples/updateApplication.json | 7 +--- .../examples/updateApplicationById.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 ------------------- .../2019-07-01/examples/getApplication.json | 1 + .../examples/getApplicationById.json | 1 + .../examples/updateApplication.json | 7 +--- .../examples/updateApplicationById.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 ------------------- .../examples/deleteApplicationDefinition.json | 1 - .../2021-07-01/examples/getApplication.json | 1 + .../examples/getApplicationDefinition.json | 1 + .../2021-07-01/examples/getJitRequest.json | 1 + .../examples/updateApplication.json | 7 +--- 27 files changed, 28 insertions(+), 201 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json index 7a4ae980207b..a22e8416a4ee 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json @@ -22,38 +22,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", - "jitAuthorizationPolicies": [ - { - "principalId": "1db8e132e2934dbcb8e1178a61319491", - "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" - } - ], - "jitSchedulingPolicy": { - "type": "Once", - "duration": "PT8H", - "startTime": "2021-04-22T05:48:30.6661804Z" - }, - "provisioningState": "Accepted", - "jitRequestState": "Pending", - "createdBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - }, - "updatedBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - } - }, - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", - "name": "myJitRequest", - "type": "Microsoft.Solutions/jitRequests" - } - }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json index ec85348c1fa0..f1334df10e8e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json index 9d1b515434d6..8f45bb842cb8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplication.json @@ -6,6 +6,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json index 3b5193e011c2..bc51ffeb6b1f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index 2afeca79c3f1..a5d33e761494 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -8,32 +8,32 @@ "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } + } } }, "responses": { "202": { - "headers": {}, + "headers": {}, "body": { "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json index 91d1637cd87c..5c51593db049 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -13,7 +13,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", @@ -32,11 +32,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": { - "location": "https://url.to.query" - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json index d3deb2607370..e01958fb9236 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json @@ -11,7 +11,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json index 0b30d99f42df..c6f1a76a876c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json @@ -22,38 +22,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", - "jitAuthorizationPolicies": [ - { - "principalId": "1db8e132e2934dbcb8e1178a61319491", - "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" - } - ], - "jitSchedulingPolicy": { - "type": "Once", - "duration": "PT8H", - "startTime": "2021-04-22T05:48:30.6661804Z" - }, - "provisioningState": "Accepted", - "jitRequestState": "Pending", - "createdBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - }, - "updatedBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - } - }, - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", - "name": "myJitRequest", - "type": "Microsoft.Solutions/jitRequests" - } - }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json index 513f23ae9c1a..99732f413f87 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json index d7a647f487bb..d61023f60f0c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json @@ -13,7 +13,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json index f5d34d522319..12ee6607ea2a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2017-09-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json index 5c8e31e22499..817ac906e4c9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json @@ -22,38 +22,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", - "jitAuthorizationPolicies": [ - { - "principalId": "1db8e132e2934dbcb8e1178a61319491", - "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" - } - ], - "jitSchedulingPolicy": { - "type": "Once", - "duration": "PT8H", - "startTime": "2021-04-22T05:48:30.6661804Z" - }, - "provisioningState": "Accepted", - "jitRequestState": "Pending", - "createdBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - }, - "updatedBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - } - }, - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", - "name": "myJitRequest", - "type": "Microsoft.Solutions/jitRequests" - } - }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json index cf9755b8f360..458e05a81548 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json index 7cd391f39df1..3015a2f7f5a2 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2018-06-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json index 8da3b40fdc9c..8b702bd427a6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -13,7 +13,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", @@ -32,11 +32,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": { - "location": "https://url.to.query" - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json index be269a5412c7..6b49d168c093 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -11,7 +11,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json index 80121770466d..c230a8aacdeb 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json @@ -22,38 +22,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", - "jitAuthorizationPolicies": [ - { - "principalId": "1db8e132e2934dbcb8e1178a61319491", - "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" - } - ], - "jitSchedulingPolicy": { - "type": "Once", - "duration": "PT8H", - "startTime": "2021-04-22T05:48:30.6661804Z" - }, - "provisioningState": "Accepted", - "jitRequestState": "Pending", - "createdBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - }, - "updatedBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - } - }, - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", - "name": "myJitRequest", - "type": "Microsoft.Solutions/jitRequests" - } - }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json index d47cbf060e59..f68be57e7a88 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplication.json @@ -6,6 +6,7 @@ "api-version": "2019-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json index 6abef40774f1..9c7a65fd0a88 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2019-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json index b9722b2d6d2e..31c4c17c9c95 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json @@ -13,7 +13,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", @@ -32,11 +32,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": { - "location": "https://url.to.query" - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json index 3264abe598a2..a55deaf42b20 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json @@ -11,7 +11,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json index 3bbd72a63221..b6aa8ff12b7d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json @@ -22,38 +22,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", - "jitAuthorizationPolicies": [ - { - "principalId": "1db8e132e2934dbcb8e1178a61319491", - "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" - } - ], - "jitSchedulingPolicy": { - "type": "Once", - "duration": "PT8H", - "startTime": "2021-04-22T05:48:30.6661804Z" - }, - "provisioningState": "Accepted", - "jitRequestState": "Pending", - "createdBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - }, - "updatedBy": { - "oid": "", - "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" - } - }, - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", - "name": "myJitRequest", - "type": "Microsoft.Solutions/jitRequests" - } - }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationDefinition.json index 60cf6cbf6fcb..15e5245ed236 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplication.json index d33c2cbaa746..e0cdc84f0bfc 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplication.json @@ -6,6 +6,7 @@ "api-version": "2021-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationDefinition.json index 91e569f3c4c7..8e61de21c43d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationDefinition.json @@ -6,6 +6,7 @@ "api-version": "2021-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getJitRequest.json index fd92b3dd993c..37f30b28afd6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getJitRequest.json @@ -6,6 +6,7 @@ "api-version": "2021-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json index b9722b2d6d2e..31c4c17c9c95 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json @@ -13,7 +13,7 @@ } }, "responses": { - "200": { + "202": { "headers": {}, "body": { "name": "myManagedApplication", @@ -32,11 +32,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": { - "location": "https://url.to.query" - } } } } From 3a00d9adc558d5364b3d2d8c8e29d4ceb985f694 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 16:20:30 -0700 Subject: [PATCH 07/24] Validation errors. --- .../examples/getApplicationDefinition.json | 1 + .../examples/getJitRequest.json | 1 + .../examples/listToken.json | 26 +++++++--------- .../examples/updateAccess.json | 22 ++++++-------- .../managedapplications.json | 20 ++++++++++++- .../examples/getApplication.json | 1 + .../examples/getApplicationDefinition.json | 1 + .../examples/getJitRequest.json | 1 + .../examples/listToken.json | 26 +++++++--------- .../examples/updateAccess.json | 28 ++++++++--------- .../managedapplications.json | 9 ++++++ .../examples/getApplicationDefinition.json | 2 +- .../examples/getApplicationDefinition.json | 1 + .../2018-06-01/examples/getJitRequest.json | 1 + .../stable/2018-06-01/examples/listToken.json | 24 +++++++-------- .../2018-06-01/examples/updateAccess.json | 18 +++++------ .../2018-06-01/managedapplications.json | 18 +++++++---- .../examples/getApplicationDefinition.json | 1 + .../2019-07-01/examples/getJitRequest.json | 1 + .../stable/2019-07-01/examples/listToken.json | 26 +++++++--------- .../2019-07-01/examples/updateAccess.json | 30 ++++++++----------- .../2019-07-01/managedapplications.json | 17 ++++++++++- .../stable/2021-07-01/examples/listToken.json | 26 +++++++--------- .../2021-07-01/examples/updateAccess.json | 30 ++++++++----------- .../2021-07-01/managedapplications.json | 18 +++++++---- 25 files changed, 187 insertions(+), 162 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json index 543bdd5ab96b..65226af361c9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getApplicationDefinition.json @@ -6,6 +6,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json index 6e4a02ec32a9..54a6a1dd3a87 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/getJitRequest.json @@ -6,6 +6,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json index fedc3008a1ba..4f99bbaa6cf3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -5,27 +5,23 @@ "applicationName": "myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { - "properties": { "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } }, "responses": { "200": { "headers": {}, "body": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index a5d33e761494..b15ef900fb76 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -5,24 +5,21 @@ "applicationName": "myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { - "properties": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } - } + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } }, "responses": { "202": { "headers": {}, "body": { - "properties": { "approver": "amauser", "status": "Elevate", "subStatus": "Approved", @@ -32,7 +29,6 @@ "tenantDisplayName": "TenantDisplayName", "subjectDisplayName": "SubjectDisplayName" } - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 4fe2bbf67b4b..da89a145c2a4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -110,6 +110,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -295,7 +298,10 @@ ], "responses": { "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/Application" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -346,6 +352,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { @@ -645,6 +654,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -841,6 +853,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the JIT request", "schema": { @@ -1326,6 +1341,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json index a8633eab0b49..ba52773a9ad1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplication.json @@ -6,6 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json index ad9ba601dbd5..89201977f987 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationDefinition.json @@ -6,6 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json index f3227fa2dd58..ce85662fd3fb 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getJitRequest.json @@ -6,6 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json index 9abda05acfad..52ff969fdb27 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json @@ -5,27 +5,23 @@ "applicationName": "myManagedApplication", "api-version": "2021-02-01-preview", "parameters": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } }, "responses": { "200": { "headers": {}, "body": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json index ac44afbceb49..ceea08e3c064 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -5,34 +5,30 @@ "applicationName": "myManagedApplication", "api-version": "2021-02-01-preview", "parameters": { - "properties": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } - } + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" } + } }, "responses": { "202": { "headers": {}, "body": { - "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 7a275508bdd5..f984165a0e0a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -97,6 +97,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -288,6 +291,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { @@ -636,6 +642,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the JIT request", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json index 2e63e602aa00..73979f1723a9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json @@ -6,7 +6,7 @@ "api-version": "2017-09-01" }, "responses": { - "404": {}, + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json index d70615fb0a41..7ba14dc7d1a0 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json index cbbd511a3980..c043852f2eaa 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getJitRequest.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json index ee2f915f8969..f39d14a4010f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json @@ -5,27 +5,23 @@ "applicationName": "myManagedApplication", "api-version": "2018-06-01", "parameters": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } }, "responses": { "200": { "headers": {}, "body": { - "properties": { "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json index 913ccc354163..868a3cb652ff 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -8,32 +8,30 @@ "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } + } } }, "responses": { "202": { "headers": {}, "body": { - "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 54386a2f0acf..aff9fc65f670 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -291,15 +291,12 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/UpdateAccessDefinition" } }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -350,6 +347,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { @@ -649,6 +649,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -845,6 +848,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the JIT request", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json index 2b3b9fc39618..c4e67e41e75f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getApplicationDefinition.json @@ -6,6 +6,7 @@ "api-version": "2019-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json index b42a387150ba..65a8a0a7001d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/getJitRequest.json @@ -6,6 +6,7 @@ "api-version": "2019-07-01" }, "responses": { + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json index 7a94a4f70a4f..08e834b2ae87 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json @@ -5,27 +5,23 @@ "applicationName": "myManagedApplication", "api-version": "2019-07-01", "parameters": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } }, "responses": { "200": { "headers": {}, "body": { - "properties": { "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } - } + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json index 157f76daa097..b69fd4719b1a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json @@ -5,35 +5,31 @@ "applicationName": "myManagedApplication", "api-version": "2019-07-01", "parameters": { - "properties": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } - } + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" } + } }, "responses": { "202": { "headers": {}, "body": { - "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index aec4e87686af..35c5df877fa1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -104,6 +104,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -289,7 +292,10 @@ ], "responses": { "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -341,6 +347,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { @@ -640,6 +649,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -836,6 +848,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the JIT request", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json index 2e01f1440571..95a2cf0c8572 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json @@ -5,27 +5,23 @@ "applicationName": "myManagedApplication", "api-version": "2021-07-01", "parameters": { - "properties": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] } }, "responses": { "200": { "headers": {}, "body": { - "properties": { "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } - } + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json index 09204680f3a3..93e80d248873 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json @@ -5,35 +5,31 @@ "applicationName": "myManagedApplication", "api-version": "2021-07-01", "parameters": { - "properties": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } - } + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" } + } }, "responses": { "202": { "headers": {}, "body": { - "properties": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" + "subjectDisplayName": "SubjectDisplayName" } - } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index a272d120a090..1a5003cc88ff 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -97,6 +97,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application.", "schema": { @@ -248,15 +251,12 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/UpdateAccessDefinition" } }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -294,6 +294,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { @@ -642,6 +645,9 @@ } ], "responses": { + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the JIT request", "schema": { From 5eca2bf41091e08759eb738c2f217c61e547782d Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 17:29:41 -0700 Subject: [PATCH 08/24] Validation errors. --- .../examples/listToken.json | 2 +- .../managedapplications.json | 14 ++++--------- .../managedapplications.json | 4 ++-- .../2018-06-01/examples/updateAccess.json | 20 +++++++++---------- .../2018-06-01/managedapplications.json | 9 +++++---- .../2019-07-01/managedapplications.json | 7 ++++--- .../2021-07-01/managedapplications.json | 2 +- 7 files changed, 26 insertions(+), 32 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json index 4f99bbaa6cf3..e17832d298b4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2020-08-21-preview", - "parameters": { + "parameters": { "authorizationAudience": "authorizationAudience", "userAssignedIdentities": [ "IdentityOne", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index da89a145c2a4..53b65384eda9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -300,7 +300,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -790,7 +790,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -802,7 +802,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -922,12 +922,6 @@ "$ref": "#/definitions/JitRequestDefinition" } }, - "200": { - "description": "Ok - Returns information about existing JIT request.", - "schema": { - "$ref": "#/definitions/JitRequestDefinition" - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1222,7 +1216,7 @@ "schema": { "$ref": "#/definitions/UpdateAccessDefinition" }, - "description": "Request body parameters to list tokens." + "description": "Request body parameters to update access." } ], "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index f984165a0e0a..3e85c20715e6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -251,7 +251,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -952,7 +952,7 @@ "schema": { "$ref": "#/definitions/UpdateAccessDefinition" }, - "description": "Request body parameters to list tokens." + "description": "Request body parameters to update access." } ], "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json index 868a3cb652ff..e5a604bb7336 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -5,18 +5,16 @@ "applicationName": "myManagedApplication", "api-version": "2018-06-01", "parameters": { - "properties": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } - } + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" } + } }, "responses": { "202": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index aff9fc65f670..9942b4010d47 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -294,7 +294,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/UpdateAccessDefinition" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -785,7 +785,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -797,7 +797,7 @@ "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -1211,7 +1211,7 @@ "schema": { "$ref": "#/definitions/UpdateAccessDefinition" }, - "description": "Request body parameters to list tokens." + "description": "Request body parameters to update access." } ], "responses": { @@ -1329,6 +1329,7 @@ } ], "responses": { + "404": {}, "200": { "description": "OK - Returns the managed application definition.", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 35c5df877fa1..ce1686cf8ba9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -294,7 +294,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/UpdateAccessDefinition" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -785,7 +785,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -797,7 +797,7 @@ "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -1329,6 +1329,7 @@ } ], "responses": { + "404": {}, "200": { "description": "OK - Returns the managed application definition.", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 1a5003cc88ff..06a8db7ee401 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -254,7 +254,7 @@ "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/UpdateAccessDefinition" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { From 7a34386a38f823be98c698b2b67bd1262e8d4760 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 19:28:30 -0700 Subject: [PATCH 09/24] Validation errors. --- .../createOrUpdateApplicationById.json | 2 +- .../examples/deleteApplicationById.json | 2 +- .../examples/listToken.json | 32 +++++++++++-------- .../examples/updateAccess.json | 32 ++++++++++--------- .../examples/updateApplication.json | 4 ++- .../examples/updateApplicationById.json | 6 ++-- .../managedapplications.json | 4 +-- .../examples/listToken.json | 28 +++++++++------- .../examples/updateAccess.json | 30 +++++++++-------- .../examples/updateApplication.json | 4 ++- .../managedapplications.json | 4 +-- .../examples/createOrUpdateApplication.json | 6 ++-- .../createOrUpdateApplicationById.json | 8 ++--- .../createOrUpdateApplicationDefinition.json | 6 ++-- .../examples/deleteApplicationById.json | 2 +- .../examples/getApplicationDefinition.json | 2 +- .../examples/updateApplicationById.json | 2 +- .../createOrUpdateApplicationById.json | 2 +- .../examples/deleteApplicationById.json | 2 +- .../stable/2018-06-01/examples/listToken.json | 32 +++++++++++-------- .../2018-06-01/examples/updateAccess.json | 30 +++++++++-------- .../examples/updateApplication.json | 4 ++- .../examples/updateApplicationById.json | 6 ++-- .../2018-06-01/managedapplications.json | 4 +-- .../createOrUpdateApplicationById.json | 2 +- .../examples/deleteApplicationById.json | 2 +- .../stable/2019-07-01/examples/listToken.json | 32 +++++++++++-------- .../2019-07-01/examples/updateAccess.json | 30 +++++++++-------- .../examples/updateApplication.json | 4 ++- .../examples/updateApplicationById.json | 6 ++-- .../2019-07-01/managedapplications.json | 4 +-- .../stable/2021-07-01/examples/listToken.json | 32 +++++++++++-------- .../2021-07-01/examples/updateAccess.json | 30 +++++++++-------- .../examples/updateApplication.json | 4 ++- .../2021-07-01/managedapplications.json | 10 ++---- 35 files changed, 230 insertions(+), 180 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json index 3823d0b90d01..884d3d2f64b8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json index 4d333b5213de..ce094f495a63 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json index e17832d298b4..be65606a004a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -4,24 +4,30 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2020-08-21-preview", - "parameters": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - }, - "responses": { - "200": { - "headers": {}, - "body": { + "parameters": { "authorizationAudience": "authorizationAudience", "userAssignedIdentities": [ "IdentityOne", "IdentityTwo" + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } ] } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index b15ef900fb76..9a80560fd755 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -4,32 +4,34 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2020-08-21-preview", - "parameters": { + "parameters": { "approver": "amauser", "status": "Elevate", "subStatus": "Approved", "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" } + } }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json index 5c51593db049..23d07e82b15e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -14,7 +14,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json index e01958fb9236..7fb2a8a7adf0 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2020-08-21-preview", "parameters": { "properties": { @@ -12,7 +12,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 53b65384eda9..5edb9ab9fc93 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -2704,8 +2704,8 @@ "description": "The managed identity token for the managed app resource." }, "UserAssignedIdentity": { - "type": "string", - "description": "The fully qualified resource id of user assigned identity." + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json index 52ff969fdb27..9616867eeff6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json @@ -4,24 +4,30 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2021-02-01-preview", - "parameters": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" ] } }, "responses": { "200": { - "headers": {}, + "headers": {}, "body": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } ] } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json index ceea08e3c064..82fa24b40931 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -4,11 +4,11 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2021-02-01-preview", - "parameters": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", @@ -18,18 +18,20 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json index d61023f60f0c..79b0b92651e8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json @@ -14,7 +14,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 3e85c20715e6..2a19e27b9f90 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -2305,8 +2305,8 @@ "description": "The managed identity token for the managed app resource." }, "UserAssignedIdentity": { - "type": "string", - "description": "The fully qualified resource id of user assigned identity." + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json index f63e20d5907f..be41fc5571fc 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplication.json @@ -13,8 +13,8 @@ } }, "responses": { - "200": { - "headers": {}, + "200": { + "headers": {}, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", @@ -34,7 +34,7 @@ "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" } } - }, + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json index 49021bcae708..e8fa893a8334 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2017-09-01", "parameters": { "properties": { @@ -11,8 +11,8 @@ } }, "responses": { - "200": { - "headers": {}, + "200": { + "headers": {}, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", @@ -32,7 +32,7 @@ "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" } } - }, + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json index 053cf880c451..65710381c1b9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/createOrUpdateApplicationDefinition.json @@ -21,8 +21,8 @@ } }, "responses": { - "200" : { - "headers": {}, + "200": { + "headers": {}, "body": { "name": "myManagedApplicationDef", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", @@ -57,7 +57,7 @@ "packageFileUri": "https://path/to/packagezipfile" } } - }, + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json index fc741df6b4f7..8070d54da8c9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2017-09-01" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json index 73979f1723a9..ffa883b7159a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/getApplicationDefinition.json @@ -6,7 +6,7 @@ "api-version": "2017-09-01" }, "responses": { - "404": {}, + "404": {}, "200": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json index 50d7d44cd593..4713f154fd15 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2017-09-01", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json index 3b778977a04a..2f5ebaa64a78 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json index a25377d70d20..67a5670da46b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json index f39d14a4010f..19a56305a944 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json @@ -4,24 +4,30 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2018-06-01", - "parameters": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" ] } }, "responses": { "200": { - "headers": {}, + "headers": {}, "body": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json index e5a604bb7336..a440cf6d417e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -4,11 +4,11 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2018-06-01", - "parameters": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", @@ -18,18 +18,20 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json index 8b702bd427a6..0a0437592d20 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -14,7 +14,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json index 6b49d168c093..8084cb1388bc 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2018-06-01", "parameters": { "properties": { @@ -12,7 +12,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 9942b4010d47..c3337a8cd7f9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -2658,8 +2658,8 @@ "description": "The managed identity token for the managed app resource." }, "UserAssignedIdentity": { - "type": "string", - "description": "The fully qualified resource id of user assigned identity." + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json index d126d8a73cf2..ae3855010379 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2019-07-01", "parameters": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json index c808076dd0c0..74300b5223ce 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2019-07-01" }, "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json index 08e834b2ae87..9b12d8a13794 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json @@ -4,24 +4,30 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2019-07-01", - "parameters": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" ] } }, "responses": { "200": { - "headers": {}, + "headers": {}, "body": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json index b69fd4719b1a..b7288f3157de 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json @@ -4,11 +4,11 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2019-07-01", - "parameters": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", @@ -18,18 +18,20 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json index 31c4c17c9c95..6163cd77d61d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json @@ -14,7 +14,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json index a55deaf42b20..35f40b6dd305 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json @@ -1,6 +1,6 @@ { "parameters": { - "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", "api-version": "2019-07-01", "parameters": { "properties": { @@ -12,7 +12,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index ce1686cf8ba9..13846b9fb140 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -2658,8 +2658,8 @@ "description": "The managed identity token for the managed app resource." }, "UserAssignedIdentity": { - "type": "string", - "description": "The fully qualified resource id of user assigned identity." + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json index 95a2cf0c8572..f1faba59f2fe 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json @@ -4,24 +4,30 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2021-07-01", - "parameters": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" ] } }, "responses": { "200": { - "headers": {}, + "headers": {}, "body": { - "authorizationAudience": "authorizationAudience", - "userAssignedIdentities": [ - "IdentityOne", - "IdentityTwo" - ] - } - } + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json index 93e80d248873..9627914a7059 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json @@ -4,11 +4,11 @@ "resourceGroupName": "rg", "applicationName": "myManagedApplication", "api-version": "2021-07-01", - "parameters": { - "approver": "amauser", - "status": "Elevate", - "subStatus": "Approved", - "metadata": { + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { "originRequestId": "originRequestId", "requestorId": "RequestorId", "tenantDisplayName": "TenantDisplayName", @@ -18,18 +18,20 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "approver": "amauser", "status": "Elevate", - "subStatus": "Approved", - "metadata": { - "originRequestId": "originRequestId", - "requestorId": "RequestorId", - "tenantDisplayName": "TenantDisplayName", - "subjectDisplayName": "SubjectDisplayName" - } + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } } - } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json index 31c4c17c9c95..6163cd77d61d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json @@ -14,7 +14,9 @@ }, "responses": { "202": { - "headers": {}, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 06a8db7ee401..c854d6ae0c13 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -703,12 +703,6 @@ "$ref": "#/definitions/JitRequestDefinition" } }, - "200": { - "description": "Ok - Returns information about existing JIT request.", - "schema": { - "$ref": "#/definitions/JitRequestDefinition" - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -2330,8 +2324,8 @@ "description": "The managed identity token for the managed app resource." }, "UserAssignedIdentity": { - "type": "string", - "description": "The fully qualified resource id of user assigned identity." + "type": "string", + "description": "The fully qualified resource id of user assigned identity." } }, "parameters": { From 481827a42ff6d3ce3e80fd5a033af7842ac26d5c Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Tue, 19 Jul 2022 19:55:29 -0700 Subject: [PATCH 10/24] Validation errors. --- .../stable/2018-06-01/managedapplications.json | 4 +++- .../stable/2019-07-01/managedapplications.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index c3337a8cd7f9..89e54e42f990 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -1329,7 +1329,9 @@ } ], "responses": { - "404": {}, + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 13846b9fb140..477971df4945 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -1329,7 +1329,9 @@ } ], "responses": { - "404": {}, + "404": { + "description": "NotFound." + }, "200": { "description": "OK - Returns the managed application definition.", "schema": { From 22bc3188256738786d49004325bef774db0cbe49 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Wed, 20 Jul 2022 16:53:25 -0700 Subject: [PATCH 11/24] Added missing api specs. --- .../examples/createOrUpdateApplication.json | 62 + .../createOrUpdateApplicationById.json | 55 + .../createOrUpdateApplicationDefinition.json | 97 + .../examples/createOrUpdateJitRequest.json | 58 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../examples/deleteApplicationDefinition.json | 12 + .../examples/deleteJitRequest.json | 12 + .../examples/getApplication.json | 56 + .../examples/getApplicationById.json | 52 + .../examples/getApplicationDefinition.json | 52 + .../examples/getJitRequest.json | 43 + ...ApplicationDefinitionsByResourceGroup.json | 82 + .../listApplicationsByResourceGroup.json | 54 + .../listApplicationsBySubscription.json | 49 + .../listJitRequestsByResourceGroup.json | 74 + .../listJitRequestsBySubscription.json | 73 + .../examples/listSolutionsOperations.json | 30 + .../examples/listToken.json | 33 + .../refreshApplicationPermissions.json | 11 + .../examples/updateAccess.json | 37 + .../examples/updateApplication.json | 39 + .../examples/updateApplicationById.json | 37 + .../examples/updateJitRequest.json | 47 + .../managedapplications.json | 2678 ++++++++++++++++ .../managedapplications.json | 181 ++ .../examples/createOrUpdateApplication.json | 61 + .../createOrUpdateApplicationById.json | 59 + .../createOrUpdateApplicationDefinition.json | 99 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../examples/deleteApplicationDefinition.json | 13 + .../2017-12-01/examples/getApplication.json | 33 + .../examples/getApplicationById.json | 31 + .../examples/getApplicationDefinition.json | 48 + ...ApplicationDefinitionsByResourceGroup.json | 84 + .../listApplicationsByResourceGroup.json | 54 + .../listApplicationsBySubscription.json | 49 + .../examples/updateApplication.json | 37 + .../examples/updateApplicationById.json | 35 + .../2017-12-01/managedapplications.json | 1291 ++++++++ .../examples/createOrUpdateApplication.json | 62 + .../createOrUpdateApplicationById.json | 55 + .../createOrUpdateApplicationDefinition.json | 97 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../examples/deleteApplicationDefinition.json | 12 + .../2018-02-01/examples/getApplication.json | 56 + .../examples/getApplicationById.json | 52 + .../examples/getApplicationDefinition.json | 52 + ...ApplicationDefinitionsByResourceGroup.json | 82 + .../listApplicationsByResourceGroup.json | 54 + .../listApplicationsBySubscription.json | 49 + .../examples/listSolutionsOperations.json | 30 + .../refreshApplicationPermissions.json | 11 + .../examples/updateApplication.json | 39 + .../examples/updateApplicationById.json | 37 + .../2018-02-01/managedapplications.json | 1879 ++++++++++++ .../examples/createOrUpdateApplication.json | 62 + .../createOrUpdateApplicationById.json | 55 + .../createOrUpdateApplicationDefinition.json | 97 + .../examples/createOrUpdateJitRequest.json | 58 + .../examples/deleteApplication.json | 12 + .../examples/deleteApplicationById.json | 10 + .../examples/deleteApplicationDefinition.json | 12 + .../2018-03-01/examples/deleteJitRequest.json | 12 + .../2018-03-01/examples/getApplication.json | 56 + .../examples/getApplicationById.json | 52 + .../examples/getApplicationDefinition.json | 52 + .../2018-03-01/examples/getJitRequest.json | 43 + ...ApplicationDefinitionsByResourceGroup.json | 82 + .../listApplicationsByResourceGroup.json | 54 + .../listApplicationsBySubscription.json | 49 + .../listJitRequestsByResourceGroup.json | 74 + .../listJitRequestsBySubscription.json | 73 + .../examples/listSolutionsOperations.json | 30 + .../stable/2018-03-01/examples/listToken.json | 33 + .../refreshApplicationPermissions.json | 11 + .../2018-03-01/examples/updateAccess.json | 37 + .../examples/updateApplication.json | 39 + .../examples/updateApplicationById.json | 37 + .../2018-03-01/examples/updateJitRequest.json | 47 + .../2018-03-01/managedapplications.json | 2682 +++++++++++++++++ .../2018-06-01/managedapplications.json | 9 +- .../2021-07-01/managedapplications.json | 181 ++ 85 files changed, 12405 insertions(+), 5 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsByResourceGroup.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateJitRequest.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..483a7af6af1a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplication.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..cbe94ed05303 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..79484a62226f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..ae8d3dc30976 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json new file mode 100644 index 000000000000..6cfaff220af0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json new file mode 100644 index 000000000000..33f6f61ddd49 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-09-01-preview" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..9f720256cf9e --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationDefinition.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteJitRequest.json new file mode 100644 index 000000000000..90d4057ff57c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json new file mode 100644 index 000000000000..e41b00e7fbe6 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json new file mode 100644 index 000000000000..a521d784da17 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-09-01-preview" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..3fbe604b7949 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-09-01-preview" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getJitRequest.json new file mode 100644 index 000000000000..31585ac49104 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getJitRequest.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-09-01-preview" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..8a1122e82ac0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..dea7f6a43d76 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..56ee6a417701 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..34ebea590687 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsBySubscription.json new file mode 100644 index 000000000000..d62bc6e6394c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listJitRequestsBySubscription.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..219ca1f01149 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json new file mode 100644 index 000000000000..2ae2c4abdac7 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..b2243a0bf16d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json new file mode 100644 index 000000000000..ef93c16a83cb --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json new file mode 100644 index 000000000000..948f3dbada04 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json new file mode 100644 index 000000000000..ac4a7dde8c8b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-09-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateJitRequest.json new file mode 100644 index 000000000000..b440bb6f55b8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-09-01-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json new file mode 100644 index 000000000000..fc9924c44d1f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -0,0 +1,2678 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2018-09-01-preview", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the JIT request", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to update access." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "JitRequestDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "requestorId": { + "type": "string", + "description": "The requestor id." + }, + "tenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "subjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 2a19e27b9f90..8d45fd317fd1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -1030,6 +1030,187 @@ } } }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, "definitions": { "Application": { "type": "object", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..5b05ab239dcf --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplication.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..249d71a09607 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..b768f356bbbd --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json new file mode 100644 index 000000000000..1d672eed1e60 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-12-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..1ac118673caa --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-12-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..7ae6a7607fc2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-12-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplication.json new file mode 100644 index 000000000000..be17f2675090 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplication.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-12-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationById.json new file mode 100644 index 000000000000..3db84ec9c2e6 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationById.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-12-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..8635557c49c6 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/getApplicationDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-12-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..df2b06d80091 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "identity": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ManagedApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "ReadOnly", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..d9b1b1ef5943 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/managedApplicationCreateUiDefinition.json" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..bed534b11270 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json new file mode 100644 index 000000000000..9a597b4eb1df --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..b38c895f79eb --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2017-12-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json new file mode 100644 index 000000000000..d8c9fdb42e04 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -0,0 +1,1291 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2017-12-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationPropertiesPatchable", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "uiDefinitionUri": { + "type": "string", + "description": "The blob URI where the UI definition file is located." + } + }, + "required": [ + "managedResourceGroupId" + ], + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "uiDefinitionUri": { + "type": "string", + "description": "The blob URI where the UI definition file is located." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "string", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationProviderAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + } + }, + "required": [ + "lockLevel", + "authorizations" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + } + }, + "description": "Identity for the resource." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "type": "string", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "description": "Managed application artifact." + }, + "ApplicationProviderAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ErrorResponse": { + "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "httpStatus": { + "description": "Http status code.", + "type": "string" + }, + "errorCode": { + "description": "Error code.", + "type": "string" + }, + "errorMessage": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..33b410b20878 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplication.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-02-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..f34c86b01422 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-02-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..8b56319916af --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-02-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json new file mode 100644 index 000000000000..56fcc23b1212 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-02-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..35a1315d6c1a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-02-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..34d9dbb6c334 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-02-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json new file mode 100644 index 000000000000..6e2f74bf0b60 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-02-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json new file mode 100644 index 000000000000..c051146bfbe0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-02-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..79209e023f77 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-02-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..306c9c66f28d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..fb247aa81b06 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..95bd98b331fb --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..1835cf7d7f02 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..1410d01edf47 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-02-01" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json new file mode 100644 index 000000000000..8513b30cfa2b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-02-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..418a782a2613 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-02-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json new file mode 100644 index 000000000000..45d5c0de0fd0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -0,0 +1,1879 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2018-02-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "publisherPackageId": { + "type": "string", + "description": "The publisher package Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplication.json new file mode 100644 index 000000000000..a567014e7961 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplication.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..f9b9a752b9c4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationDefinition.json new file mode 100644 index 000000000000..07ecb9a37962 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateApplicationDefinition.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "lockLevel": "None", + "displayName": "myManagedApplicationDef", + "description": "myManagedApplicationDef description", + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "packageFileUri": "https://path/to/packagezipfile" + }, + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json new file mode 100644 index 000000000000..9cbe5a86bb3a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json new file mode 100644 index 000000000000..2379ab7e2e66 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..6906a7541211 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-03-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationDefinition.json new file mode 100644 index 000000000000..1e414fb47357 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationDefinition.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteJitRequest.json new file mode 100644 index 000000000000..c28679ef4efc --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteJitRequest.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json new file mode 100644 index 000000000000..7064f599aed8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json new file mode 100644 index 000000000000..ee0a0f224cf5 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-03-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json new file mode 100644 index 000000000000..bb0bbe0464f2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-03-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile", + "notificationPolicy": null, + "lockingPolicy": null, + "deploymentPolicy": null, + "managementPolicy": null, + "policies": [] + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getJitRequest.json new file mode 100644 index 000000000000..90a51a73fe56 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getJitRequest.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-03-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsByResourceGroup.json new file mode 100644 index 000000000000..7c5f9d547fbf --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsByResourceGroup.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "East US 2", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "location": "West US", + "managedBy": null, + "tags": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsByResourceGroup.json new file mode 100644 index 000000000000..b0dd7cec2052 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..acbce70ba991 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef2", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsByResourceGroup.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsByResourceGroup.json new file mode 100644 index 000000000000..fb28be13366d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsBySubscription.json new file mode 100644 index 000000000000..49cf9ca859d9 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listJitRequestsBySubscription.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + }, + { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest2", + "name": "myJitRequest2", + "type": "Microsoft.Solutions/jitRequests" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..30da8b6ee2c4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json new file mode 100644 index 000000000000..f6dc69bfee45 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "authorizationAudience": "authorizationAudience", + "userAssignedIdentities": [ + "IdentityOne", + "IdentityTwo" + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "access_token": "access_token", + "expires_in": "1500", + "expires_on": "1500", + "not_before": "1500", + "authorizationAudience": "authorizationAudience", + "resourceId": "resourceId", + "token_type": "Bearer" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json new file mode 100644 index 000000000000..3604153fc4e1 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01" + }, + "responses": { + "202": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json new file mode 100644 index 000000000000..3db71bbefc1c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "approver": "amauser", + "status": "Elevate", + "subStatus": "Approved", + "metadata": { + "originRequestId": "originRequestId", + "requestorId": "RequestorId", + "tenantDisplayName": "TenantDisplayName", + "subjectDisplayName": "SubjectDisplayName" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json new file mode 100644 index 000000000000..2750c04f0e0e --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..e6437f0c064f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2018-03-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateJitRequest.json new file mode 100644 index 000000000000..d7f37ba03bc0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateJitRequest.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "jitRequestName": "myJitRequest", + "api-version": "2018-03-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json new file mode 100644 index 000000000000..8cc3d1c51f42 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -0,0 +1,2682 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationClient", + "version": "2018-03-01", + "description": "ARM applications" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Get", + "description": "Gets the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/getApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Delete", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdate", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/createOrUpdateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_Update", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Get", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Delete", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdate", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update an managed application definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListByResourceGroup", + "description": "Lists the managed application definitions in a resource group.", + "x-ms-examples": { + "List managed application definitions": { + "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListByResourceGroup", + "description": "Gets all the applications within a resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListBySubscription", + "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates a new managed application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Get", + "description": "Gets the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/getJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the JIT request", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_CreateOrUpdate", + "description": "Creates or updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/createOrUpdateJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "JitRequests" + ], + "operationId": "JitRequests_Update", + "description": "Updates the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitRequestPatchable" + }, + "description": "Parameters supplied to the update JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_Delete", + "description": "Deletes the JIT request.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/deleteJitRequest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "jitRequestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the JIT request." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListBySubscription", + "description": "Retrieves all JIT requests within the subscription.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests": { + "get": { + "tags": [ + "JitRequests" + ], + "operationId": "jitRequests_ListByResourceGroup", + "description": "Retrieves all JIT requests within the resource group.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listJitRequestsByResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of JIT requests.", + "schema": { + "$ref": "#/definitions/JitRequestDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_RefreshPermissions", + "description": "Refresh Permissions for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/refreshApplicationPermissions.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateAccess", + "description": "Update access for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/updateAccess.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + }, + "description": "Request body parameters to update access." + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", + "schema": { + "$ref": "#/definitions/UpdateAccessDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListTokens", + "description": "List tokens for application.", + "x-ms-examples": { + "Lists applications": { + "$ref": "./examples/listToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListTokenRequest" + }, + "description": "Request body parameters to list tokens." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/ManagedIdentityTokenResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Application": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationPatchable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationProperties", + "description": "The managed application properties." + }, + "plan": { + "$ref": "#/definitions/PlanPatchable", + "description": "The plan information." + }, + "kind": { + "type": "string", + "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application." + }, + "ApplicationDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationDefinitionProperties", + "description": "The managed application definition properties." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Information about managed application definition." + }, + "ApplicationProperties": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "publisherPackageId": { + "type": "string", + "description": "The publisher package Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + }, + "billingDetails": { + "readOnly": true, + "$ref": "#/definitions/ApplicationBillingDetailsDefinition", + "description": "The managed application billing details." + }, + "jitAccessPolicy": { + "$ref": "#/definitions/ApplicationJitAccessPolicy", + "description": "The managed application Jit access policy." + }, + "publisherTenantId": { + "type": "string", + "description": "The publisher tenant Id.", + "readOnly": true + }, + "authorizations": { + "description": "The read-only authorizations property that is retrieved from the application package.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + }, + "readOnly": true + }, + "customerSupport": { + "$ref": "#/definitions/ApplicationPackageContact", + "description": "The read-only customer support property that is retrieved from the application package.", + "readOnly": true + }, + "supportUrls": { + "$ref": "#/definitions/ApplicationPackageSupportUrls", + "description": "The read-only support URLs property that is retrieved from the application package.", + "readOnly": true + }, + "artifacts": { + "description": "The collection of managed application artifacts.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationArtifact" + }, + "readOnly": true + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "description": "The managed application properties." + }, + "ApplicationPropertiesPatchable": { + "properties": { + "managedResourceGroupId": { + "type": "string", + "description": "The managed resource group Id." + }, + "applicationDefinitionId": { + "type": "string", + "description": "The fully qualified path of managed application definition Id." + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Name and value pairs that define the managed application outputs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed application provisioning state." + } + }, + "description": "The managed application properties." + }, + "ApplicationDefinitionProperties": { + "properties": { + "lockLevel": { + "$ref": "#/definitions/ApplicationLockLevel", + "description": "The managed application lock level." + }, + "displayName": { + "type": "string", + "description": "The managed application definition display name." + }, + "isEnabled": { + "type": "boolean", + "description": "A value indicating whether the package is enabled or not." + }, + "authorizations": { + "description": "The managed application provider authorizations.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationAuthorization" + } + }, + "artifacts": { + "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinitionArtifact" + } + }, + "description": { + "type": "string", + "description": "The managed application definition description." + }, + "packageFileUri": { + "type": "string", + "description": "The managed application definition package file Uri. Use this element" + }, + "mainTemplate": { + "type": "object", + "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." + }, + "createUiDefinition": { + "type": "object", + "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." + }, + "notificationPolicy": { + "$ref": "#/definitions/ApplicationNotificationPolicy", + "description": "The managed application notification policy." + }, + "lockingPolicy": { + "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", + "description": "The managed application locking policy." + }, + "deploymentPolicy": { + "$ref": "#/definitions/ApplicationDeploymentPolicy", + "description": "The managed application deployment policy." + }, + "managementPolicy": { + "$ref": "#/definitions/ApplicationManagementPolicy", + "description": "The managed application management policy that determines publisher's access to the managed resource group." + }, + "policies": { + "description": "The managed application provider policies.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPolicy" + } + } + }, + "required": [ + "lockLevel" + ], + "description": "The managed application definition properties." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "required": [ + "name", + "publisher", + "product", + "version" + ], + "description": "Plan for the managed application." + }, + "PlanPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The plan name." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product code." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the managed application." + }, + "GenericResource": { + "properties": { + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "Resource information.", + "x-ms-azure-resource": true + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "description": "The array of managed applications." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed applications." + }, + "ApplicationDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "The array of managed application definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of managed application definitions." + }, + "ProvisioningState": { + "description": "Provisioning status of the managed application.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ApplicationLockLevel": { + "description": "The managed application lock level.", + "enum": [ + "CanNotDelete", + "ReadOnly", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationLockLevel", + "modelAsString": false + } + }, + "ApplicationArtifactType": { + "description": "The managed application artifact type.", + "enum": [ + "NotSpecified", + "Template", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactType", + "modelAsString": false + } + }, + "ApplicationDefinitionArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ApplicationResourceTemplate", + "CreateUiDefinition", + "MainTemplateParameters" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationDefinitionArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifactName": { + "description": "The managed application artifact name.", + "enum": [ + "NotSpecified", + "ViewDefinition", + "Authorizations", + "CustomRoleDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationArtifactName", + "modelAsString": true + } + }, + "ApplicationArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationArtifactName", + "description": "The managed application artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Managed application artifact." + }, + "ApplicationDefinitionArtifact": { + "properties": { + "name": { + "$ref": "#/definitions/ApplicationDefinitionArtifactName", + "description": "The managed application definition artifact name." + }, + "uri": { + "type": "string", + "description": "The managed application definition artifact blob uri." + }, + "type": { + "$ref": "#/definitions/ApplicationArtifactType", + "description": "The managed application definition artifact type." + } + }, + "required": [ + "name", + "type", + "uri" + ], + "description": "Application definition artifact." + }, + "ApplicationNotificationPolicy": { + "properties": { + "notificationEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationNotificationEndpoint" + }, + "description": "The managed application notification endpoint." + } + }, + "required": [ + "notificationEndpoints" + ], + "description": "Managed application notification policy." + }, + "ApplicationNotificationEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "The managed application notification endpoint uri." + } + }, + "required": [ + "uri" + ], + "description": "Managed application notification endpoint." + }, + "ApplicationPackageLockingPolicyDefinition": { + "properties": { + "allowedActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded data actions." + } + }, + "description": "Managed application locking policy." + }, + "ApplicationDeploymentPolicy": { + "properties": { + "deploymentMode": { + "$ref": "#/definitions/DeploymentMode", + "description": "The managed application deployment mode." + } + }, + "required": [ + "deploymentMode" + ], + "description": "Managed application deployment policy." + }, + "ApplicationManagementPolicy": { + "properties": { + "mode": { + "$ref": "#/definitions/ApplicationManagementMode", + "description": "The managed application management mode." + } + }, + "description": "Managed application management policy." + }, + "ApplicationPolicy": { + "properties": { + "name": { + "type": "string", + "description": "The policy name" + }, + "policyDefinitionId": { + "type": "string", + "description": "The policy definition Id." + }, + "parameters": { + "type": "string", + "description": "The policy parameters." + } + }, + "description": "Managed application policy." + }, + "ApplicationAuthorization": { + "properties": { + "principalId": { + "type": "string", + "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources." + }, + "roleDefinitionId": { + "type": "string", + "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The managed application provider authorization." + }, + "ApplicationPackageContact": { + "properties": { + "contactName": { + "type": "string", + "description": "The contact name." + }, + "email": { + "type": "string", + "description": "The contact email." + }, + "phone": { + "type": "string", + "description": "The contact phone number." + } + }, + "required": [ + "email", + "phone" + ], + "description": "The application package contact information." + }, + "ApplicationPackageSupportUrls": { + "properties": { + "publicAzure": { + "type": "string", + "description": "The public azure support URL." + }, + "governmentCloud": { + "type": "string", + "description": "The government cloud support URL." + } + }, + "description": "The appliance package support URLs." + }, + "ApplicationBillingDetailsDefinition": { + "properties": { + "resourceUsageId": { + "type": "string", + "description": "The managed application resource usage Id." + } + }, + "description": "Managed application billing details definition." + }, + "ApplicationJitAccessPolicy": { + "properties": { + "jitAccessEnabled": { + "type": "boolean", + "description": "Whether the JIT access is enabled." + }, + "jitApprovalMode": { + "$ref": "#/definitions/JitApprovalMode", + "description": "JIT approval mode." + }, + "jitApprovers": { + "type": "array", + "items": { + "$ref": "#/definitions/JitApproverDefinition" + }, + "description": "The JIT approvers" + }, + "maximumJitAccessDuration": { + "type": "string", + "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value." + } + }, + "required": [ + "jitAccessEnabled" + ], + "description": "Managed application Jit access policy." + }, + "JitRequestDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitRequestProperties", + "description": "The JIT request properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Information about JIT request definition." + }, + "JitRequestPatchable": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Jit request tags" + } + }, + "description": "Information about JIT request." + }, + "JitRequestDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitRequestDefinition" + }, + "description": "The array of Jit request definition." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of JIT requests." + }, + "JitRequestProperties": { + "properties": { + "applicationResourceId": { + "type": "string", + "description": "The parent application id." + }, + "publisherTenantId": { + "readOnly": true, + "type": "string", + "description": "The publisher tenant id." + }, + "jitAuthorizationPolicies": { + "description": "The JIT authorization policies.", + "type": "array", + "items": { + "$ref": "#/definitions/JitAuthorizationPolicies" + } + }, + "jitSchedulingPolicy": { + "$ref": "#/definitions/JitSchedulingPolicy", + "description": "The JIT request properties." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The JIT request provisioning state." + }, + "jitRequestState": { + "readOnly": true, + "$ref": "#/definitions/JitRequestState", + "description": "The JIT request state." + }, + "createdBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that created the JIT request." + }, + "updatedBy": { + "readOnly": true, + "$ref": "#/definitions/ApplicationClientDetails", + "description": "The client entity that last updated the JIT request." + } + }, + "required": [ + "applicationResourceId", + "jitAuthorizationPolicies", + "jitSchedulingPolicy" + ], + "description": "Information about JIT request properties" + }, + "JitAuthorizationPolicies": { + "properties": { + "principalId": { + "type": "string", + "description": "The the principal id that will be granted JIT access." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition id that will be granted to the Principal." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "description": "The JIT authorization policies." + }, + "JitSchedulingPolicy": { + "properties": { + "type": { + "$ref": "#/definitions/JitSchedulingType", + "description": "The type of JIT schedule." + }, + "duration": { + "type": "string", + "format": "duration", + "title": "The required duration of the JIT request." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the request." + } + }, + "required": [ + "type", + "duration", + "startTime" + ], + "description": "The JIT scheduling policies." + }, + "JitApprovalMode": { + "description": "The Jit approval mode.", + "enum": [ + "NotSpecified", + "AutoApprove", + "ManualApprove" + ], + "type": "string", + "x-ms-enum": { + "name": "JitApprovalMode", + "modelAsString": true + } + }, + "JitApproverDefinition": { + "properties": { + "id": { + "type": "string", + "description": "The approver service principal Id." + }, + "type": { + "type": "string", + "description": "The approver type.", + "enum": [ + "user", + "group" + ], + "x-ms-enum": { + "name": "JitApproverType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The approver display name." + } + }, + "required": [ + "id" + ], + "description": "JIT approver definition." + }, + "ApplicationClientDetails": { + "readOnly": true, + "properties": { + "oid": { + "type": "string", + "description": "The client Oid." + }, + "puid": { + "type": "string", + "description": "The client Puid" + }, + "applicationId": { + "type": "string", + "description": "The client application Id." + } + }, + "description": "The application client details to track the entity creating/updating the managed app resource." + }, + "JitRequestState": { + "description": "The JIT request state.", + "readOnly": true, + "enum": [ + "NotSpecified", + "Pending", + "Approved", + "Denied", + "Failed", + "Canceled", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "JitRequestState", + "modelAsString": true + } + }, + "JitSchedulingType": { + "description": "The JIT request scheduling type.", + "enum": [ + "NotSpecified", + "Once", + "Recurring" + ], + "type": "string", + "x-ms-enum": { + "name": "JitSchedulingType", + "modelAsString": true + } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Application, JitRequest, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "DeploymentMode": { + "description": "The deployment mode.", + "enum": [ + "NotSpecified", + "Incremental", + "Complete" + ], + "type": "string", + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": true + } + }, + "ApplicationManagementMode": { + "description": "The management mode.", + "enum": [ + "NotSpecified", + "Unmanaged", + "Managed" + ], + "type": "string", + "x-ms-enum": { + "name": "ApplicationManagementMode", + "modelAsString": true + } + }, + "UpdateAccessDefinition": { + "properties": { + "approver": { + "type": "string", + "description": "The approver name." + }, + "metadata": { + "$ref": "#/definitions/JitRequestMetadata", + "description": "The JIT request metadata." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The JIT status." + }, + "subStatus": { + "$ref": "#/definitions/SubStatus", + "description": "The JIT status." + } + }, + "required": [ + "metadata", + "status", + "subStatus" + ], + "description": "Update access request definition." + }, + "JitRequestMetadata": { + "properties": { + "originRequestId": { + "type": "string", + "description": "The origin request id." + }, + "requestorId": { + "type": "string", + "description": "The requestor id." + }, + "tenantDisplayName": { + "type": "string", + "description": "The publisher's tenant name." + }, + "subjectDisplayName": { + "type": "string", + "description": "The subject display name." + } + }, + "description": "The JIT request metadata." + }, + "Status": { + "description": "The JIT status.", + "enum": [ + "NotSpecified", + "Elevate", + "Remove" + ], + "type": "string", + "x-ms-enum": { + "name": "Status", + "modelAsString": true + } + }, + "SubStatus": { + "description": "The sub status.", + "enum": [ + "NotSpecified", + "Approved", + "Denied", + "Failed", + "Expired", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "Substatus", + "modelAsString": true + } + }, + "ListTokenRequest": { + "properties": { + "authorizationAudience": { + "type": "string", + "description": "The authorization audience." + }, + "userAssignedIdentities": { + "description": "The user assigned identities.", + "type": "array", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + }, + "description": "List token request body." + }, + "ManagedIdentityTokenResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedIdentityToken" + }, + "description": "The array of managed identity tokens." + } + }, + "description": "The array of managed identity tokens." + }, + "ManagedIdentityToken": { + "properties": { + "access_token": { + "type": "string", + "description": "The requested access token." + }, + "expires_in": { + "type": "string", + "description": "The number of seconds the access token will be valid." + }, + "expires_on": { + "type": "string", + "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." + }, + "not_before": { + "type": "string", + "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." + }, + "authorizationAudience": { + "type": "string", + "description": "The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request." + }, + "resourceId": { + "type": "string", + "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." + }, + "token_type": { + "type": "string", + "description": "The type of the token." + } + }, + "description": "The managed identity token for the managed app resource." + }, + "UserAssignedIdentity": { + "type": "string", + "description": "The fully qualified resource id of user assigned identity." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 89e54e42f990..2ba1be96f4d7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -1558,6 +1558,10 @@ "type": "string", "description": "The fully qualified path of managed application definition Id." }, + "publisherPackageId": { + "type": "string", + "description": "The publisher package Id." + }, "parameters": { "type": "object", "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." @@ -1594,11 +1598,6 @@ }, "readOnly": true }, - "managementMode": { - "$ref": "#/definitions/ApplicationManagementMode", - "description": "The managed application management mode.", - "readOnly": true - }, "customerSupport": { "$ref": "#/definitions/ApplicationPackageContact", "description": "The read-only customer support property that is retrieved from the application package.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index c854d6ae0c13..01ccf30db1db 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -1074,6 +1074,187 @@ } } }, + "x-ms-paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}?disambiguation_dummy": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_GetById", + "description": "Gets the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/getApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application definition.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_DeleteById", + "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Get managed application definition": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_CreateOrUpdateById", + "description": "Creates a new managed application definition.", + "x-ms-examples": { + "Create or update managed application definition": { + "$ref": "./examples/createOrUpdateApplicationDefinition.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + }, + "description": "Parameters supplied to the create or update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "201": { + "description": "Created - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, "definitions": { "Application": { "type": "object", From 442584aed7dbeac7befd0a85fb87e5d72102c80e Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Wed, 20 Jul 2022 17:31:43 -0700 Subject: [PATCH 12/24] Fixed validation errors. --- .../examples/getApplication.json | 1 - .../examples/getApplicationById.json | 1 - .../2018-02-01/examples/getApplication.json | 2 - .../examples/getApplicationById.json | 2 - .../2018-03-01/examples/getApplication.json | 1 - .../examples/getApplicationById.json | 1 - .../2018-06-01/examples/getApplication.json | 1 - .../examples/getApplicationById.json | 1 - .../solutions/resource-manager/readme.go.md | 47 ++++++++++++++ .../solutions/resource-manager/readme.java.md | 61 ++++++++++++++++++- .../solutions/resource-manager/readme.md | 44 +++++++++++++ .../resource-manager/readme.python.md | 44 +++++++++++++ .../solutions/resource-manager/readme.ruby.md | 44 +++++++++++++ 13 files changed, 239 insertions(+), 11 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json index e41b00e7fbe6..15f9129b293e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplication.json @@ -35,7 +35,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json index a521d784da17..1170a9531dd3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationById.json @@ -31,7 +31,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json index 6e2f74bf0b60..49b2855978b1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplication.json @@ -27,7 +27,6 @@ "parameters": null, "provisioningState": "Created", "billingDetails": null, - "jitAccessPolicy": null, "publisherTenantId": null, "authorizations": [ { @@ -35,7 +34,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json index c051146bfbe0..89dc6a0f3bd1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationById.json @@ -23,7 +23,6 @@ "parameters": null, "provisioningState": "Created", "billingDetails": null, - "jitAccessPolicy": null, "publisherTenantId": null, "authorizations": [ { @@ -31,7 +30,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json index 7064f599aed8..0f7ea29ff66a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplication.json @@ -35,7 +35,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json index ee0a0f224cf5..281b600561ee 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationById.json @@ -31,7 +31,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json index 458e05a81548..20c330da3438 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json @@ -35,7 +35,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json index 3015a2f7f5a2..c3034e1b7760 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json @@ -31,7 +31,6 @@ "roleDefinitionId": "validroleguid" } ], - "managementMode": "Managed", "customerSupport": null, "supportUrls": null, "artifacts": [], diff --git a/specification/solutions/resource-manager/readme.go.md b/specification/solutions/resource-manager/readme.go.md index 2878d00516de..62465d63ec2f 100644 --- a/specification/solutions/resource-manager/readme.go.md +++ b/specification/solutions/resource-manager/readme.go.md @@ -24,7 +24,11 @@ batch: - tag: package-managedapplications-2021-02 - tag: package-managedapplications-2020-08 - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-09 - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2018-03 + - tag: package-managedapplications-2018-02 + - tag: package-managedapplications-2017-12 - tag: package-managedapplications-2017-09 ``` @@ -68,6 +72,17 @@ namespace: managedapplications output-folder: $(go-sdk-folder)/services/resources/mgmt/2019-07-01/managedapplications ``` + +### Tag: package-managedapplications-2018-09 and go + +These settings apply only when `--tag=package-managedapplications-2018-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-09' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2018-09-01-preview/managedapplications +``` + ### Tag: package-managedapplications-2018-06 and go These settings apply only when `--tag=package-managedapplications-2018-06 --go` is specified on the command line. @@ -78,6 +93,38 @@ namespace: managedapplications output-folder: $(go-sdk-folder)/services/resources/mgmt/2018-06-01/managedapplications ``` + +### Tag: package-managedapplications-2018-03 and go + +These settings apply only when `--tag=package-managedapplications-2018-03 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-03' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2018-03-01/managedapplications +``` + + +### Tag: package-managedapplications-2018-02 and go + +These settings apply only when `--tag=package-managedapplications-2018-02 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-02' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2018-02-01/managedapplications +``` + +### Tag: package-managedapplications-2017-12 and go + +These settings apply only when `--tag=package-managedapplications-2017-12 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-12' && $(go) +namespace: managedapplications +output-folder: $(go-sdk-folder)/services/resources/mgmt/2017-12-01/managedapplications +``` + ### Tag: package-managedapplications-2017-09 and go These settings apply only when `--tag=package-managedapplications-2017-09 --go` is specified on the command line. diff --git a/specification/solutions/resource-manager/readme.java.md b/specification/solutions/resource-manager/readme.java.md index 4e0ffe39823e..eb12c71271f3 100644 --- a/specification/solutions/resource-manager/readme.java.md +++ b/specification/solutions/resource-manager/readme.java.md @@ -23,10 +23,13 @@ batch: - tag: package-managedapplications-2021-02 - tag: package-managedapplications-2020-08 - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-09 - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2018-03 + - tag: package-managedapplications-2018-02 + - tag: package-managedapplications-2017-12 - tag: package-managedapplications-2017-09 ``` -``` ### Tag: package-managedapplications-2021-07 and java @@ -84,6 +87,20 @@ generate-interface: true fconfig: '{"moduleName": "ManagedApplications"}' ``` +### Tag: package-managedapplications-2018-09 and java + +These settings apply only when `--tag=package-managedapplications-2018-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2018_09_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2018_09_01_preview +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + ### Tag: package-managedapplications-2018-06 and java These settings apply only when `--tag=package-managedapplications-2018-06 --java` is specified on the command line. @@ -98,6 +115,48 @@ generate-interface: true fconfig: '{"moduleName": "ManagedApplications"}' ``` +### Tag: package-managedapplications-2018-03 and java + +These settings apply only when `--tag=package-managedapplications-2018-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2018_03_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2018_03_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2018-02 and java + +These settings apply only when `--tag=package-managedapplications-2018-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2018_02_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2018_02_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + +### Tag: package-managedapplications-2017-12 and java + +These settings apply only when `--tag=package-managedapplications-2017-12 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-12' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.managedapplications.v2017_12_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/managedapplications/mgmt-v2017_12_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "ManagedApplications"}' +``` + ### Tag: package-managedapplications-2017-09 and java These settings apply only when `--tag=package-managedapplications-2017-09 --java` is specified on the command line. diff --git a/specification/solutions/resource-manager/readme.md b/specification/solutions/resource-manager/readme.md index 28d00f29a3f3..fa31f20af58e 100644 --- a/specification/solutions/resource-manager/readme.md +++ b/specification/solutions/resource-manager/readme.md @@ -31,7 +31,11 @@ tag: package-managedapplications-2021-07 tag: package-managedapplications-2021-02 tag: package-managedapplications-2020-08 tag: package-managedapplications-2019-07 +tag: package-managedapplications-2018-09 tag: package-managedapplications-2018-06 +tag: package-managedapplications-2018-03 +tag: package-managedapplications-2018-02 +tag: package-managedapplications-2017-12 tag: package-managedapplications-2017-09 ``` @@ -40,7 +44,11 @@ tag: package-managedapplications-2021-07 tag: package-managedapplications-2021-02 tag: package-managedapplications-2020-08 tag: package-managedapplications-2019-07 +tag: package-managedapplications-2018-09 tag: package-managedapplications-2018-06 +tag: package-managedapplications-2018-03 +tag: package-managedapplications-2018-02 +tag: package-managedapplications-2017-12 tag: package-managedapplications-2017-09 ``` @@ -81,6 +89,15 @@ input-file: - Microsoft.Solutions/stable/2019-07-01/managedapplications.json ``` +### Tag: package-managedapplications-2018-09 + +These settings apply only when `--tag=package-managedapplications-2018-09` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2018-09' +input-file: +- Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +``` + ### Tag: package-managedapplications-2018-06 These settings apply only when `--tag=package-managedapplications-2018-06` is specified on the command line. @@ -90,6 +107,33 @@ input-file: - Microsoft.Solutions/stable/2018-06-01/managedapplications.json ``` +### Tag: package-managedapplications-2018-03 + +These settings apply only when `--tag=package-managedapplications-2018-03` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2018-03' +input-file: +- Microsoft.Solutions/stable/2018-03-01/managedapplications.json +``` + +### Tag: package-managedapplications-2018-02 + +These settings apply only when `--tag=package-managedapplications-2018-02` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2018-02' +input-file: +- Microsoft.Solutions/stable/2018-02-01/managedapplications.json +``` + +### Tag: package-managedapplications-2017-12 + +These settings apply only when `--tag=package-managedapplications-2017-12` is specified on the command line. + +``` yaml $(tag) == 'package-managedapplications-2017-12' +input-file: +- Microsoft.Solutions/stable/2017-12-01/managedapplications.json +``` + ### Tag: package-managedapplications-2017-09 These settings apply only when `--tag=package-managedapplications-2017-09` is specified on the command line. diff --git a/specification/solutions/resource-manager/readme.python.md b/specification/solutions/resource-manager/readme.python.md index eca1e6909092..b637e6ed9946 100644 --- a/specification/solutions/resource-manager/readme.python.md +++ b/specification/solutions/resource-manager/readme.python.md @@ -24,7 +24,11 @@ batch: - tag: package-managedapplications-2021-02 - tag: package-managedapplications-2020-08 - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-09 - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2018-03 + - tag: package-managedapplications-2018-02 + - tag: package-managedapplications-2017-12 - tag: package-managedapplications-2017-09 - multiapiscript: true ``` @@ -74,6 +78,16 @@ namespace: azure.mgmt.managedapplication.v2019_07_01 output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2019_07_01 ``` +### Tag: package-managedapplications-2018-09 and python + +These settings apply only when `--tag=package-managedapplications-2018-09 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-09' +namespace: azure.mgmt.managedapplication.v2018_09_01_preview +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2018_09_01_preview +``` + ### Tag: package-managedapplications-2018-06 and python These settings apply only when `--tag=package-managedapplications-2018-06 --python` is specified on the command line. @@ -84,6 +98,36 @@ namespace: azure.mgmt.managedapplication.v2018_06_01 output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2018_06_01 ``` +### Tag: package-managedapplications-2018-03 and python + +These settings apply only when `--tag=package-managedapplications-2018-03 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-03' +namespace: azure.mgmt.managedapplication.v2018_03_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2018_03_01 +``` + +### Tag: package-managedapplications-2018-02 and python + +These settings apply only when `--tag=package-managedapplications-2018-02 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-02' +namespace: azure.mgmt.managedapplication.v2018_02_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2018_02_01 +``` + +### Tag: package-managedapplications-2017-12 and python + +These settings apply only when `--tag=package-managedapplications-2017-12 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-12' +namespace: azure.mgmt.managedapplication.v2017_12_01 +output-folder: $(python-sdks-folder)/managedapplication/azure-mgmt-managedapplication/azure/mgmt/managedapplication/v2017_12_01 +``` + ### Tag: package-managedapplications-2017-09 and python These settings apply only when `--tag=package-managedapplications-2017-09 --python` is specified on the command line. diff --git a/specification/solutions/resource-manager/readme.ruby.md b/specification/solutions/resource-manager/readme.ruby.md index 34272697aad7..3649b44f7384 100644 --- a/specification/solutions/resource-manager/readme.ruby.md +++ b/specification/solutions/resource-manager/readme.ruby.md @@ -9,7 +9,11 @@ batch: - tag: package-managedapplications-2021-02 - tag: package-managedapplications-2020-08 - tag: package-managedapplications-2019-07 + - tag: package-managedapplications-2018-09 - tag: package-managedapplications-2018-06 + - tag: package-managedapplications-2018-03 + - tag: package-managedapplications-2018-02 + - tag: package-managedapplications-2017-12 - tag: package-managedapplications-2017-09 ``` @@ -53,6 +57,16 @@ namespace: "Azure::ManagedApplications::Mgmt::V2019_07_01" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib ``` +### Tag: package-managedapplications-2020-09 and ruby + +These settings apply only when `--tag=package-managedapplications-2018-09 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-09' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2018_09_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + ### Tag: package-managedapplications-2018-06 and ruby These settings apply only when `--tag=package-managedapplications-2018-06 --ruby` is specified on the command line. @@ -63,6 +77,36 @@ namespace: "Azure::ManagedApplications::Mgmt::V2018_06_01" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib ``` +### Tag: package-managedapplications-2018-03 and ruby + +These settings apply only when `--tag=package-managedapplications-2018-03 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-03' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2018_03_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2018-02 and ruby + +These settings apply only when `--tag=package-managedapplications-2018-02 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2018-02' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2018_02_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + +### Tag: package-managedapplications-2017-12 and ruby + +These settings apply only when `--tag=package-managedapplications-2017-12 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-managedapplications-2017-12' && $(ruby) +namespace: "Azure::ManagedApplications::Mgmt::V2017_12_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_managed_applications/lib +``` + ### Tag: package-managedapplications-2017-09 and ruby These settings apply only when `--tag=package-managedapplications-2017-09 --ruby` is specified on the command line. From 769e58d0d8b401d9b563c14897fd6856443e3b7c Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 17:27:45 -0700 Subject: [PATCH 13/24] Validation. --- .../examples/getApplicationDefinition.json | 4 - ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../managedapplications.json | 286 +++++++++--------- .../examples/listAllowedUpgradePlans.json | 24 ++ ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../managedapplications.json | 213 +++++++++++-- .../createOrUpdateApplicationById.json | 55 ++++ .../examples/deleteApplicationById.json | 10 + .../examples/getApplicationById.json | 52 ++++ .../examples/listAllowedUpgradePlans.json | 24 ++ ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationById.json | 37 +++ .../managedapplications.json | 277 +++++++++++++++-- ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplication.json | 6 +- .../examples/updateApplicationById.json | 6 +- .../examples/updateApplicationDefinition.json | 49 +++ .../2017-09-01/managedapplications.json | 177 +++++++++-- ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplication.json | 6 +- .../examples/updateApplicationById.json | 6 +- .../examples/updateApplicationDefinition.json | 49 +++ .../2017-12-01/managedapplications.json | 168 ++++++++-- .../examples/getApplicationDefinition.json | 4 - ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../2018-02-01/managedapplications.json | 230 +++++++------- .../examples/getApplicationDefinition.json | 4 - ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../2018-03-01/managedapplications.json | 248 ++++++++------- .../examples/getApplicationDefinition.json | 4 - ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../2018-06-01/managedapplications.json | 228 ++++++++------ .../examples/listAllowedUpgradePlans.json | 24 ++ ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationDefinition.json | 49 +++ .../2019-07-01/managedapplications.json | 229 ++++++++++++-- .../createOrUpdateApplicationById.json | 55 ++++ .../examples/deleteApplicationById.json | 10 + .../examples/getApplicationById.json | 52 ++++ .../examples/listAllowedUpgradePlans.json | 15 +- ...tApplicationDefinitionsBySubscription.json | 77 +++++ .../examples/updateApplicationById.json | 37 +++ .../2021-07-01/managedapplications.json | 276 +++++++++++++---- 48 files changed, 3264 insertions(+), 665 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listAllowedUpgradePlans.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listAllowedUpgradePlans.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listAllowedUpgradePlans.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationDefinition.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationById.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsBySubscription.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json index 3fbe604b7949..6a4bb4681408 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/getApplicationDefinition.json @@ -40,10 +40,6 @@ "displayName": "myManagedApplicationDef", "lockLevel": "None", "packageFileUri": "https://path/to/packagezipfile", - "notificationPolicy": null, - "lockingPolicy": null, - "deploymentPolicy": null, - "managementPolicy": null, "policies": [] } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..e1d9fe78ea76 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..79864559cad4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-09-01-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index fc9924c44d1f..73c4cf20d8b5 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -72,7 +72,7 @@ "operationId": "Applications_Get", "description": "Gets the managed application.", "x-ms-examples": { - "Get a managed application": { + "Gets the managed application": { "$ref": "./examples/getApplication.json" } }, @@ -128,7 +128,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes the managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -180,9 +180,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Create or update managed application": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplication.json" } }, @@ -249,9 +249,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates an existing managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -315,7 +315,7 @@ "operationId": "ApplicationDefinitions_Get", "description": "Gets the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Gets the managed application definition": { "$ref": "./examples/getApplicationDefinition.json" } }, @@ -371,7 +371,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get a managed application": { + "Deletes the managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -422,9 +422,9 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { - "Create or update managed application definition": { + "Creates or updates a managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" } }, @@ -484,6 +484,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -494,7 +549,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -541,9 +596,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,15 +639,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -631,7 +725,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -673,7 +767,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -711,9 +805,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -766,9 +860,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application": { "$ref": "./examples/updateApplicationById.json" } }, @@ -818,7 +912,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Lists applications": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -872,7 +966,7 @@ "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Creates or updates the JIT request": { "$ref": "./examples/createOrUpdateJitRequest.json" } }, @@ -933,7 +1027,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Updates the JIT request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -993,7 +1087,7 @@ "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", "x-ms-examples": { - "Lists applications": { + "Deletes the JIT request": { "$ref": "./examples/deleteJitRequest.json" } }, @@ -1044,9 +1138,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsBySubscription.json" } }, @@ -1080,9 +1174,9 @@ "JitRequests" ], "operationId": "jitRequests_ListByResourceGroup", - "description": "Retrieves all JIT requests within the resource group.", + "description": "Lists all JIT requests within the resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -1128,7 +1222,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -1181,7 +1275,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1238,7 +1332,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1297,7 +1391,7 @@ "operationId": "ApplicationDefinitions_GetById", "description": "Gets the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Gets the managed application definition": { "$ref": "./examples/getApplicationDefinition.json" } }, @@ -1353,7 +1447,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes the managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1404,7 +1498,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1696,22 +1790,6 @@ "type": "object", "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." }, - "notificationPolicy": { - "$ref": "#/definitions/ApplicationNotificationPolicy", - "description": "The managed application notification policy." - }, - "lockingPolicy": { - "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", - "description": "The managed application locking policy." - }, - "deploymentPolicy": { - "$ref": "#/definitions/ApplicationDeploymentPolicy", - "description": "The managed application deployment policy." - }, - "managementPolicy": { - "$ref": "#/definitions/ApplicationManagementPolicy", - "description": "The managed application management policy that determines publisher's access to the managed resource group." - }, "policies": { "description": "The managed application provider policies.", "type": "array", @@ -1725,6 +1803,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -2068,73 +2159,6 @@ ], "description": "Application definition artifact." }, - "ApplicationNotificationPolicy": { - "properties": { - "notificationEndpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationNotificationEndpoint" - }, - "description": "The managed application notification endpoint." - } - }, - "required": [ - "notificationEndpoints" - ], - "description": "Managed application notification policy." - }, - "ApplicationNotificationEndpoint": { - "properties": { - "uri": { - "type": "string", - "description": "The managed application notification endpoint uri." - } - }, - "required": [ - "uri" - ], - "description": "Managed application notification endpoint." - }, - "ApplicationPackageLockingPolicyDefinition": { - "properties": { - "allowedActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded actions." - }, - "allowedDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded data actions." - } - }, - "description": "Managed application locking policy." - }, - "ApplicationDeploymentPolicy": { - "properties": { - "deploymentMode": { - "$ref": "#/definitions/DeploymentMode", - "description": "The managed application deployment mode." - } - }, - "required": [ - "deploymentMode" - ], - "description": "Managed application deployment policy." - }, - "ApplicationManagementPolicy": { - "properties": { - "mode": { - "$ref": "#/definitions/ApplicationManagementMode", - "description": "The managed application management mode." - } - }, - "description": "Managed application management policy." - }, "ApplicationPolicy": { "properties": { "name": { @@ -2491,32 +2515,6 @@ } } }, - "DeploymentMode": { - "description": "The deployment mode.", - "enum": [ - "NotSpecified", - "Incremental", - "Complete" - ], - "type": "string", - "x-ms-enum": { - "name": "DeploymentMode", - "modelAsString": true - } - }, - "ApplicationManagementMode": { - "description": "The management mode.", - "enum": [ - "NotSpecified", - "Unmanaged", - "Managed" - ], - "type": "string", - "x-ms-enum": { - "name": "ApplicationManagementMode", - "modelAsString": true - } - }, "UpdateAccessDefinition": { "properties": { "approver": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listAllowedUpgradePlans.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listAllowedUpgradePlans.json new file mode 100644 index 000000000000..057700c855e2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listAllowedUpgradePlans.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "name", + "promotionCode": "promotionCode", + "product": "product", + "publisher": "publisher", + "version": "version" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..33bcf086e8b1 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2020-08-21-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..ded81ce1d8ca --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2020-08-21-preview", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 5edb9ab9fc93..215d142aaff9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -186,7 +186,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or update managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -255,9 +255,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Update managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -489,6 +489,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -499,7 +554,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "List managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -548,7 +603,7 @@ "operationId": "Applications_ListByResourceGroup", "description": "Gets all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Gets all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -589,15 +644,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -636,7 +730,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -678,7 +772,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -716,9 +810,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -771,9 +865,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application": { "$ref": "./examples/updateApplicationById.json" } }, @@ -823,7 +917,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Lists applications": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -877,7 +971,7 @@ "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Creates or updates the JIT request": { "$ref": "./examples/createOrUpdateJitRequest.json" } }, @@ -938,7 +1032,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Updates the JIT request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -998,7 +1092,7 @@ "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", "x-ms-examples": { - "Lists applications": { + "Deletes the JIT request": { "$ref": "./examples/deleteJitRequest.json" } }, @@ -1049,9 +1143,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsBySubscription.json" } }, @@ -1085,9 +1179,9 @@ "JitRequests" ], "operationId": "jitRequests_ListByResourceGroup", - "description": "Retrieves all JIT requests within the resource group.", + "description": "Lists all JIT requests within the resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -1133,7 +1227,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -1178,6 +1272,48 @@ "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListAllowedUpgradePlans", + "description": "List allowed upgrade plans for application.", + "x-ms-examples": { + "List allowed upgrade plans for application": { + "$ref": "./examples/listAllowedUpgradePlans.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/AllowedUpgradePlansResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { "post": { "tags": [ @@ -1186,7 +1322,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1244,7 +1380,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1359,7 +1495,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1410,7 +1546,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1740,6 +1876,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -2706,6 +2855,18 @@ "UserAssignedIdentity": { "type": "string", "description": "The fully qualified resource id of user assigned identity." + }, + "AllowedUpgradePlansResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + }, + "description": "The array of plans." + } + }, + "description": "The array of plan." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..b538d10572c0 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json new file mode 100644 index 000000000000..2ad46110e200 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationById.json new file mode 100644 index 000000000000..61360732f683 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/getApplicationById.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listAllowedUpgradePlans.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listAllowedUpgradePlans.json new file mode 100644 index 000000000000..18b4f01f3cb5 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listAllowedUpgradePlans.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "name", + "promotionCode": "promotionCode", + "product": "product", + "publisher": "publisher", + "version": "version" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..71b60a1d659f --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-02-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json new file mode 100644 index 000000000000..d2f8dc6ddbea --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-02-01-preview", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 8d45fd317fd1..1d7debf777a4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -163,7 +163,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or update managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -221,7 +221,7 @@ "operationId": "Applications_Update", "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Update managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -353,7 +353,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -461,7 +461,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -503,8 +503,8 @@ "operationId": "ApplicationDefinitions_ListBySubscription", "description": "Gets all the application definitions within a subscription.", "x-ms-examples": { - "List managed application definitions": { - "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + "Gets all the application definitions within a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" } }, "parameters": [ @@ -542,7 +542,7 @@ "operationId": "Applications_ListByResourceGroup", "description": "Gets all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Gets all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,7 +584,7 @@ "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Gets all the applications within a subscription": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -623,7 +623,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Create or update jit request": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -716,7 +716,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Create or update jit request": { + "Update jit request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -805,9 +805,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "List jit requests": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -841,9 +841,9 @@ "JitRequests" ], "operationId": "jitRequests_ListByResourceGroup", - "description": "Retrieves all JIT requests within the resource group.", + "description": "Lists all JIT requests within the resource group.", "x-ms-examples": { - "List jit requests": { + "Lists all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -874,6 +874,193 @@ } } }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Gets the managed application": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Deletes the managed application": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates or updates a managed application.", + "x-ms-examples": { + "Creates or updates a managed application": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application.", + "x-ms-examples": { + "Updates an existing managed application": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { "post": { "tags": [ @@ -914,6 +1101,48 @@ "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListAllowedUpgradePlans", + "description": "List allowed upgrade plans for application.", + "x-ms-examples": { + "List allowed upgrade plans for application": { + "$ref": "./examples/listAllowedUpgradePlans.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/AllowedUpgradePlansResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { "post": { "tags": [ @@ -922,7 +1151,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -980,7 +1209,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1095,7 +1324,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1146,7 +1375,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -2488,6 +2717,18 @@ "UserAssignedIdentity": { "type": "string", "description": "The fully qualified resource id of user assigned identity." + }, + "AllowedUpgradePlansResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + }, + "description": "The array of plans." + } + }, + "description": "The array of plan." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..bef94b4006c2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json index d81b4af98313..cd6e7919395d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json @@ -13,8 +13,10 @@ } }, "responses": { - "200": { - "headers": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json index 4713f154fd15..0bae04e70391 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json @@ -11,8 +11,10 @@ } }, "responses": { - "200": { - "headers": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..d8ce6c17f08b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-09-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index 90c3d5c43a8b..836035e38046 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -98,7 +98,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -150,7 +150,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -219,9 +219,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Update managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -249,7 +249,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -261,10 +261,10 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -273,7 +273,8 @@ "$ref": "#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -340,7 +341,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -378,24 +379,20 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -456,8 +453,69 @@ "$ref": "#/definitions/ErrorResponse" } } + } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } }, - "x-ms-long-running-operation": true + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition to delete.", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -468,7 +526,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -515,9 +573,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -558,15 +616,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -605,7 +702,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -647,7 +744,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -685,9 +782,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -740,9 +837,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application": { "$ref": "./examples/updateApplicationById.json" } }, @@ -759,7 +856,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -768,10 +865,10 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -780,7 +877,8 @@ "$ref": "#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } } }, @@ -971,6 +1069,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..78f2ed46727b --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json index 9a597b4eb1df..6efb7cec16ab 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json @@ -13,8 +13,10 @@ } }, "responses": { - "200": { - "headers": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json index b38c895f79eb..3af3372a5ca8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json @@ -11,8 +11,10 @@ } }, "responses": { - "200": { - "headers": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, "body": { "name": "myManagedApplication", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..d567628d3c78 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2017-12-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index d8c9fdb42e04..ad7b828b96a1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -98,7 +98,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -150,7 +150,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -219,9 +219,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates an existing managed application.": { "$ref": "./examples/updateApplication.json" } }, @@ -249,7 +249,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -261,10 +261,10 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -273,7 +273,8 @@ "$ref": "#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -340,7 +341,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -378,24 +379,20 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted - Returns this status until the asynchronous operation has completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ErrorResponse" } } - }, - "x-ms-long-running-operation": true + } }, "put": { "tags": [ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -456,8 +453,62 @@ "$ref": "#/definitions/ErrorResponse" } } + } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } }, - "x-ms-long-running-operation": true + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -468,7 +519,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -515,9 +566,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -558,6 +609,45 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ @@ -566,7 +656,7 @@ "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Gets all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -605,7 +695,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -647,7 +737,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -685,9 +775,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -740,9 +830,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application.": { "$ref": "./examples/updateApplicationById.json" } }, @@ -759,7 +849,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" }, "description": "Parameters supplied to update an existing managed application." }, @@ -768,10 +858,10 @@ } ], "responses": { - "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationPatchable" } }, "default": { @@ -780,7 +870,8 @@ "$ref": "#/definitions/ErrorResponse" } } - } + }, + "x-ms-long-running-operation": true } } }, @@ -971,6 +1062,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json index 79209e023f77..302ec63795ff 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/getApplicationDefinition.json @@ -40,10 +40,6 @@ "displayName": "myManagedApplicationDef", "lockLevel": "None", "packageFileUri": "https://path/to/packagezipfile", - "notificationPolicy": null, - "lockingPolicy": null, - "deploymentPolicy": null, - "managementPolicy": null, "policies": [] } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..7c5cb2ae33f2 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..981cd36b4ab9 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-02-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json index 45d5c0de0fd0..99bfac1ae75f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -128,7 +128,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -180,7 +180,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -249,9 +249,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -371,7 +371,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get a managed application": { + "Deletes the managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -422,7 +422,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -484,6 +484,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -494,7 +549,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "List managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -541,9 +596,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,15 +639,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -631,7 +725,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -673,7 +767,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -711,9 +805,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -766,9 +860,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application.": { "$ref": "./examples/updateApplicationById.json" } }, @@ -818,7 +912,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -929,7 +1023,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -980,7 +1074,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1272,22 +1366,6 @@ "type": "object", "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." }, - "notificationPolicy": { - "$ref": "#/definitions/ApplicationNotificationPolicy", - "description": "The managed application notification policy." - }, - "lockingPolicy": { - "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", - "description": "The managed application locking policy." - }, - "deploymentPolicy": { - "$ref": "#/definitions/ApplicationDeploymentPolicy", - "description": "The managed application deployment policy." - }, - "managementPolicy": { - "$ref": "#/definitions/ApplicationManagementPolicy", - "description": "The managed application management policy that determines publisher's access to the managed resource group." - }, "policies": { "description": "The managed application provider policies.", "type": "array", @@ -1301,6 +1379,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -1644,73 +1735,6 @@ ], "description": "Application definition artifact." }, - "ApplicationNotificationPolicy": { - "properties": { - "notificationEndpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationNotificationEndpoint" - }, - "description": "The managed application notification endpoint." - } - }, - "required": [ - "notificationEndpoints" - ], - "description": "Managed application notification policy." - }, - "ApplicationNotificationEndpoint": { - "properties": { - "uri": { - "type": "string", - "description": "The managed application notification endpoint uri." - } - }, - "required": [ - "uri" - ], - "description": "Managed application notification endpoint." - }, - "ApplicationPackageLockingPolicyDefinition": { - "properties": { - "allowedActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded actions." - }, - "allowedDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded data actions." - } - }, - "description": "Managed application locking policy." - }, - "ApplicationDeploymentPolicy": { - "properties": { - "deploymentMode": { - "$ref": "#/definitions/DeploymentMode", - "description": "The managed application deployment mode." - } - }, - "required": [ - "deploymentMode" - ], - "description": "Managed application deployment policy." - }, - "ApplicationManagementPolicy": { - "properties": { - "mode": { - "$ref": "#/definitions/ApplicationManagementMode", - "description": "The managed application management mode." - } - }, - "description": "Managed application management policy." - }, "ApplicationPolicy": { "properties": { "name": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json index bb0bbe0464f2..5fa742ef4e14 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/getApplicationDefinition.json @@ -40,10 +40,6 @@ "displayName": "myManagedApplicationDef", "lockLevel": "None", "packageFileUri": "https://path/to/packagezipfile", - "notificationPolicy": null, - "lockingPolicy": null, - "deploymentPolicy": null, - "managementPolicy": null, "policies": [] } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..7b21878f1b39 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..900af02846c7 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-03-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index 8cc3d1c51f42..805fba37a92c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -128,7 +128,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -180,7 +180,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -249,7 +249,7 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/updateApplication.json" @@ -371,7 +371,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -422,7 +422,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or update a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -484,6 +484,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -494,7 +549,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -541,9 +596,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,15 +639,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "List managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -631,7 +725,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -673,7 +767,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -711,9 +805,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -766,9 +860,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application": { "$ref": "./examples/updateApplicationById.json" } }, @@ -818,7 +912,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Lists applications": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -872,7 +966,7 @@ "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Creates or updates the JIT request": { "$ref": "./examples/createOrUpdateJitRequest.json" } }, @@ -933,7 +1027,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Updates the JIT request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -993,7 +1087,7 @@ "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", "x-ms-examples": { - "Lists applications": { + "Deletes the JIT request": { "$ref": "./examples/deleteJitRequest.json" } }, @@ -1044,9 +1138,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsBySubscription.json" } }, @@ -1080,9 +1174,9 @@ "JitRequests" ], "operationId": "jitRequests_ListByResourceGroup", - "description": "Retrieves all JIT requests within the resource group.", + "description": "Lists all JIT requests within the resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -1128,7 +1222,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -1181,7 +1275,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1238,7 +1332,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1353,7 +1447,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1404,7 +1498,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1700,22 +1794,6 @@ "type": "object", "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." }, - "notificationPolicy": { - "$ref": "#/definitions/ApplicationNotificationPolicy", - "description": "The managed application notification policy." - }, - "lockingPolicy": { - "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", - "description": "The managed application locking policy." - }, - "deploymentPolicy": { - "$ref": "#/definitions/ApplicationDeploymentPolicy", - "description": "The managed application deployment policy." - }, - "managementPolicy": { - "$ref": "#/definitions/ApplicationManagementPolicy", - "description": "The managed application management policy that determines publisher's access to the managed resource group." - }, "policies": { "description": "The managed application provider policies.", "type": "array", @@ -1729,6 +1807,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -2072,73 +2163,6 @@ ], "description": "Application definition artifact." }, - "ApplicationNotificationPolicy": { - "properties": { - "notificationEndpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationNotificationEndpoint" - }, - "description": "The managed application notification endpoint." - } - }, - "required": [ - "notificationEndpoints" - ], - "description": "Managed application notification policy." - }, - "ApplicationNotificationEndpoint": { - "properties": { - "uri": { - "type": "string", - "description": "The managed application notification endpoint uri." - } - }, - "required": [ - "uri" - ], - "description": "Managed application notification endpoint." - }, - "ApplicationPackageLockingPolicyDefinition": { - "properties": { - "allowedActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded actions." - }, - "allowedDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The deny assignment excluded data actions." - } - }, - "description": "Managed application locking policy." - }, - "ApplicationDeploymentPolicy": { - "properties": { - "deploymentMode": { - "$ref": "#/definitions/DeploymentMode", - "description": "The managed application deployment mode." - } - }, - "required": [ - "deploymentMode" - ], - "description": "Managed application deployment policy." - }, - "ApplicationManagementPolicy": { - "properties": { - "mode": { - "$ref": "#/definitions/ApplicationManagementMode", - "description": "The managed application management mode." - } - }, - "description": "Managed application management policy." - }, "ApplicationPolicy": { "properties": { "name": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json index 7ba14dc7d1a0..f2138adb101c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json @@ -40,10 +40,6 @@ "displayName": "myManagedApplicationDef", "lockLevel": "None", "packageFileUri": "https://path/to/packagezipfile", - "notificationPolicy": null, - "lockingPolicy": null, - "deploymentPolicy": null, - "managementPolicy": null, "policies": [] } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..85ca38653b84 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..385cc26be492 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2018-06-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 2ba1be96f4d7..4801ae162010 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -128,7 +128,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -180,7 +180,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -249,9 +249,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -371,7 +371,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -422,7 +422,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -484,6 +484,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -494,7 +549,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -541,9 +596,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,15 +639,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -631,7 +725,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Get application by id": { "$ref": "./examples/getApplicationById.json" } }, @@ -673,7 +767,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Delete application by id": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -711,9 +805,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Create or update application by id": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -766,9 +860,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Update application by id": { "$ref": "./examples/updateApplicationById.json" } }, @@ -818,7 +912,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Lists applications": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -872,7 +966,7 @@ "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Creates or updates the JIT request": { "$ref": "./examples/createOrUpdateJitRequest.json" } }, @@ -933,7 +1027,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Updates the JIT request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -993,7 +1087,7 @@ "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", "x-ms-examples": { - "Lists applications": { + "Deletes the JIT request": { "$ref": "./examples/deleteJitRequest.json" } }, @@ -1044,9 +1138,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "Lists applications": { + "Lists jitRequests by subscription": { "$ref": "./examples/listJitRequestsBySubscription.json" } }, @@ -1082,7 +1176,7 @@ "operationId": "jitRequests_ListByResourceGroup", "description": "Retrieves all JIT requests within the resource group.", "x-ms-examples": { - "Lists applications": { + "Lists jitRequests by resourcegroup": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -1128,7 +1222,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -1181,7 +1275,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1238,7 +1332,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List token for application": { "$ref": "./examples/listToken.json" } }, @@ -1353,7 +1447,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1404,7 +1498,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1700,22 +1794,6 @@ "type": "object", "description": "The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string." }, - "notificationPolicy": { - "$ref": "#/definitions/ApplicationNotificationPolicy", - "description": "The managed application notification policy." - }, - "lockingPolicy": { - "$ref": "#/definitions/ApplicationPackageLockingPolicyDefinition", - "description": "The managed application locking policy." - }, - "deploymentPolicy": { - "$ref": "#/definitions/ApplicationDeploymentPolicy", - "description": "The managed application deployment policy." - }, - "managementPolicy": { - "$ref": "#/definitions/ApplicationManagementPolicy", - "description": "The managed application management policy that determines publisher's access to the managed resource group." - }, "policies": { "description": "The managed application provider policies.", "type": "array", @@ -1729,6 +1807,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -2118,27 +2209,6 @@ }, "description": "Managed application locking policy." }, - "ApplicationDeploymentPolicy": { - "properties": { - "deploymentMode": { - "$ref": "#/definitions/DeploymentMode", - "description": "The managed application deployment mode." - } - }, - "required": [ - "deploymentMode" - ], - "description": "Managed application deployment policy." - }, - "ApplicationManagementPolicy": { - "properties": { - "mode": { - "$ref": "#/definitions/ApplicationManagementMode", - "description": "The managed application management mode." - } - }, - "description": "Managed application management policy." - }, "ApplicationPolicy": { "properties": { "name": { @@ -2495,32 +2565,6 @@ } } }, - "DeploymentMode": { - "description": "The deployment mode.", - "enum": [ - "NotSpecified", - "Incremental", - "Complete" - ], - "type": "string", - "x-ms-enum": { - "name": "DeploymentMode", - "modelAsString": true - } - }, - "ApplicationManagementMode": { - "description": "The management mode.", - "enum": [ - "NotSpecified", - "Unmanaged", - "Managed" - ], - "type": "string", - "x-ms-enum": { - "name": "ApplicationManagementMode", - "modelAsString": true - } - }, "UpdateAccessDefinition": { "properties": { "approver": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listAllowedUpgradePlans.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listAllowedUpgradePlans.json new file mode 100644 index 000000000000..1708adc7b6e4 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listAllowedUpgradePlans.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "name", + "promotionCode": "promotionCode", + "product": "product", + "publisher": "publisher", + "version": "version" + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..20eabd22ddc6 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationDefinition.json new file mode 100644 index 000000000000..1eda2f5c2e52 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationDefinitionName": "myManagedApplicationDef", + "api-version": "2019-07-01", + "parameters": { + "tags": { + "department": "Finance" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 477971df4945..7fa157993c94 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -128,7 +128,7 @@ "operationId": "Applications_Delete", "description": "Deletes the managed application.", "x-ms-examples": { - "Get a managed application": { + "Deletes a managed application": { "$ref": "./examples/deleteApplication.json" } }, @@ -180,7 +180,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -249,9 +249,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -371,7 +371,7 @@ "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get a managed application": { + "Deletes the managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -422,7 +422,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Create or update managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -484,6 +484,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions": { @@ -494,7 +549,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -541,9 +596,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -584,15 +639,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions": { + "get": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_ListBySubscription", + "description": "Lists the managed application definitions in a subscription.", + "x-ms-examples": { + "Lists the managed application definitions in a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed application definitions.", + "schema": { + "$ref": "#/definitions/ApplicationDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications": { "get": { "tags": [ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsBySubscription.json" } }, @@ -631,7 +725,7 @@ "operationId": "Applications_GetById", "description": "Gets the managed application.", "x-ms-examples": { - "Lists applications": { + "Gets the managed application": { "$ref": "./examples/getApplicationById.json" } }, @@ -673,7 +767,7 @@ "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", "x-ms-examples": { - "Lists applications": { + "Deletes the managed application": { "$ref": "./examples/deleteApplicationById.json" } }, @@ -711,9 +805,9 @@ "Applications" ], "operationId": "Applications_CreateOrUpdateById", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { - "Lists applications": { + "Creates or updates a managed application": { "$ref": "./examples/createOrUpdateApplicationById.json" } }, @@ -766,9 +860,9 @@ "Applications" ], "operationId": "Applications_UpdateById", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Lists applications": { + "Updates an existing managed application": { "$ref": "./examples/updateApplicationById.json" } }, @@ -818,7 +912,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Lists applications": { + "Gets the JIT request": { "$ref": "./examples/getJitRequest.json" } }, @@ -872,7 +966,7 @@ "operationId": "jitRequests_CreateOrUpdate", "description": "Creates or updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Creates or updates the JIT request": { "$ref": "./examples/createOrUpdateJitRequest.json" } }, @@ -933,7 +1027,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Lists applications": { + "Updates the JIT request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -993,7 +1087,7 @@ "operationId": "jitRequests_Delete", "description": "Deletes the JIT request.", "x-ms-examples": { - "Lists applications": { + "Deletes the JIT request": { "$ref": "./examples/deleteJitRequest.json" } }, @@ -1044,9 +1138,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsBySubscription.json" } }, @@ -1082,7 +1176,7 @@ "operationId": "jitRequests_ListByResourceGroup", "description": "Retrieves all JIT requests within the resource group.", "x-ms-examples": { - "Lists applications": { + "Retrieves all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -1128,7 +1222,7 @@ "operationId": "Applications_RefreshPermissions", "description": "Refresh Permissions for application.", "x-ms-examples": { - "Lists applications": { + "Refresh Permissions for application": { "$ref": "./examples/refreshApplicationPermissions.json" } }, @@ -1173,6 +1267,54 @@ "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { + "post": { + "tags": [ + "Applications" + ], + "operationId": "Applications_ListAllowedUpgradePlans", + "description": "List allowed upgrade plans for application.", + "x-ms-examples": { + "List allowed upgrade plans for application": { + "$ref": "./examples/listAllowedUpgradePlans.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/AllowedUpgradePlansResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { "post": { "tags": [ @@ -1181,7 +1323,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1238,7 +1380,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1353,7 +1495,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1404,7 +1546,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1693,6 +1835,10 @@ "type": "string", "description": "The managed application definition package file Uri. Use this element" }, + "storageAccountId": { + "type": "string", + "description": "The storage account id for bring your own storage scenario." + }, "mainTemplate": { "type": "object", "description": "The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string." @@ -1730,6 +1876,19 @@ ], "description": "The managed application definition properties." }, + "ApplicationDefinitionPatchable": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application definition tags" + } + }, + "description": "Information about an application definition request." + }, "Plan": { "properties": { "name": { @@ -2662,6 +2821,18 @@ "UserAssignedIdentity": { "type": "string", "description": "The fully qualified resource id of user assigned identity." + }, + "AllowedUpgradePlansResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + }, + "description": "The array of plans." + } + }, + "description": "The array of plan." } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..9e3d1375d416 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..832d0e97d4e8 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-07-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationById.json new file mode 100644 index 000000000000..72bb04585e6c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/getApplicationById.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-07-01" + }, + "responses": { + "404": {}, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/managedApplicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created", + "billingDetails": null, + "jitAccessPolicy": null, + "publisherTenantId": null, + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "managementMode": "Managed", + "customerSupport": null, + "supportUrls": null, + "artifacts": [], + "createdBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + }, + "updatedBy": { + "oid": "ClientOid", + "puid": "ClientPuid", + "applicationId": "ClientApplicationId" + } + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listAllowedUpgradePlans.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listAllowedUpgradePlans.json index 6a93ca6853dc..e153c47f6cda 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listAllowedUpgradePlans.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listAllowedUpgradePlans.json @@ -6,6 +6,19 @@ "api-version": "2021-07-01" }, "responses": { - "200": {} + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "name", + "promotionCode": "promotionCode", + "product": "product", + "publisher": "publisher", + "version": "version" + } + ] + } + } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsBySubscription.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsBySubscription.json new file mode 100644 index 000000000000..e0dd9ae3a301 --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsBySubscription.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-07-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplicationDef", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef description", + "displayName": "myManagedApplicationDef", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + }, + { + "name": "myManagedApplicationDef2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2", + "type": "Microsoft.Solutions/applicationDefinitions", + "managedBy": null, + "sku": null, + "properties": { + "artifacts": [ + { + "name": "CreateUiDefinition", + "type": "Custom", + "uri": "https://path/to/managedApplicationCreateUiDefinition.json" + }, + { + "name": "ApplicationResourceTemplate", + "type": "Template", + "uri": "https://path/to/mainTemplate.json" + } + ], + "authorizations": [ + { + "principalId": "validprincipalguid", + "roleDefinitionId": "validroleguid" + } + ], + "description": "myManagedApplicationDef2 description", + "displayName": "myManagedApplicationDef2", + "lockLevel": "None", + "packageFileUri": "https://path/to/packagezipfile" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..4ef6ad286a0a --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "applicationId": "subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" + }, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 01ccf30db1db..45cfcad98e8a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -163,7 +163,7 @@ "Applications" ], "operationId": "Applications_CreateOrUpdate", - "description": "Creates a new managed application.", + "description": "Creates or updates a managed application.", "x-ms-examples": { "Create or update managed application": { "$ref": "./examples/createOrUpdateApplication.json" @@ -222,9 +222,9 @@ "Applications" ], "operationId": "Applications_Update", - "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "description": "Updates an existing managed application.", "x-ms-examples": { - "Create or update managed application": { + "Updates managed application": { "$ref": "./examples/updateApplication.json" } }, @@ -356,7 +356,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdate", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -464,7 +464,7 @@ "operationId": "ApplicationDefinitions_ListByResourceGroup", "description": "Lists the managed application definitions in a resource group.", "x-ms-examples": { - "List managed application definitions": { + "Lists the managed application definitions in a resource group": { "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" } }, @@ -504,10 +504,10 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_ListBySubscription", - "description": "Gets all the application definitions within a subscription.", + "description": "Lists all the application definitions within a subscription.", "x-ms-examples": { - "List managed application definitions": { - "$ref": "./examples/listApplicationDefinitionsByResourceGroup.json" + "Lists all the application definitions within a subscription": { + "$ref": "./examples/listApplicationDefinitionsBySubscription.json" } }, "parameters": [ @@ -543,9 +543,9 @@ "Applications" ], "operationId": "Applications_ListByResourceGroup", - "description": "Gets all the applications within a resource group.", + "description": "Lists all the applications within a resource group.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a resource group": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -585,9 +585,9 @@ "Applications" ], "operationId": "Applications_ListBySubscription", - "description": "Gets all the applications within a subscription.", + "description": "Lists all the applications within a subscription.", "x-ms-examples": { - "Lists applications": { + "Lists all the applications within a subscription": { "$ref": "./examples/listApplicationsByResourceGroup.json" } }, @@ -618,6 +618,193 @@ } } }, + "/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Applications_GetById", + "description": "Gets the managed application.", + "x-ms-examples": { + "Gets the managed application": { + "$ref": "./examples/getApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "404": { + "description": "NotFound." + }, + "200": { + "description": "OK - Returns the managed application.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Applications" + ], + "operationId": "Applications_DeleteById", + "description": "Deletes the managed application.", + "x-ms-examples": { + "Deletes the managed application": { + "$ref": "./examples/deleteApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Applications" + ], + "operationId": "Applications_CreateOrUpdateById", + "description": "Creates or updates a managed application.", + "x-ms-examples": { + "Creates or updates a managed application": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Application" + }, + "description": "Parameters supplied to the create or update a managed application." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "201": { + "description": "Created - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Applications" + ], + "operationId": "Applications_UpdateById", + "description": "Updates an existing managed application.", + "x-ms-examples": { + "Updates an existing managed application": { + "$ref": "./examples/updateApplicationById.json" + } + }, + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + }, + "description": "Parameters supplied to update an existing managed application." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { "get": { "tags": [ @@ -626,7 +813,7 @@ "operationId": "JitRequests_Get", "description": "Gets the JIT request.", "x-ms-examples": { - "Create or update jit request": { + "Gets the jit request": { "$ref": "./examples/getJitRequest.json" } }, @@ -722,7 +909,7 @@ "operationId": "JitRequests_Update", "description": "Updates the JIT request.", "x-ms-examples": { - "Create or update jit request": { + "Update jit request": { "$ref": "./examples/updateJitRequest.json" } }, @@ -811,9 +998,9 @@ "JitRequests" ], "operationId": "jitRequests_ListBySubscription", - "description": "Retrieves all JIT requests within the subscription.", + "description": "Lists all JIT requests within the subscription.", "x-ms-examples": { - "List jit requests": { + "Lists all JIT requests within the subscription": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -847,9 +1034,9 @@ "JitRequests" ], "operationId": "jitRequests_ListByResourceGroup", - "description": "Retrieves all JIT requests within the resource group.", + "description": "Lists all JIT requests within the resource group.", "x-ms-examples": { - "List jit requests": { + "Lists all JIT requests within the resource group": { "$ref": "./examples/listJitRequestsByResourceGroup.json" } }, @@ -948,7 +1135,10 @@ ], "responses": { "200": { - "description": "Ok" + "description": "OK - Returns an array of managed identity tokens.", + "schema": { + "$ref": "#/definitions/AllowedUpgradePlansResult" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -967,7 +1157,7 @@ "operationId": "Applications_UpdateAccess", "description": "Update access for application.", "x-ms-examples": { - "Lists applications": { + "Update access for application": { "$ref": "./examples/updateAccess.json" } }, @@ -1024,7 +1214,7 @@ "operationId": "Applications_ListTokens", "description": "List tokens for application.", "x-ms-examples": { - "Lists applications": { + "List tokens for application": { "$ref": "./examples/listToken.json" } }, @@ -1139,7 +1329,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Deletes managed application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, @@ -1190,7 +1380,7 @@ "ApplicationDefinitions" ], "operationId": "ApplicationDefinitions_CreateOrUpdateById", - "description": "Creates a new managed application definition.", + "description": "Creates or updates a managed application definition.", "x-ms-examples": { "Create or update managed application definition": { "$ref": "./examples/createOrUpdateApplicationDefinition.json" @@ -1428,34 +1618,6 @@ }, "description": "The managed application properties." }, - "ApplicationPropertiesPatchable": { - "type": "object", - "properties": { - "managedResourceGroupId": { - "type": "string", - "description": "The managed resource group Id." - }, - "applicationDefinitionId": { - "type": "string", - "description": "The fully qualified path of managed application definition Id." - }, - "parameters": { - "type": "object", - "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string." - }, - "outputs": { - "readOnly": true, - "type": "object", - "description": "Name and value pairs that define the managed application outputs." - }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "The managed application provisioning state." - } - }, - "description": "The managed application properties." - }, "ApplicationDefinitionProperties": { "type": "object", "properties": { @@ -2507,6 +2669,18 @@ "UserAssignedIdentity": { "type": "string", "description": "The fully qualified resource id of user assigned identity." + }, + "AllowedUpgradePlansResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + }, + "description": "The array of plans." + } + }, + "description": "The array of plan." } }, "parameters": { From 81681fcfe45fea1060364051594225129f65c142 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 17:43:33 -0700 Subject: [PATCH 14/24] Validation. --- .../preview/2020-08-21-preview/managedapplications.json | 3 --- .../2017-09-01/examples/deleteApplicationDefinition.json | 1 - .../2017-12-01/examples/deleteApplicationDefinition.json | 1 - 3 files changed, 5 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 215d142aaff9..0cd777061b2a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -1293,9 +1293,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json index 8ccecdb824bd..97af2d7bf9ff 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json index 7ae6a7607fc2..f36714784dac 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationDefinition.json @@ -7,7 +7,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } From ed85d6a7c021e80f298b2ee4d457179f036ddb5b Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 18:14:43 -0700 Subject: [PATCH 15/24] Validation. --- .../preview/2020-08-21-preview/managedapplications.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 0cd777061b2a..00ac7df7472f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -1293,6 +1293,15 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application.", + "minLength": 3, + "maxLength": 64 } ], "responses": { From 1019533146169b7af0d20539cadbf27a7b154fe6 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 19:34:37 -0700 Subject: [PATCH 16/24] Duplicate key error fix. --- .../solutions/resource-manager/readme.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/specification/solutions/resource-manager/readme.md b/specification/solutions/resource-manager/readme.md index fa31f20af58e..1771900ef1d2 100644 --- a/specification/solutions/resource-manager/readme.md +++ b/specification/solutions/resource-manager/readme.md @@ -28,28 +28,10 @@ These are the global settings for the managedApplication. openapi-type: arm openapi-subtype: rpaas tag: package-managedapplications-2021-07 -tag: package-managedapplications-2021-02 -tag: package-managedapplications-2020-08 -tag: package-managedapplications-2019-07 -tag: package-managedapplications-2018-09 -tag: package-managedapplications-2018-06 -tag: package-managedapplications-2018-03 -tag: package-managedapplications-2018-02 -tag: package-managedapplications-2017-12 -tag: package-managedapplications-2017-09 ``` ``` yaml $(package-managedapplications) tag: package-managedapplications-2021-07 -tag: package-managedapplications-2021-02 -tag: package-managedapplications-2020-08 -tag: package-managedapplications-2019-07 -tag: package-managedapplications-2018-09 -tag: package-managedapplications-2018-06 -tag: package-managedapplications-2018-03 -tag: package-managedapplications-2018-02 -tag: package-managedapplications-2017-12 -tag: package-managedapplications-2017-09 ``` From 4462704f792db634e11f6ed2920b999afc0456dc Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 20:06:45 -0700 Subject: [PATCH 17/24] Validation. --- .../examples/listToken.json | 10 +-- .../managedapplications.json | 10 +-- .../examples/listToken.json | 10 +-- .../managedapplications.json | 44 +++++----- .../examples/listToken.json | 10 +-- .../managedapplications.json | 10 +-- .../examples/listSolutionsOperations.json | 30 +++++++ .../2017-09-01/managedapplications.json | 78 ++++++++++-------- .../examples/listSolutionsOperations.json | 30 +++++++ .../2017-12-01/managedapplications.json | 80 +++++++++++-------- .../stable/2018-03-01/examples/listToken.json | 10 +-- .../2018-03-01/managedapplications.json | 10 +-- .../stable/2018-06-01/examples/listToken.json | 10 +-- .../2018-06-01/managedapplications.json | 10 +-- .../stable/2019-07-01/examples/listToken.json | 10 +-- .../2019-07-01/managedapplications.json | 10 +-- .../stable/2021-07-01/examples/listToken.json | 10 +-- .../2021-07-01/managedapplications.json | 10 +-- 18 files changed, 238 insertions(+), 154 deletions(-) create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listSolutionsOperations.json create mode 100644 specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listSolutionsOperations.json diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json index 2ae2c4abdac7..8a8390e915b1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index 73c4cf20d8b5..eaa6500f8e73 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -2621,19 +2621,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2645,7 +2645,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json index be65606a004a..4a2ade6a63dd 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 00ac7df7472f..c3eb5b5b9401 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -503,13 +503,13 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "name": "applicationDefinitionName", @@ -540,7 +540,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -674,7 +674,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -1286,13 +1286,13 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "name": "applicationName", @@ -1314,7 +1314,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -1334,10 +1334,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "applicationName", @@ -1349,7 +1349,7 @@ "maxLength": 64 }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1371,7 +1371,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -1392,10 +1392,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "applicationName", @@ -1407,7 +1407,7 @@ "maxLength": 64 }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1429,7 +1429,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -2827,19 +2827,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2851,7 +2851,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json index 9616867eeff6..cec029c63214 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 1d7debf777a4..15d2223b602d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -2683,19 +2683,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2707,7 +2707,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..abb310d5979d --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2017-09-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index 836035e38046..8750e8f60db3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -34,6 +34,36 @@ } }, "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { "get": { "tags": [ @@ -86,7 +116,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -139,7 +169,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -208,7 +238,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -270,7 +300,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -329,7 +359,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -382,7 +412,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -450,7 +480,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -512,7 +542,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -558,7 +588,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -607,7 +637,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -685,7 +715,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -732,7 +762,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -771,7 +801,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -826,7 +856,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -874,7 +904,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -1363,24 +1393,6 @@ "roleDefinitionId" ], "description": "The managed application provider authorization." - }, - "ErrorResponse": { - "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "httpStatus": { - "description": "Http status code.", - "type": "string" - }, - "errorCode": { - "description": "Error code.", - "type": "string" - }, - "errorMessage": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listSolutionsOperations.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listSolutionsOperations.json new file mode 100644 index 000000000000..81a0a533fb2c --- /dev/null +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/listSolutionsOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2017-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "SolutionsOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "SolutionssOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index ad7b828b96a1..a59e6dbfe57e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -34,6 +34,36 @@ } }, "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "x-ms-examples": { + "List Solutions operations": { + "$ref": "./examples/listSolutionsOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}": { "get": { "tags": [ @@ -86,7 +116,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -139,7 +169,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -208,7 +238,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -270,7 +300,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -329,7 +359,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -382,7 +412,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -450,7 +480,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -505,7 +535,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -551,7 +581,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -600,7 +630,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -639,7 +669,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -678,7 +708,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -725,7 +755,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -764,7 +794,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -819,7 +849,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -867,7 +897,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -1356,24 +1386,6 @@ "roleDefinitionId" ], "description": "The managed application provider authorization." - }, - "ErrorResponse": { - "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "httpStatus": { - "description": "Http status code.", - "type": "string" - }, - "errorCode": { - "description": "Error code.", - "type": "string" - }, - "errorMessage": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } } }, "parameters": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json index f6dc69bfee45..1378d2e0c6f7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index 805fba37a92c..ec52a068dcc4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -2651,19 +2651,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2675,7 +2675,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json index 19a56305a944..bd3c1272a82f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 4801ae162010..ab2dc934d1b8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -2671,19 +2671,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2695,7 +2695,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json index 9b12d8a13794..7d1ba451e601 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 7fa157993c94..4629c80c517c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -2787,19 +2787,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresTn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2811,7 +2811,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json index f1faba59f2fe..c778b4aef5fe 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listToken.json @@ -18,13 +18,13 @@ "body": { "value": [ { - "access_token": "access_token", - "expires_in": "1500", - "expires_on": "1500", - "not_before": "1500", + "accessToken": "access_token", + "expiresIn": "1500", + "expiresOn": "1500", + "notBefore": "1500", "authorizationAudience": "authorizationAudience", "resourceId": "resourceId", - "token_type": "Bearer" + "tokenType": "Bearer" } ] } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 45cfcad98e8a..9a2047cba34a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -2635,19 +2635,19 @@ }, "ManagedIdentityToken": { "properties": { - "access_token": { + "accessToken": { "type": "string", "description": "The requested access token." }, - "expires_in": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, - "expires_on": { + "expiresOn": { "type": "string", "description": "The timespan when the access token expires. This is represented as the number of seconds from epoch." }, - "not_before": { + "notBefore": { "type": "string", "description": "The timespan when the access token takes effect. This is represented as the number of seconds from epoch." }, @@ -2659,7 +2659,7 @@ "type": "string", "description": "The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID." }, - "token_type": { + "tokenType": { "type": "string", "description": "The type of the token." } From 4bb6ba43338569ef0e8666655c170568d7ccc87e Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 20:33:27 -0700 Subject: [PATCH 18/24] Validation. --- .../managedapplications.json | 53 +++++++++++++++--- .../managedapplications.json | 51 +++++++++++++---- .../managedapplications.json | 47 +++++++++++++--- .../2017-09-01/managedapplications.json | 43 ++++++++++++--- .../2017-12-01/managedapplications.json | 43 ++++++++++++--- .../2018-02-01/managedapplications.json | 48 +++++++++++++--- .../2018-03-01/managedapplications.json | 53 +++++++++++++++--- .../2018-06-01/managedapplications.json | 53 +++++++++++++++--- .../2019-07-01/managedapplications.json | 55 +++++++++++++++---- .../2021-07-01/managedapplications.json | 25 +++++++-- 10 files changed, 387 insertions(+), 84 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index eaa6500f8e73..e98cf49736ef 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1018,7 +1042,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1264,7 +1291,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { @@ -1774,6 +1804,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index c3eb5b5b9401..04cd41adb80b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -48,20 +48,20 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -179,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -248,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -803,7 +809,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -858,7 +867,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -906,7 +918,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1023,7 +1038,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1269,7 +1287,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { @@ -1375,7 +1396,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { @@ -1833,6 +1857,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 15d2223b602d..e8818035d1b4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -55,7 +55,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } }, "default": { @@ -212,7 +212,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -261,7 +264,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -707,7 +713,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -955,7 +964,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -1010,7 +1022,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1058,7 +1073,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { @@ -1098,7 +1116,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { @@ -1198,7 +1219,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens": { @@ -1662,6 +1686,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index 8750e8f60db3..cd9c7e494955 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -805,7 +820,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -860,7 +878,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -908,7 +929,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } } }, @@ -1076,6 +1100,11 @@ "$ref": "#/definitions/ApplicationArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index a59e6dbfe57e..f5524c4fdb9e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } } }, @@ -1069,6 +1093,11 @@ "$ref": "#/definitions/ApplicationArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json index 99bfac1ae75f..0170330ec39f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions": { @@ -954,7 +978,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } } }, @@ -1350,6 +1377,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index ec52a068dcc4..a306863bec2b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1018,7 +1042,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1264,7 +1291,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { @@ -1778,6 +1808,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index ab2dc934d1b8..1eef44cca0ab 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1018,7 +1042,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1264,7 +1291,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess": { @@ -1778,6 +1808,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 4629c80c517c..e7bc334d4c68 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -57,6 +57,12 @@ "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -173,7 +179,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -242,7 +251,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -304,7 +316,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -798,7 +813,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -853,7 +871,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -901,7 +922,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1018,7 +1042,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -1264,7 +1291,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { @@ -1827,6 +1857,11 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state." + }, "description": { "type": "string", "description": "The managed application definition description." @@ -2791,7 +2826,7 @@ "type": "string", "description": "The requested access token." }, - "expiresTn": { + "expiresIn": { "type": "string", "description": "The number of seconds the access token will be valid." }, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 9a2047cba34a..1fef7e0c4d6f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -264,7 +264,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}": { @@ -699,7 +702,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "put": { "tags": [ @@ -754,7 +760,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } }, "patch": { "tags": [ @@ -802,7 +811,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}": { @@ -1104,7 +1116,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans": { From 59beb21f00416ee181bf6e4a6b7cd7bc6ff3b355 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Thu, 21 Jul 2022 21:31:17 -0700 Subject: [PATCH 19/24] Validation. --- .../managedapplications.json | 21 +++++++++++++------ .../managedapplications.json | 19 ++++++++++------- .../managedapplications.json | 19 ++++++++++------- .../2017-09-01/managedapplications.json | 9 +++++--- .../2017-12-01/managedapplications.json | 9 +++++--- .../2018-02-01/managedapplications.json | 14 ++++++++----- .../2018-03-01/managedapplications.json | 21 +++++++++++++------ .../2018-06-01/managedapplications.json | 21 +++++++++++++------ .../2019-07-01/managedapplications.json | 21 +++++++++++++------ .../2021-07-01/managedapplications.json | 21 +++++++++++++------ 10 files changed, 120 insertions(+), 55 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index e98cf49736ef..1324d19fc2dd 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "NotFound" + "description": "NotFound", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +364,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -759,7 +761,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -967,7 +970,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1293,7 +1297,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1351,6 +1355,10 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, @@ -1454,7 +1462,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 04cd41adb80b..6e0fb2fec0d6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -111,7 +111,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -359,7 +360,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -755,7 +757,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -963,7 +966,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1289,7 +1293,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1398,7 +1402,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1502,7 +1506,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index e8818035d1b4..6e5e91ae49d2 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -98,7 +98,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -298,7 +299,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -649,7 +651,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -910,7 +913,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -1118,7 +1122,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1221,7 +1225,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1325,7 +1329,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index cd9c7e494955..c7bcdf5574ff 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -369,7 +370,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -772,7 +774,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index f5524c4fdb9e..c35a02293696 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -369,7 +370,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -765,7 +767,8 @@ } }, "404": { - "description": "Not Found" + "description": "Not Found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json index 0170330ec39f..86beb4579cce 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "NotFound" + "description": "NotFound", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +364,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -759,7 +761,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -980,7 +983,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } } @@ -1027,7 +1030,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index a306863bec2b..0cc57609afe8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "NotFound" + "description": "NotFound", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +364,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -759,7 +761,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -967,7 +970,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1293,7 +1297,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1351,6 +1355,10 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, @@ -1454,7 +1462,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 1eef44cca0ab..ce22c35a620b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -117,7 +117,8 @@ } }, "404": { - "description": "NotFound" + "description": "NotFound - The managed application not found", + "x-ms-error-response": false }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +364,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound - The managed application definition not found.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -759,7 +761,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound - The managed application not found.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -967,7 +970,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1293,7 +1297,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1351,6 +1355,10 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, @@ -1454,7 +1462,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index e7bc334d4c68..7f865331f4c7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -111,7 +111,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -363,7 +364,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -759,7 +761,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -967,7 +970,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1293,7 +1297,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1399,6 +1403,10 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, @@ -1502,7 +1510,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 1fef7e0c4d6f..93cba47a1749 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -98,7 +98,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -298,7 +299,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", @@ -648,7 +650,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application.", @@ -845,7 +848,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the JIT request", @@ -1118,7 +1122,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" } } }, @@ -1218,6 +1222,10 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, @@ -1321,7 +1329,8 @@ ], "responses": { "404": { - "description": "NotFound." + "description": "NotFound.", + "x-ms-error-response": false }, "200": { "description": "OK - Returns the managed application definition.", From f8182a31d0851fca5378b179ed1fb816c38b47e7 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 25 Jul 2022 16:45:38 -0700 Subject: [PATCH 20/24] Validation. --- .../managedapplications.json | 90 +++++++++++++++++-- .../managedapplications.json | 90 +++++++++++++++++-- .../managedapplications.json | 84 +++++++++++++++-- .../2017-09-01/managedapplications.json | 23 +++-- .../2017-12-01/managedapplications.json | 23 +++-- .../2018-02-01/managedapplications.json | 81 +++++++++++++++-- .../2018-03-01/managedapplications.json | 90 +++++++++++++++++-- .../2018-06-01/managedapplications.json | 90 +++++++++++++++++-- .../2019-07-01/managedapplications.json | 90 +++++++++++++++++-- .../2021-07-01/managedapplications.json | 88 ++++++++++++++++-- 10 files changed, 697 insertions(+), 52 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index 1324d19fc2dd..a6cdd1496a7a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -167,6 +167,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -803,6 +812,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -1033,6 +1051,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1285,6 +1309,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1343,6 +1370,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1599,6 +1629,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1813,11 +1898,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 6e0fb2fec0d6..0d5e1c38ea97 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -167,6 +167,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -799,6 +808,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -908,6 +920,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1029,6 +1047,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1281,6 +1305,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1387,6 +1414,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1643,6 +1673,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1862,11 +1947,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index 6e5e91ae49d2..dc913b1eee3a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -141,6 +141,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -252,6 +255,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -703,6 +712,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -958,6 +973,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1064,6 +1082,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -1110,6 +1134,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1210,6 +1237,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1466,6 +1496,55 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1691,11 +1770,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index c7bcdf5574ff..1de12b0eb937 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -167,6 +167,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -813,6 +822,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -919,6 +931,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1103,11 +1121,6 @@ "$ref": "#/definitions/ApplicationArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index c35a02293696..a9d8adce6666 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -170,6 +170,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -803,6 +812,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1096,11 +1114,6 @@ "$ref": "#/definitions/ApplicationArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json index 86beb4579cce..36994ba0f23f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -170,6 +170,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -806,6 +815,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -971,6 +989,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1167,6 +1188,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1381,11 +1457,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index 0cc57609afe8..d3f1292bcd1a 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -170,6 +170,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -806,6 +815,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -1033,6 +1051,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1285,6 +1309,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1343,6 +1370,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1599,6 +1629,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1817,11 +1902,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index ce22c35a620b..54aeb9d25f4f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -170,6 +170,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -806,6 +815,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK" + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -1033,6 +1051,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1285,6 +1309,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1343,6 +1370,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1599,6 +1629,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1817,11 +1902,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 7f865331f4c7..bebd2f901d4c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -170,6 +170,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -304,6 +307,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -806,6 +815,9 @@ "204": { "description": "NoContent" }, + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -912,6 +924,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -1033,6 +1051,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1285,6 +1309,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1391,6 +1418,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1647,6 +1677,61 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "applicationDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the managed application definition.", + "minLength": 3, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1866,11 +1951,6 @@ "$ref": "#/definitions/ApplicationDefinitionArtifact" } }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 93cba47a1749..c6e4dd8e6a1b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -141,6 +141,9 @@ } ], "responses": { + "200": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -195,7 +198,7 @@ ], "responses": { "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "description": "OK - Returns information about the managed application, including provisioning status.", "schema": { "$ref": "#/definitions/Application" } @@ -252,6 +255,12 @@ } ], "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -692,6 +701,9 @@ } ], "responses": { + "200": { + "description": "NoContent" + }, "204": { "description": "NoContent" }, @@ -745,7 +757,7 @@ ], "responses": { "200": { - "description": "Created - Returns information about the managed application, including provisioning status.", + "description": "OK - Returns information about the managed application, including provisioning status.", "schema": { "$ref": "#/definitions/Application" } @@ -801,6 +813,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationPatchable" + } + }, "202": { "description": "Accepted - Returns information about the managed application, including provisioning status.", "schema": { @@ -900,6 +918,12 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the JIT request.", + "schema": { + "$ref": "#/definitions/JitRequestDefinition" + } + }, "201": { "description": "Created - Returns information about the JIT request.", "schema": { @@ -1110,6 +1134,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed." }, @@ -1210,6 +1237,9 @@ } ], "responses": { + "200": { + "description": "OK." + }, "202": { "description": "Accepted - Returns this status until the asynchronous operation has completed.", "schema": { @@ -1466,6 +1496,55 @@ } } } + }, + "patch": { + "tags": [ + "ApplicationDefinitions" + ], + "operationId": "ApplicationDefinitions_Update", + "description": "Updates the managed application definition.", + "x-ms-examples": { + "Update managed application definition": { + "$ref": "./examples/updateApplicationDefinition.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ApplicationDefinitionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationDefinitionPatchable" + }, + "description": "Parameters supplied to the update a managed application definition." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the managed application definition, including provisioning status.", + "schema": { + "$ref": "#/definitions/ApplicationDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } } }, @@ -1679,11 +1758,6 @@ "uri" ] }, - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "Provisioning state." - }, "description": { "type": "string", "description": "The managed application definition description." From e1323e55ee2e3d13d9c386cb71b6c477e5f44fac Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 25 Jul 2022 17:37:24 -0700 Subject: [PATCH 21/24] Validation. --- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../managedapplications.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../managedapplications.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../managedapplications.json | 2 +- .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../2018-02-01/managedapplications.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../2018-03-01/examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../2018-03-01/managedapplications.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../2018-06-01/examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../2019-07-01/examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../2019-07-01/managedapplications.json | 2 +- .../examples/createOrUpdateJitRequest.json | 32 +++++++++++++++++++ .../examples/deleteApplication.json | 1 + .../examples/deleteApplicationById.json | 1 + .../refreshApplicationPermissions.json | 1 + .../2021-07-01/examples/updateAccess.json | 1 + .../examples/updateApplication.json | 20 ++++++++++++ .../examples/updateApplicationById.json | 20 ++++++++++++ .../2021-07-01/managedapplications.json | 2 +- 68 files changed, 665 insertions(+), 7 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json index ae8d3dc30976..d1123edaacd3 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json index 6cfaff220af0..808c8cf83ec8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-09-01-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json index 33f6f61ddd49..6f5bd3e372fa 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2018-09-01-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json index b2243a0bf16d..98c925044934 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2018-09-01-preview" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json index ef93c16a83cb..c49d5f9ac4d1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json index 948f3dbada04..66f28b1c6778 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json index ac4a7dde8c8b..18e934a315f1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json index a6cdd1496a7a..30522c31e479 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2018-09-01-preview/managedapplications.json @@ -1634,7 +1634,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json index a22e8416a4ee..7a4ae980207b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json index 65d025667a84..3eb3a5687389 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json index ce094f495a63..a1de3e75a096 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json index 5be65aac2e58..db5b435c1515 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2020-08-21-preview" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index 9a80560fd755..0fe0ec48addb 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200":{}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json index 23d07e82b15e..48627eaa225d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json index 7fb2a8a7adf0..077a1b1f4557 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 0d5e1c38ea97..02f25c8b0853 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -1678,7 +1678,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json index c6f1a76a876c..0b30d99f42df 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json index 3af58b099185..58777c3864cf 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json index 2ad46110e200..b070f6a41cb8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json index 82fa24b40931..f0a49bd96be4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200":{}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json index 79b0b92651e8..0a4fb6dbbbcb 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json index d2f8dc6ddbea..f8e4b13e1efa 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json index dc913b1eee3a..e5e7b86760aa 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/managedapplications.json @@ -1501,7 +1501,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json index 1d0120dab098..e0dc30762cb1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2017-09-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json index 8070d54da8c9..6317a9bdc26d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2017-09-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json index cd6e7919395d..ef7d2774a04d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json index 0bae04e70391..a9611d3ca25e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json index 1d672eed1e60..9eb0f3d7e8b8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2017-12-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json index 1ac118673caa..c0442749806b 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2017-12-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json index 6efb7cec16ab..ee8ca2f081e6 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json index 3af3372a5ca8..3c34690b612d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json index 56fcc23b1212..039e5eb60818 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-02-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json index 35a1315d6c1a..1a786eea78bc 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2018-02-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json index 1410d01edf47..5d6edc2a2f63 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2018-02-01" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json index 8513b30cfa2b..e6aae82e2248 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json index 418a782a2613..f6320c6d0f7d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json index 36994ba0f23f..ceae7370e138 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-02-01/managedapplications.json @@ -1193,7 +1193,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json index 9cbe5a86bb3a..7cf748873041 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json index 2379ab7e2e66..73c5813a10b4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-03-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json index 6906a7541211..9a89eff42031 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2018-03-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json index 3604153fc4e1..4218d4d1ad1d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2018-03-01" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json index 3db71bbefc1c..efd93629208e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json index 2750c04f0e0e..3e8c8eacffc1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json index e6437f0c064f..d31c4d6e5120 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json index d3f1292bcd1a..b2c7e1101fa4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-03-01/managedapplications.json @@ -1634,7 +1634,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json index 817ac906e4c9..5c8e31e22499 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json index 8e3893f8b060..65baf3c0596e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json index 67a5670da46b..2acb68fec858 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2018-06-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json index 18b3472453b4..59b9f95cef6f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2018-06-01" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json index a440cf6d417e..04596f5c7689 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json index 0a0437592d20..47853b472aa7 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json index 8084cb1388bc..177ade4d7be4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json index c230a8aacdeb..80121770466d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json index 70ec0f700718..79eb13d2e577 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2019-07-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json index 74300b5223ce..e72650c45aa8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2019-07-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json index d9f10c672d3e..5e0769ee2017 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2019-07-01" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json index b7288f3157de..d84dda3699a0 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json index 6163cd77d61d..1b586388164c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json index 35f40b6dd305..da346a6b7109 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index bebd2f901d4c..96e15197b1fb 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -1682,7 +1682,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json index b6aa8ff12b7d..3bbd72a63221 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateJitRequest.json @@ -22,6 +22,38 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "applicationResourceId": "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158", + "jitAuthorizationPolicies": [ + { + "principalId": "1db8e132e2934dbcb8e1178a61319491", + "roleDefinitionId": "ecd05a23-931a-4c38-a52b-ac7c4c583334" + } + ], + "jitSchedulingPolicy": { + "type": "Once", + "duration": "PT8H", + "startTime": "2021-04-22T05:48:30.6661804Z" + }, + "provisioningState": "Accepted", + "jitRequestState": "Pending", + "createdBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + }, + "updatedBy": { + "oid": "", + "applicationId": "33a83f1f-c363-4ae7-9e0a-a0c08466354d" + } + }, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest", + "name": "myJitRequest", + "type": "Microsoft.Solutions/jitRequests" + } + }, "201": { "headers": {}, "body": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json index 12ae39df4e58..7c576c5b3df9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplication.json @@ -6,6 +6,7 @@ "api-version": "2021-07-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json index 832d0e97d4e8..46d96622871e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/deleteApplicationById.json @@ -4,6 +4,7 @@ "api-version": "2021-07-01" }, "responses": { + "200": {}, "202": {}, "204": {} } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json index cc21409d387f..e22ab9fd8a88 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2021-07-01" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json index 9627914a7059..eea40a858881 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateAccess.json @@ -17,6 +17,7 @@ } }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json index 6163cd77d61d..1b586388164c 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json @@ -13,6 +13,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json index 4ef6ad286a0a..2e782ac119db 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplicationById.json @@ -11,6 +11,26 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index c6e4dd8e6a1b..a51cd14f951e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -1501,7 +1501,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { From abc0932d32c3dd4f2bc4bcfedb05fa104815aacf Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 25 Jul 2022 18:12:17 -0700 Subject: [PATCH 22/24] Validation. --- .../examples/refreshApplicationPermissions.json | 1 + .../preview/2021-02-01-preview/examples/updateAccess.json | 2 +- .../stable/2018-06-01/managedapplications.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json index 780167e03d94..0b74be016c96 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/refreshApplicationPermissions.json @@ -6,6 +6,7 @@ "api-version": "2021-02-01-preview" }, "responses": { + "200": {}, "202": {} } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json index f0a49bd96be4..9582d7605d34 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2021-02-01-preview/examples/updateAccess.json @@ -17,7 +17,7 @@ } }, "responses": { - "200":{}, + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 54aeb9d25f4f..ce6bca3cc8e1 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -1634,7 +1634,7 @@ "tags": [ "ApplicationDefinitions" ], - "operationId": "ApplicationDefinitions_Update", + "operationId": "ApplicationDefinitions_UpdateById", "description": "Updates the managed application definition.", "x-ms-examples": { "Update managed application definition": { From d879e0d2076e9d86dfd0ca94c5850eac1660fff8 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 25 Jul 2022 18:49:00 -0700 Subject: [PATCH 23/24] Prettier. --- .../preview/2020-08-21-preview/examples/updateAccess.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json index 0fe0ec48addb..79f5cbb16cee 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateAccess.json @@ -17,7 +17,7 @@ } }, "responses": { - "200":{}, + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Solutions/pathToOperationResult" From d2958531ae3128a7aa789161a1b4e67ded6e0541 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Mon, 25 Jul 2022 22:46:25 -0700 Subject: [PATCH 24/24] Validation. --- .../managedapplications.json | 99 +++++++++---------- .../2017-09-01/managedapplications.json | 30 +++--- .../2017-12-01/managedapplications.json | 32 +++--- 3 files changed, 76 insertions(+), 85 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 02f25c8b0853..2e3d1723eb81 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -123,7 +123,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -179,7 +179,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -251,7 +251,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -322,7 +322,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -381,7 +381,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -434,7 +434,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -502,7 +502,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -520,13 +520,13 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "applicationDefinitionName", @@ -557,7 +557,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -603,7 +603,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -652,7 +652,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -691,7 +691,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -730,7 +730,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -778,7 +778,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -820,7 +820,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -878,7 +878,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -935,7 +935,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -996,7 +996,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1062,7 +1062,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1126,7 +1126,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1177,7 +1177,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1213,7 +1213,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1259,7 +1259,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1314,7 +1314,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1338,13 +1338,13 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "applicationName", @@ -1366,7 +1366,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1386,10 +1386,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "applicationName", @@ -1401,7 +1401,7 @@ "maxLength": 64 }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1426,7 +1426,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1450,10 +1450,10 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "applicationName", @@ -1465,7 +1465,7 @@ "maxLength": 64 }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1487,7 +1487,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1548,7 +1548,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1601,7 +1601,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1669,7 +1669,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1687,13 +1687,13 @@ }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "applicationDefinitionName", @@ -1724,7 +1724,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -2523,15 +2523,6 @@ ], "description": "Managed application Jit access policy." }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - }, - "description": "Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message." - }, "JitRequestDefinition": { "properties": { "properties": { diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json index 1de12b0eb937..e9ca18a2002e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-09-01/managedapplications.json @@ -123,7 +123,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -179,7 +179,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -251,7 +251,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -322,7 +322,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -385,7 +385,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -438,7 +438,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -506,7 +506,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -568,7 +568,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -614,7 +614,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -663,7 +663,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -741,7 +741,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -789,7 +789,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -831,7 +831,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -889,7 +889,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -946,7 +946,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json index a9d8adce6666..f088abf76fd4 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2017-12-01/managedapplications.json @@ -123,7 +123,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -179,7 +179,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -251,7 +251,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -322,7 +322,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -385,7 +385,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -438,7 +438,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -506,7 +506,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -561,7 +561,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -607,7 +607,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -656,7 +656,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -695,7 +695,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -734,7 +734,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -782,7 +782,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -824,7 +824,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -882,7 +882,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -939,7 +939,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } },