diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..1cac517c3506 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_CreateOrUpdate.json @@ -0,0 +1,72 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Delete.json new file mode 100644 index 000000000000..611df2fd2015 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Get.json new file mode 100644 index 000000000000..b82d8110850b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Get.json @@ -0,0 +1,37 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_InitiatorCallback.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_InitiatorCallback.json new file mode 100644 index 000000000000..1a4263e628f5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_InitiatorCallback.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_InitiatorCallback", + "operationId": "Approval_InitiatorCallback", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_ListByParent.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_ListByParent.json new file mode 100644 index 000000000000..ccc3fec7cd3c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_ListByParent.json @@ -0,0 +1,42 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Update.json new file mode 100644 index 000000000000..7afa25831ff1 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Approvals_Update.json @@ -0,0 +1,51 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..e9e453a7e223 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..bb98bd68dde3 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..a21229f9fd1a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..0958612bc8af --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..a691f2e19299 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..51f8bceaea95 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..3325cfa8b3eb --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_CreateOrUpdate.json @@ -0,0 +1,489 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Delete.json new file mode 100644 index 000000000000..5d5d5416861c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Get.json new file mode 100644 index 000000000000..018c8a26fb58 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Get.json @@ -0,0 +1,194 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..56ad188c2c05 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListByResourceGroup.json @@ -0,0 +1,198 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListBySubscription.json new file mode 100644 index 000000000000..04eef7441ba6 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_ListBySubscription.json @@ -0,0 +1,197 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..084f1426588d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,33 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + } + }, + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Update.json new file mode 100644 index 000000000000..46ddf7c6a9ee --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Community_Update.json @@ -0,0 +1,310 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..278ef0d9a686 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "title": "EnclaveConnection_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..94258eed37c2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..84af8ab84f38 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Get.json new file mode 100644 index 000000000000..3fa04ce12bf2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..6e181e4f0e9a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..baead581952a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_PostApprovalCallback.json new file mode 100644 index 000000000000..206bb94c0561 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_ApprovalCallback", + "title": "EnclaveConnection_ApprovalCallback", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Update.json new file mode 100644 index 000000000000..4ec018978564 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..81a6c1647393 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..7113940e5bfc --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..4bf0a2d69eb8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..ffcf98d6bdf3 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..1bf13598e8f4 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..c6ce3b60dd82 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Operations_List.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Operations_List.json new file mode 100644 index 000000000000..72de8204210a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..b151e4c32f79 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Delete.json new file mode 100644 index 000000000000..cb7056404587 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Get.json new file mode 100644 index 000000000000..9bf51dd8fded --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..316af739cb68 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..23a168cb6545 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Update.json new file mode 100644 index 000000000000..d37792c938c9 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..5ea87437aa5c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,190 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..b8b1e797b847 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Get.json new file mode 100644 index 000000000000..0ce7acdc21e5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Get.json @@ -0,0 +1,85 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..386cbdbe6616 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,89 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..d0035fc2ac05 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,88 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Update.json new file mode 100644 index 000000000000..e644bb524861 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/VirtualEnclave_Update.json @@ -0,0 +1,128 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..0a5a0d9aa633 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Delete.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Delete.json new file mode 100644 index 000000000000..31d0354f3ba7 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Get.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Get.json new file mode 100644 index 000000000000..4ec1e7854f23 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Get.json @@ -0,0 +1,38 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..1d4f9bc83d45 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListBySubscription.json new file mode 100644 index 000000000000..e3895932704e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Update.json b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Update.json new file mode 100644 index 000000000000..2075250e1ef2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-06-01-preview/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..62f7acb39c6c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_CreateOrUpdate.json @@ -0,0 +1,108 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Delete.json new file mode 100644 index 000000000000..8d0b4841aab2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Get.json new file mode 100644 index 000000000000..3113f3601e33 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Get.json @@ -0,0 +1,49 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_InitiatorCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_InitiatorCallback.json new file mode 100644 index 000000000000..0ecaf5494bda --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_InitiatorCallback.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_InitiatorCallback", + "operationId": "Approval_InitiatorCallback", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_ListByParent.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_ListByParent.json new file mode 100644 index 000000000000..8d559f5776d8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_ListByParent.json @@ -0,0 +1,54 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Update.json new file mode 100644 index 000000000000..c9c7bded4b5c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Approvals_Update.json @@ -0,0 +1,75 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..fa398f9853ef --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_ApprovalDeletionCallback", + "title": "CommunityEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..20a98ce1c8f1 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..264bcf0175dc --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..bcc51c769d67 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..b827d5a8e169 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..73ec29456211 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..c7c35fba91b5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_ApprovalCallback", + "title": "CommunityEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..b035aaceec9a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..f7c4d6f7aeb5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_CreateOrUpdate.json @@ -0,0 +1,612 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "approvalSettings": { + "endpointCreation": "NotRequired", + "endpointUpdate": "Required", + "endpointDeletion": "NotRequired", + "connectionCreation": "Required", + "connectionUpdate": "Required", + "connectionDeletion": "NotRequired", + "enclaveCreation": "NotRequired", + "enclaveDeletion": "NotRequired", + "maintenanceMode": "NotRequired", + "serviceCatalogDeployment": "NotRequired", + "notificationOnApprovalCreation": "NotRequired", + "notificationOnApprovalAction": "NotRequired", + "notificationOnApprovalDeletion": "NotRequired", + "mandatoryApprovers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000" + } + ], + "minimumApproversRequired": 0 + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Delete.json new file mode 100644 index 000000000000..c01710543bc8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Get.json new file mode 100644 index 000000000000..89216c841dc6 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Get.json @@ -0,0 +1,228 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..6bff3f7f7ee5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListByResourceGroup.json @@ -0,0 +1,232 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListBySubscription.json new file mode 100644 index 000000000000..3cbb49e39f8a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_ListBySubscription.json @@ -0,0 +1,231 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..1855637bff96 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,33 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + } + }, + "api-version": "2024-12-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Update.json new file mode 100644 index 000000000000..5a07ba852fe2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Community_Update.json @@ -0,0 +1,358 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..c858a8845ec0 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "title": "EnclaveConnection_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..87c36c9aac13 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..bab672f52509 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Get.json new file mode 100644 index 000000000000..203c445fb889 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..8604ecfca65d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..170e87db1f8e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_PostApprovalCallback.json new file mode 100644 index 000000000000..2b60a2383061 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_ApprovalCallback", + "title": "EnclaveConnection_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Update.json new file mode 100644 index 000000000000..a58da002e704 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..dd2a57fb4804 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalDeletionCallback", + "title": "EnclaveEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..344891e840f3 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..3ed62f38ab8b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..7b2124dcc5f8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..f08df0b1416f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..cfbcc8ae3450 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..c348942e7450 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalCallback", + "title": "EnclaveEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..40700272a17a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Operations_List.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Operations_List.json new file mode 100644 index 000000000000..d494dc5ec820 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..51421c5cfb8e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Delete.json new file mode 100644 index 000000000000..d75b92834b1a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Get.json new file mode 100644 index 000000000000..84166b8378e9 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..171f9b188efc --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..88b931594a3b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Update.json new file mode 100644 index 000000000000..7f7bdf093736 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..0d35fabd2395 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,322 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..b5ab6ed0658c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Get.json new file mode 100644 index 000000000000..99f271b3ed7f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Get.json @@ -0,0 +1,129 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..14f20d08e578 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,133 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..7fb8d522a3d0 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,132 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalCallback.json new file mode 100644 index 000000000000..2237f8ffc0bc --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_ApprovalCallback", + "title": "VirtualEnclave_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json new file mode 100644 index 000000000000..cfa29b89657f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_ApprovalDeletionCallback", + "title": "VirtualEnclave_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Update.json new file mode 100644 index 000000000000..77752d7175ad --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/VirtualEnclave_Update.json @@ -0,0 +1,216 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..958d114c8332 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Delete.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Delete.json new file mode 100644 index 000000000000..635ca18032d6 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Get.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Get.json new file mode 100644 index 000000000000..fad104de4185 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Get.json @@ -0,0 +1,38 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..56759b0e4fa2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListBySubscription.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListBySubscription.json new file mode 100644 index 000000000000..2329cd7c0d4c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Update.json b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Update.json new file mode 100644 index 000000000000..f78c95500f5e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2024-12-01-preview/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..1702fbcb86c0 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_CreateOrUpdate.json @@ -0,0 +1,108 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Delete.json new file mode 100644 index 000000000000..a9c7932ab133 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ExecuteApprovalAction.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ExecuteApprovalAction.json new file mode 100644 index 000000000000..c15d7225c926 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ExecuteApprovalAction.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_ExecuteApprovalAction", + "operationId": "Approval_ExecuteApprovalAction", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Get.json new file mode 100644 index 000000000000..7671d4fcaf26 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Get.json @@ -0,0 +1,49 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_InitiatorCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_InitiatorCallback.json new file mode 100644 index 000000000000..7ff061bd87f9 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_InitiatorCallback.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_InitiatorCallback", + "operationId": "Approval_InitiatorCallback", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ListByParent.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ListByParent.json new file mode 100644 index 000000000000..3731127bccf8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_ListByParent.json @@ -0,0 +1,54 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_NotifyInitiator.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_NotifyInitiator.json new file mode 100644 index 000000000000..d3d36460b706 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_NotifyInitiator.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_NotifyInitiator", + "operationId": "Approval_NotifyInitiator", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Update.json new file mode 100644 index 000000000000..f8e351bad5aa --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Approvals_Update.json @@ -0,0 +1,75 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..7f2579f86364 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_ApprovalDeletionCallback", + "title": "CommunityEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..f23136d9b04c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..9ac8f8bc2efa --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..4b83dff5f614 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalCreation.json new file mode 100644 index 000000000000..155a47cf5b19 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_HandleApprovalCreation", + "title": "CommunityEndpoints_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalDeletion.json new file mode 100644 index 000000000000..375a5696ee50 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_HandleApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_HandleApprovalDeletion", + "title": "CommunityEndpoints_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..51dc1eb1fc53 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..0749671de2ae --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalCreation.json new file mode 100644 index 000000000000..ee2d7055518b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_NotifyOnApprovalCreation", + "title": "CommunityEndpoints_NotifyOnApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalDeletion.json new file mode 100644 index 000000000000..efd72f6f4e76 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_NotifyOnApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_NotifyOnApprovalDeletion", + "title": "CommunityEndpoints_NotifyOnApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..7af165926e8d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_ApprovalCallback", + "title": "CommunityEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalCreation.json new file mode 100644 index 000000000000..fd3981f4d36d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_SubscribeApprovalCreation", + "title": "CommunityEndpoints_SubscribeApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalDeletion.json new file mode 100644 index 000000000000..4b84b5241438 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_SubscribeApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_SubscribeApprovalDeletion", + "title": "CommunityEndpoints_SubscribeApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..32b15252d104 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..3ea457166f98 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_CreateOrUpdate.json @@ -0,0 +1,613 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "approvalSettings": { + "endpointCreation": "NotRequired", + "endpointUpdate": "Required", + "endpointDeletion": "NotRequired", + "connectionCreation": "Required", + "connectionUpdate": "Required", + "connectionDeletion": "NotRequired", + "enclaveCreation": "NotRequired", + "enclaveDeletion": "NotRequired", + "maintenanceMode": "NotRequired", + "serviceCatalogDeployment": "NotRequired", + "notificationOnApprovalCreation": "NotRequired", + "notificationOnApprovalAction": "NotRequired", + "notificationOnApprovalDeletion": "NotRequired", + "mandatoryApprovers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000" + } + ], + "minimumApproversRequired": 0 + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Delete.json new file mode 100644 index 000000000000..e13386220130 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Get.json new file mode 100644 index 000000000000..8516f1251435 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Get.json @@ -0,0 +1,236 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..d347bda7c5b6 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListByResourceGroup.json @@ -0,0 +1,233 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListBySubscription.json new file mode 100644 index 000000000000..029b19a271b4 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_ListBySubscription.json @@ -0,0 +1,232 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..631ad19dc6d5 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,32 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + } + }, + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Update.json new file mode 100644 index 000000000000..d3dc1f69d98b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Community_Update.json @@ -0,0 +1,358 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..99d9ef59e651 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "title": "EnclaveConnection_ApprovalDeletionCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..412be8b1325c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..5a5016453bd3 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Get.json new file mode 100644 index 000000000000..a74c4d9dbd25 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalCreation.json new file mode 100644 index 000000000000..999f24d0bbab --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_HandleApprovalCreation", + "title": "EnclaveConnection_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalDeletion.json new file mode 100644 index 000000000000..e35266d7164e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_HandleApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_HandleApprovalDeletion", + "title": "EnclaveConnection_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..95b5e5871696 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..8c13c3e5dde0 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalCreation.json new file mode 100644 index 000000000000..896337acf65d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_NotifyOnApprovalCreation", + "title": "EnclaveConnection_NotifyOnApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalDeletion.json new file mode 100644 index 000000000000..c17ee22a704e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_NotifyOnApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_NotifyOnApprovalDeletion", + "title": "EnclaveConnection_NotifyOnApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_PostApprovalCallback.json new file mode 100644 index 000000000000..b4c823cf82a0 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_ApprovalCallback", + "title": "EnclaveConnection_ApprovalCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalCreation.json new file mode 100644 index 000000000000..c504a59d5df4 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_SubscribeApprovalCreation", + "title": "EnclaveConnection_SubscribeApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalDeletion.json new file mode 100644 index 000000000000..d88610244df7 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_SubscribeApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_SubscribeApprovalDeletion", + "title": "EnclaveConnection_SubscribeApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Update.json new file mode 100644 index 000000000000..2b57864d6245 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..c7e778fa0055 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalDeletionCallback", + "title": "EnclaveEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..4e149d60df2b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..377e34864838 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..5145968a4a03 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalCreation.json new file mode 100644 index 000000000000..28b0bde02d9d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_HandleApprovalCreation", + "title": "EnclaveEndpoints_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalDeletion.json new file mode 100644 index 000000000000..91e93563ca47 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_HandleApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_HandleApprovalDeletion", + "title": "EnclaveEndpoints_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..b87b85c3241f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..1e21c255c11f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalCreation.json new file mode 100644 index 000000000000..e055ef838e62 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_NotifyOnApprovalCreation", + "title": "EnclaveEndpoints_NotifyOnApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalDeletion.json new file mode 100644 index 000000000000..7ac44797e9bf --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_NotifyOnApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_NotifyOnApprovalDeletion", + "title": "EnclaveEndpoints_NotifyOnApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..bde519ac9b82 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalCallback", + "title": "EnclaveEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalCreation.json new file mode 100644 index 000000000000..98c54e19de7f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_SubscribeApprovalCreation", + "title": "EnclaveEndpoints_SubscribeApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalDeletion.json new file mode 100644 index 000000000000..5011852a4dfa --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_SubscribeApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_SubscribeApprovalDeletion", + "title": "EnclaveEndpoints_SubscribeApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..00af3b9261d1 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Operations_List.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Operations_List.json new file mode 100644 index 000000000000..c393ee7b2148 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..0cf707c42dff --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Delete.json new file mode 100644 index 000000000000..c341fc33825b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Get.json new file mode 100644 index 000000000000..6ef54f041dc8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListByCommunityResource.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..f32c8c97ef9c --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..ab6b7cb7d621 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Update.json new file mode 100644 index 000000000000..f4ae5d09155d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..1e90860e1a5e --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,319 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..e42f4937e9e9 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Get.json new file mode 100644 index 000000000000..a92b51d65224 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Get.json @@ -0,0 +1,135 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalCreation.json new file mode 100644 index 000000000000..a6c2b68c3e93 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_HandleApprovalCreation", + "title": "VirtualEnclave_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalDeletion.json new file mode 100644 index 000000000000..00339b028b6f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_HandleApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_HandleApprovalDeletion", + "title": "VirtualEnclave_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListByResourceGroup.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..0dd4e5d4668d --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,132 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..5f87a97bc6bd --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,131 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalCreation.json new file mode 100644 index 000000000000..e04dab1fd8d8 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_NotifyOnApprovalCreation", + "title": "VirtualEnclave_NotifyOnApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalDeletion.json new file mode 100644 index 000000000000..bec71422a03a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_NotifyOnApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_NotifyOnApprovalDeletion", + "title": "VirtualEnclave_NotifyOnApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalCallback.json new file mode 100644 index 000000000000..115d8fca7835 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_ApprovalCallback", + "title": "VirtualEnclave_ApprovalCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json new file mode 100644 index 000000000000..c658b8e96a77 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_PostApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_ApprovalDeletionCallback", + "title": "VirtualEnclave_ApprovalDeletionCallback", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalCreation.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalCreation.json new file mode 100644 index 000000000000..351cf984299a --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_SubscribeApprovalCreation", + "title": "VirtualEnclave_SubscribeApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalDeletion.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalDeletion.json new file mode 100644 index 000000000000..fd46143f643b --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_SubscribeApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_SubscribeApprovalDeletion", + "title": "VirtualEnclave_SubscribeApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Update.json new file mode 100644 index 000000000000..46b15bbf5498 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/VirtualEnclave_Update.json @@ -0,0 +1,214 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_CreateOrUpdate.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..6f0ac2af23e6 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Delete.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Delete.json new file mode 100644 index 000000000000..dc54a34b75e2 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Get.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Get.json new file mode 100644 index 000000000000..00425fbfb254 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Get.json @@ -0,0 +1,45 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ], + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + } + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListByEnclaveResource.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..5dc42879932f --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListBySubscription.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListBySubscription.json new file mode 100644 index 000000000000..c477c14af071 --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Update.json b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Update.json new file mode 100644 index 000000000000..22e96a7e53dc --- /dev/null +++ b/specification/mission/Mission.Management/examples/2025-05-01-preview/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/Mission.Management/main.tsp b/specification/mission/Mission.Management/main.tsp new file mode 100644 index 000000000000..27d5aa86dee8 --- /dev/null +++ b/specification/mission/Mission.Management/main.tsp @@ -0,0 +1,21 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/openapi"; +import "@typespec/versioning"; +import "@azure-tools/typespec-autorest"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +import "./version.tsp"; +import "./routes.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@armProviderNamespace("Microsoft.Mission") +@service(#{ title: "Microsoft.Mission" }) +@versioned(Microsoft.Mission.Versions) +@doc("Microsoft.Mission Resource Provider management API.") +namespace Microsoft.Mission; + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/mission/Mission.Management/model.tsp b/specification/mission/Mission.Management/model.tsp new file mode 100644 index 000000000000..5c6b45733b88 --- /dev/null +++ b/specification/mission/Mission.Management/model.tsp @@ -0,0 +1,140 @@ +import "@azure-tools/typespec-autorest"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-client-generator-core"; +import "@typespec/http"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; + +import "./resourcetypes/approvals/approvals.tsp"; +import "./resourcetypes/community/community.tsp"; +import "./resourcetypes/communityEndpoint/communityEndpoint.tsp"; +import "./resourcetypes/enclaveConnection/enclaveConnection.tsp"; +import "./resourcetypes/enclaveEndpoint/enclaveEndpoint.tsp"; +import "./resourcetypes/postActions/approvalspostactions.tsp"; +import "./resourcetypes/postActions/checkaddressspaceavailability.tsp"; +import "./resourcetypes/transitHub/transitHub.tsp"; +import "./resourcetypes/virtualEnclave/virtualenclave.tsp"; +import "./resourcetypes/workload/workload.tsp"; + +import "./resourcetypes/shared/endpointrulebase.tsp"; +import "./resourcetypes/shared/governedserviceitem.tsp"; +import "./resourcetypes/shared/maintenancemodeconfiguration.tsp"; +import "./resourcetypes/shared/managedresourcegroupconfiguration.tsp"; +import "./resourcetypes/shared/principal.tsp"; +import "./resourcetypes/shared/provisioningstate.tsp"; +import "./resourcetypes/shared/resourceid.tsp"; +import "./resourcetypes/shared/roleassignmentitem.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Arm resource update successful") +model ArmUpdatedResponse + is ArmResponse; + +@doc("Community Model Resource") +model CommunityResource is TrackedResource { + @key("communityName") + @segment("communities") + @pattern("^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$") + @path + @doc("The name of the communityResource Resource") + name: string; + + /** The managed service identity for this resource */ + ...ManagedServiceIdentityProperty; +} + +@@added(CommunityResource.identity, + Microsoft.Mission.Versions.v2024_06_01_preview +); + +@doc("Virtual Enclave Model Resource") +model EnclaveResource is TrackedResource { + @key("virtualEnclaveName") + @segment("virtualEnclaves") + @pattern("^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$") + @doc("The name of the enclaveResource Resource") + @path + name: string; + + /** The managed service identity for this resource */ + ...ManagedServiceIdentityProperty; +} + +@@added(EnclaveResource.identity, + Microsoft.Mission.Versions.v2024_06_01_preview +); + +@doc("Workload Model Resource") +@parentResource(EnclaveResource) +model WorkloadResource is TrackedResource { + @key("workloadName") + @segment("workloads") + @pattern("^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$") + @path + @doc("The name of the workloadResource Resource") + name: string; +} + +@doc("TransitHub Model Resource") +@parentResource(CommunityResource) +model TransitHubResource is TrackedResource { + @key("transitHubName") + @segment("transitHubs") + @path + @pattern("^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$") + @doc("The name of the TransitHub Resource") + name: string; +} + +@doc("EnclaveConnection Model Resource") +model EnclaveConnectionResource + is TrackedResource { + @key("enclaveConnectionName") + @segment("enclaveConnections") + @path + @pattern("^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$") + @doc("The name of the Enclave Connection Resource") + name: string; +} + +@doc("EnclaveEndpoint Model Resource") +@parentResource(EnclaveResource) +model EnclaveEndpointResource is TrackedResource { + @key("enclaveEndpointName") + @segment("enclaveEndpoints") + @path + @pattern("^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$") + @doc("The name of the Enclave Endpoint Resource") + name: string; +} + +@doc("CommunityEndpoint Model Resource") +@parentResource(CommunityResource) +model CommunityEndpointResource + is TrackedResource { + @key("communityEndpointName") + @segment("communityEndpoints") + @path + @pattern("^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$") + @doc("The name of the Community Endpoint Resource") + name: string; +} + +@doc("Approval Model Resource") +model ApprovalResource is ExtensionResource { + @key("approvalName") + @segment("approvals") + @path + @pattern("^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$") + @doc("The name of the approvals resource.") + name: string; +} diff --git a/specification/mission/Mission.Management/resourcetypes/approvals/approvals.tsp b/specification/mission/Mission.Management/resourcetypes/approvals/approvals.tsp new file mode 100644 index 000000000000..af7914a565c1 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/approvals/approvals.tsp @@ -0,0 +1,128 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Approval Status. It can be Approved, Rejected, Pending, Deleted or Expired.") +union ApprovalStatus { + string, + + @doc("ApprovalStatus Type Approved") + Approved: "Approved", + + @doc("ApprovalStatus Type Rejected") + Rejected: "Rejected", + + @doc("ApprovalStatus Type Pending") + Pending: "Pending", + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("ApprovalStatus Type Deleted") + Deleted: "Deleted", + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("ApprovalStatus Type Expired") + Expired: "Expired", +} + +@doc("Specifies the action performed by the approver") +union ActionPerformed { + string, + + @doc("Action was Approved") + Approved: "Approved", + + @doc("Action was Rejected") + Rejected: "Rejected", +} + +@doc("Request Metadata for approvals request.") +model RequestMetadata { + @doc("Resource Action of the item being approved or declined.") + resourceAction: string; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Route name for the approval callback") + approvalCallbackRoute?: string; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Payload to be sent upon any action on approval request") + approvalCallbackPayload?: string; + + @doc("Status of the approval. Uses ApprovalStatus enum.") + approvalStatus?: ApprovalStatus = ApprovalStatus.Pending; +} + +@renamedFrom(Microsoft.Mission.Versions.v2024_12_01_preview, "Approvers") +@doc("Approver Metadata for approvals request.") +model Approver { + @doc("Entra ObjectID of the approver") + approverEntraId: string; + + @doc("Action Performed by approver") + actionPerformed?: ActionPerformed; + + @doc("approval request last updated at") + lastUpdatedAt: utcDateTime; +} + +@doc("Approval Base model.") +model ApprovalBaseModel { + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("Parameter for optimizing query results") + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "parent1") + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string) + parentResourceId?: armResourceIdentifier; + + @doc("Parameter for optimizing query results") + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "parent2") + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string) + grandparentResourceId?: armResourceIdentifier; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @OpenAPI.extension("x-ms-identifiers", #["approverEntraId"]) + @doc("List of approvers for the approval request") + approvers?: Approver[]; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Ticket ID for the approval request") + ticketId?: string; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Approval request creation time") + createdAt?: utcDateTime; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Approval request state change time, time at which approval request state changed from pending to approved or rejected.") + stateChangedAt?: utcDateTime; +} + +model ApprovalProperties is ApprovalBaseModel { + @doc("Request metadata for the approval request.") + requestMetadata: RequestMetadata; +} + +@doc("Request Metadata patch properties.") +model RequestMetadataUpdatableProperties + is UpdateableProperties>; + +@doc("Approvals patch properties.") +model ApprovalPatchProperties + is UpdateableProperties> { + @doc("Request metadata for the approval request.") + requestMetadata: RequestMetadataUpdatableProperties; +} + +@doc("Approvals patch model.") +model ApprovalPatchModel { + @doc("Approval Patch properties") + properties?: ApprovalPatchProperties; +} diff --git a/specification/mission/Mission.Management/resourcetypes/community/community.tsp b/specification/mission/Mission.Management/resourcetypes/community/community.tsp new file mode 100644 index 000000000000..8ee99e7118d2 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/community/community.tsp @@ -0,0 +1,206 @@ +// cspell:enableCompoundWords +// cspell:words managedonbehalfofconfiguration + +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "../shared/maintenancemodeconfiguration.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Azure Firewall SKU") +union FirewallSKU { + string, + + @doc("FirewallSKU Basic") + Basic: "Basic", + + @doc("FirwallSKU Standard") + Standard: "Standard", + + @doc("FirewallSKU Premium") + Premium: "Premium", +} + +@added(Microsoft.Mission.Versions.v2024_12_01_preview) +@doc("Approval Policy.") +union ApprovalPolicy { + string, + + @doc("Approval will be required for the specified action.") + Required: "Required", + + @doc("Approval will not be required for the specified action.") + NotRequired: "NotRequired", +} + +@added(Microsoft.Mission.Versions.v2024_12_01_preview) +@doc("Approver Metadata for approvals request.") +model MandatoryApprover { + @doc("EntraId of the approver") + approverEntraId: string; +} + +@added(Microsoft.Mission.Versions.v2024_12_01_preview) +@doc("ApprovalSettings Properties") +model ApprovalSettings { + @doc("Approval required for endpoint creation (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + endpointCreation?: ApprovalPolicy; + + @doc("Approval required for endpoint update (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + endpointUpdate?: ApprovalPolicy; + + @doc("Approval required for endpoint deletion (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + endpointDeletion?: ApprovalPolicy; + + @doc("Approval required for enclave connection creation (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + connectionCreation?: ApprovalPolicy; + + @doc("Approval required for enclave connection update (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + connectionUpdate?: ApprovalPolicy; + + @doc("Approval required for enclave connection deletion (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + connectionDeletion?: ApprovalPolicy; + + @doc("Approval required for virtual enclave creation (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + enclaveCreation?: ApprovalPolicy; + + @doc("Approval required for virtual enclave deletion (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + enclaveDeletion?: ApprovalPolicy; + + @doc("Approval required for toggling maintenance mode (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + maintenanceMode?: ApprovalPolicy; + + @doc("Approval required for deploying service catalog templates (Required or NotRequired).") + @visibility(Lifecycle.Read, Lifecycle.Create) + serviceCatalogDeployment?: ApprovalPolicy; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Notification will be sent on creation of an Approval Request") + @visibility(Lifecycle.Read, Lifecycle.Create) + notificationOnApprovalCreation?: ApprovalPolicy; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Notification will be sent on any action taken (Approve/Reject) on an Approval Request") + @visibility(Lifecycle.Read, Lifecycle.Create) + notificationOnApprovalAction?: ApprovalPolicy; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Notification will be sent on deletion of an Approval Request") + @visibility(Lifecycle.Read, Lifecycle.Create) + notificationOnApprovalDeletion?: ApprovalPolicy; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @OpenAPI.extension("x-ms-identifiers", #["approverEntraId"]) + @doc("List of mandatory approvers for the approval request") + mandatoryApprovers?: MandatoryApprover[]; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Minimum number of approvers required for the approval request") + @visibility(Lifecycle.Read, Lifecycle.Create) + minimumApproversRequired?: int64; +} + +@added(Microsoft.Mission.Versions.v2024_12_01_preview) +@doc("ApprovalSettings Properties") +model ApprovalSettingsPatchProperties + is UpdateableProperties>; + +@doc("Community Resource Properties") +model CommunityBaseModel { + @doc("Address Space.") + @visibility(Lifecycle.Read, Lifecycle.Create) + addressSpace?: string; + + @doc("DNS Servers.") + dnsServers?: string[]; + + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("List of resource ids created by communities.") + @visibility(Lifecycle.Read) + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string[]) + resourceCollection?: armResourceIdentifier[]; + + @doc("Managed resource group name.") + @visibility(Lifecycle.Read) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "managedResourceGroupConfiguration" + ) + @typeChangedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + ManagedResourceGroupConfiguration + ) + managedResourceGroupName?: string; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Managed On Behalf Of Configuration.") + @visibility(Lifecycle.Read) + managedOnBehalfOfConfiguration?: CommonTypes.ManagedOnBehalfOfConfiguration; + + @doc("List of services governed by a community.") + @OpenAPI.extension("x-ms-identifiers", #[]) + governedServiceList?: GovernedServiceItem[]; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Policy override setting for the community. Specifies whether to apply enclave-specific policies or disable policy enforcement.") + policyOverride?: "Enclave" | "None" | string; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Community role assignments") + @OpenAPI.extension("x-ms-identifiers", #[]) + communityRoleAssignments?: RoleAssignmentItem[]; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("SKU of the community's Azure Firewall (Basic, Standard, Premium). Standard is the default") + firewallSku?: FirewallSKU = FirewallSKU.Standard; +} + +@doc("Community Resource Properties") +model CommunityProperties is CommunityBaseModel { + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Approval requirements for various actions on the community's resources.") + approvalSettings?: ApprovalSettings; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Maintenance Mode configuration.") + maintenanceModeConfiguration?: MaintenanceModeConfigurationModel; +} + +@doc("Community Resource Properties without default values") +model CommunityPatchProperties + is UpdateableProperties> { + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Approval requirements for various actions on the community's resources.") + approvalSettings?: ApprovalSettingsPatchProperties; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Maintenance Mode configuration.") + maintenanceModeConfiguration?: MaintenanceModeConfigurationPatchModel; +} + +@doc("Community Patch Resource") +model CommunityPatchModel { + @doc("Community Patch properties") + properties?: CommunityPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; + ...ManagedServiceIdentityProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/communityEndpoint/communityEndpoint.tsp b/specification/mission/Mission.Management/resourcetypes/communityEndpoint/communityEndpoint.tsp new file mode 100644 index 000000000000..d8e797735de0 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/communityEndpoint/communityEndpoint.tsp @@ -0,0 +1,103 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using OpenAPI; +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Community Endpoint Protocol Enum") +union CommunityEndpointProtocol { + string, + + @doc("CommunityEndpointProtocol Type ANY") + ANY: "ANY", + + @doc("CommunityEndpointProtocol Type TCP") + TCP: "TCP", + + @doc("CommunityEndpointProtocol Type UDP") + UDP: "UDP", + + @doc("CommunityEndpointProtocol Type ICMP") + ICMP: "ICMP", + + @doc("CommunityEndpointProtocol Type ESP") + ESP: "ESP", + + @doc("CommunityEndpointProtocol Type AH") + AH: "AH", + + @doc("CommunityEndpointProtocol Type HTTPS") + HTTPS: "HTTPS", + + @doc("CommunityEndpointProtocol Type HTTP") + HTTP: "HTTP", +} + +@doc("Destination Type Enum") +union DestinationType { + string, + + @doc("DestinationType Type FQDN") + FQDN: "FQDN", + + @doc("DestinationType Type FQDNTag") + FQDNTag: "FQDNTag", + + @doc("DestinationType Type IPAddress") + IPAddress: "IPAddress", + + @doc("DestinationType Type PrivateNetwork") + PrivateNetwork: "PrivateNetwork", +} + +@doc("Base type for destination rules.") +model CommunityEndpointDestinationRule { + @doc("Destination Type.") + destinationType?: DestinationType; + + @doc("Protocols. Options specified by Endpoint Protocol Enum.") + protocols?: CommunityEndpointProtocol[]; + + @doc("Transit Hub Resource Id.") + transitHubResourceId?: TransitHubResourceId; + + ...EndpointRuleBase; +} + +@doc("Community Endpoint Resource properties") +model CommunityEndpointProperties { + @extension("x-ms-identifiers", #[]) + @doc("Community Endpoint Rule Collection.") + ruleCollection: CommunityEndpointDestinationRule[]; + + @doc("List of resource ids created by community endpoint.") + @visibility(Lifecycle.Read) + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string[]) + resourceCollection?: armResourceIdentifier[]; + + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @removed(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Whether approval is needed for the connection (True or False).") + approvalRequired?: boolean; +} + +@doc("Community Endpoint patchable Properties") +model CommunityEndpointPatchProperties + is UpdateableProperties>; + +@doc("Community Endpoint Patch Resource") +model CommunityEndpointPatchModel { + @doc("Community Endpoint Patch properties") + properties?: CommunityEndpointPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/enclaveConnection/enclaveConnection.tsp b/specification/mission/Mission.Management/resourcetypes/enclaveConnection/enclaveConnection.tsp new file mode 100644 index 000000000000..cd7aa97bb973 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/enclaveConnection/enclaveConnection.tsp @@ -0,0 +1,84 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Specifies the state of the enclave connection.") +union EnclaveConnectionState { + string, + + @doc("EnclaveConnectionState Type Pending Approval") + PendingApproval: "PendingApproval", + + @doc("EnclaveConnectionState Type Pending Update") + PendingUpdate: "PendingUpdate", + + @doc("EnclaveConnectionState Type Approved") + Approved: "Approved", + + @doc("EnclaveConnectionState Type Active") + Active: "Active", + + @doc("EnclaveConnectionState Type Failed") + Failed: "Failed", + + @doc("EnclaveConnectionState Type Connected") + Connected: "Connected", + + @doc("EnclaveConnectionState Type Disconnected") + Disconnected: "Disconnected", +} + +@doc("Enclave Connection Resource properties") +model EnclaveConnectionProperties { + @doc("The state of the enclaveConnection.") + @visibility(Lifecycle.Read) + state?: EnclaveConnectionState; + + @doc("Community Resource Id.") + @visibility(Lifecycle.Read, Lifecycle.Create) + communityResourceId: CommunityResourceId; + + @doc("Source Resource Id.") + @visibility(Lifecycle.Read, Lifecycle.Create) + sourceResourceId: EnclaveConnectionSourceResourceId; + + @doc("Source CIDR.") + sourceCidr?: string; + + @removed(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Source IP group Resource Id.") + @visibility(Lifecycle.Read, Lifecycle.Create) + ipGroup?: IPGroupResourceId; + + @doc("Destination Endpoint Resource Id.") + @visibility(Lifecycle.Read, Lifecycle.Create) + destinationEndpointId: DestinationEndpointResourceId; + + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("List of resource ids modified by enclave Connections.") + @visibility(Lifecycle.Read) + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string[]) + resourceCollection?: armResourceIdentifier[]; +} + +@doc("Enclave Connection patchable Properties") +model EnclaveConnectionPatchProperties + is UpdateableProperties>; + +@doc("Enclave Connection Patch Resource") +model EnclaveConnectionPatchModel { + @doc("Enclave Connection Patch properties") + properties?: EnclaveConnectionPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/enclaveEndpoint/enclaveEndpoint.tsp b/specification/mission/Mission.Management/resourcetypes/enclaveEndpoint/enclaveEndpoint.tsp new file mode 100644 index 000000000000..7c4fc7c63204 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/enclaveEndpoint/enclaveEndpoint.tsp @@ -0,0 +1,74 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using OpenAPI; +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Enclave Endpoint Protocol Enum") +union EnclaveEndpointProtocol { + string, + + @doc("EndpointProtocol Type ANY") + ANY: "ANY", + + @doc("EndpointProtocol Type TCP") + TCP: "TCP", + + @doc("EndpointProtocol Type UDP") + UDP: "UDP", + + @doc("EndpointProtocol Type ICMP") + ICMP: "ICMP", + + @doc("EndpointProtocol Type ESP") + ESP: "ESP", + + @doc("EndpointProtocol Type AH") + AH: "AH", +} + +@doc("Enclave Endpoint Rule Properties") +model EnclaveEndpointDestinationRule { + @doc("Protocols. Options specified by Endpoint Protocol Enum.") + protocols?: EnclaveEndpointProtocol[]; + + ...EndpointRuleBase; +} + +@doc("Enclave Endpoint Resource properties") +model EnclaveEndpointProperties { + @extension("x-ms-identifiers", #[]) + @doc("Enclave Endpoint Rule Collection.") + ruleCollection: EnclaveEndpointDestinationRule[]; + + @doc("List of resource ids created by community endpoint.") + @visibility(Lifecycle.Read) + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string[]) + resourceCollection?: armResourceIdentifier[]; + + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @removed(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Whether approval is needed for the connection (True or False).") + approvalRequired?: boolean; +} + +@doc("Enclave Endpoint patchable Properties") +model EnclaveEndpointPatchProperties + is UpdateableProperties>; + +@doc("Enclave Endpoint Patch Resource") +model EnclaveEndpointPatchModel { + @doc("Enclave Endpoint Patch properties") + properties?: EnclaveEndpointPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/postActions/approvalspostactions.tsp b/specification/mission/Mission.Management/resourcetypes/postActions/approvalspostactions.tsp new file mode 100644 index 000000000000..34df89820d98 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/postActions/approvalspostactions.tsp @@ -0,0 +1,47 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using Azure.Core; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Request body for calling post-action") +model ApprovalCallbackRequest { + @removed(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Resource Id of the item being approved or rejected") + resourceId: armResourceIdentifier; + + @doc("Resource request action indicating action which needed to be performed upon calling approval-callback post action") + resourceRequestAction: "Create" | "Delete" | "Update" | "Reset" | string; + + @doc("Approval status indicating 'Approved' or 'Rejected'") + approvalStatus: "Approved" | "Rejected" | string; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Payload requested by client upon approval action") + approvalCallbackPayload?: string; +} + +// Define a model for the approval initator callback request +@doc("Request body for calling post-action") +model ApprovalActionRequest { + @doc("Approval status indicating 'Approved' or 'Rejected'") + approvalStatus: "Approved" | "Rejected" | string; +} + +// Define a model for the approval initator callback response +@doc("Response body after handling of approvalCallbackRequest") +model ApprovalActionResponse { + @doc("Confirmation message indicating the result of the operation.") + message: string; +} + +@doc("Request body for calling post-action") +model ApprovalDeletionCallbackRequest { + @doc("Resource request action indicating action which needed to be performed upon calling approval-deletion-callback post action") + resourceRequestAction: "Create" | "Delete" | "Update" | string; +} diff --git a/specification/mission/Mission.Management/resourcetypes/postActions/checkaddressspaceavailability.tsp b/specification/mission/Mission.Management/resourcetypes/postActions/checkaddressspaceavailability.tsp new file mode 100644 index 000000000000..77bd7748d4c8 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/postActions/checkaddressspaceavailability.tsp @@ -0,0 +1,17 @@ +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Request to the action call to check address space availability.") +model CheckAddressSpaceAvailabilityRequest { + @doc("Resource Id of the Community") + communityResourceId: CommunityResourceId; + + @doc("Information about the enclave virtual network") + enclaveVirtualNetwork: EnclaveVirtualNetworkModel; +} + +@doc("Response of availability of the requested address space.") +model CheckAddressSpaceAvailabilityResponse { + @doc("Boolean representing whether the address space is available.") + value: boolean; +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/endpointrulebase.tsp b/specification/mission/Mission.Management/resourcetypes/shared/endpointrulebase.tsp new file mode 100644 index 000000000000..9efc17d9fbb7 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/endpointrulebase.tsp @@ -0,0 +1,21 @@ +import "@typespec/rest"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Base Endpoint Rule Properties") +model EndpointRuleBase { + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "name") + @doc("Endpoint Rule Name.") + endpointRuleName?: string; + + @doc("Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas.") + destination?: string; + + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "port") + @doc("Port. Can include multiple ports separated by commas or a range indicated by a hyphen.") + ports?: string; +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/governedserviceitem.tsp b/specification/mission/Mission.Management/resourcetypes/shared/governedserviceitem.tsp new file mode 100644 index 000000000000..ce2fed7d9b68 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/governedserviceitem.tsp @@ -0,0 +1,90 @@ +// cspell:enableCompoundWords +// cspell:words managedonbehalfofconfiguration + +import "@typespec/rest"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Identifier for governed services.") +union ServiceIdentifier { + string, + + @doc("Service identifier for AKS") + AKS: "AKS", + + @doc("Service identifier for App Service") + AppService: "AppService", + + @doc("Service identifier for Azure Firewalls") + AzureFirewalls: "AzureFirewalls", + + @doc("Service identifier for Container Registry") + ContainerRegistry: "ContainerRegistry", + + @doc("Service identifier for CosmosDB") + CosmosDB: "CosmosDB", + + @doc("Service identifier for Data Connectors") + DataConnectors: "DataConnectors", + + @doc("Service identifier for Insights") + Insights: "Insights", + + @doc("Service identifier for Key Vault") + KeyVault: "KeyVault", + + @doc("Service identifier for Logic") + Logic: "Logic", + + @doc("Service identifier for Microsoft SQL") + MicrosoftSql: "MicrosoftSQL", + + @doc("Service identifier for Monitoring") + Monitoring: "Monitoring", + + @doc("Service identifier for PostgreSQL") + PostgreSql: "PostgreSQL", + + @doc("Service identifier for Private DNS Zones") + PrivateDNSZones: "PrivateDNSZones", + + @doc("Service identifier for Service Bus") + ServiceBus: "ServiceBus", + + @doc("Service identifier for Storage") + Storage: "Storage", +} + +@doc("GovernedServiceItem Properties") +model GovernedServiceItem { + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "id") + @doc("Service ID") + serviceId: ServiceIdentifier; + + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "name") + @doc("Service name.") + @visibility(Lifecycle.Read) + serviceName?: string; + + @doc("Governance option for this service (Allow, Deny, ExceptionOnly, or NotApplicable).") + option?: "Allow" | "Deny" | "ExceptionOnly" | "NotApplicable" | string; + + @doc("Initiative enforcement (Enabled or Disabled).") + enforcement?: "Enabled" | "Disabled" | string; + + @removed(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Policies set to auditOnly (True or False).") + auditOnly?: boolean; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Enforcement mode for policy. AuditOnly, Enforce, or None.") + policyAction?: "AuditOnly" | "Enforce" | "None" | string; + + @doc("Initiatives associated with this service.") + @visibility(Lifecycle.Read) + initiatives?: string[]; +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/maintenancemodeconfiguration.tsp b/specification/mission/Mission.Management/resourcetypes/shared/maintenancemodeconfiguration.tsp new file mode 100644 index 000000000000..9d6763cc0007 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/maintenancemodeconfiguration.tsp @@ -0,0 +1,20 @@ +import "./principal.tsp"; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Maintenance Mode") +model MaintenanceModeConfigurationModel { + @doc("Current mode of Maintenance Mode Configuration") + mode: "On" | "CanNotDelete" | "Off" | "General" | "Advanced" | string = "Off"; + + @doc("The user, group or service principal object affected by Maintenance Mode") + principals?: Principal[] = #[]; + + @doc("Justification for entering or exiting Maintenance Mode") + justification?: "Networking" | "Governance" | "Off" | string = "Off"; +} + +@doc("Maintenance Mode Patch Model") +model MaintenanceModeConfigurationPatchModel + is UpdateableProperties>; diff --git a/specification/mission/Mission.Management/resourcetypes/shared/managedresourcegroupconfiguration.tsp b/specification/mission/Mission.Management/resourcetypes/shared/managedresourcegroupconfiguration.tsp new file mode 100644 index 000000000000..ac05537ee218 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/managedresourcegroupconfiguration.tsp @@ -0,0 +1,19 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using Azure.Core; +using TypeSpec.Versioning; +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@removed(Microsoft.Mission.Versions.v2025_05_01_preview) +@doc("ManagedResourceGroup related properties") +model ManagedResourceGroupConfiguration { + @doc("Name of managed resource group") + name?: string; + + @doc("The geo-location where the resource lives") + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: azureLocation; +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/principal.tsp b/specification/mission/Mission.Management/resourcetypes/shared/principal.tsp new file mode 100644 index 000000000000..ebf7a945c707 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/principal.tsp @@ -0,0 +1,11 @@ +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Principal for maintenance mode or role assignments") +model Principal { + @doc("The object id associated with the principal") + id: string; + + @doc("The type of the object id. We currently allow users, groups, and service principals") + type: "User" | "Group" | "ServicePrincipal" | string; +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/provisioningstate.tsp b/specification/mission/Mission.Management/resourcetypes/shared/provisioningstate.tsp new file mode 100644 index 000000000000..09946cf9fdc2 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/provisioningstate.tsp @@ -0,0 +1,32 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using Azure.Core; +using Azure.ResourceManager; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@lroStatus +@doc("The provisioning status of the resource.") +union ProvisioningState { + ResourceProvisioningState, + + @doc("Provisioning State Type Accepted") + Accepted: "Accepted", + + @doc("Provisioning State Type Creating") + Creating: "Creating", + + @doc("Provisioning State Type Deleting") + Deleting: "Deleting", + + @doc("Provisioning State Type NotSpecified") + NotSpecified: "NotSpecified", + + @doc("Provisioning State Type Running") + Running: "Running", + + @doc("Provisioning State Type Updating") + Updating: "Updating", +} diff --git a/specification/mission/Mission.Management/resourcetypes/shared/resourceid.tsp b/specification/mission/Mission.Management/resourcetypes/shared/resourceid.tsp new file mode 100644 index 000000000000..c1be768135a4 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/resourceid.tsp @@ -0,0 +1,101 @@ +import "@typespec/rest"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; +using Azure.Core; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +scalar VirtualEnclaveResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Mission/virtualEnclaves", + } + ]>; + +scalar VirtualNetworkResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/virtualNetworks", + } + ]>; + +scalar SubnetResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/virtualNetworks/subnets", + } + ]>; + +scalar NsgResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/networkSecurityGroups", + } + ]>; + +scalar CommunityResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Mission/communities", + } + ]>; + +scalar KeyVaultResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.KeyVault/vaults", + } + ]>; + +scalar LogAnalyticsResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.OperationalInsights/workspaces", + } + ]>; + +scalar StorageAccountResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Storage/storageAccounts", + } + ]>; + +scalar EnclaveConnectionSourceResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Mission/virtualEnclaves", + }, + { + type: "Microsoft.Mission/communities/transitHubs", + } + ]>; + +scalar DestinationEndpointResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Mission/virtualEnclaves/enclaveEndpoints", + }, + { + type: "Microsoft.Mission/communities/communityEndpoints", + } + ]>; + +scalar TransitHubResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Mission/communities/transitHubs", + } + ]>; + +@removed(Microsoft.Mission.Versions.v2025_05_01_preview) +scalar IPGroupResourceId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/IpGroups", + } + ]>; diff --git a/specification/mission/Mission.Management/resourcetypes/shared/roleassignmentitem.tsp b/specification/mission/Mission.Management/resourcetypes/shared/roleassignmentitem.tsp new file mode 100644 index 000000000000..f5c2bb7760b8 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/shared/roleassignmentitem.tsp @@ -0,0 +1,16 @@ +import "@typespec/rest"; +import "@typespec/versioning"; + +using TypeSpec.Versioning; +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Role assignment item that indicates which principals should be assigned this role definition") +model RoleAssignmentItem { + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "id") + @doc("Role definition identifier") + roleDefinitionId: string; + + @doc("List of principal IDs to which to assign this role definition") + principals?: Principal[]; +} diff --git a/specification/mission/Mission.Management/resourcetypes/transitHub/transitHub.tsp b/specification/mission/Mission.Management/resourcetypes/transitHub/transitHub.tsp new file mode 100644 index 000000000000..4b0d69039933 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/transitHub/transitHub.tsp @@ -0,0 +1,92 @@ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using Azure.Core; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Specifies the state of the transitHub.") +union TransitHubState { + string, + + @doc("TransitHubState Type PendingApproval") + PendingApproval: "PendingApproval", + + @doc("TransitHubState Type Approved") + Approved: "Approved", + + @doc("TransitHubState Type PendingUpdate") + PendingUpdate: "PendingUpdate", + + @doc("TransitHubState Type Active") + Active: "Active", + + @doc("TransitHubState Type Failed") + Failed: "Failed", +} + +@doc("Specifies the type of the transitOption.") +union TransitOptionType { + string, + + @doc("TransitOptionType ExpressRoute") + ExpressRoute: "ExpressRoute", + + @doc("TransitOptionType Gateway") + Gateway: "Gateway", + + @doc("TransitOptionType Peering") + Peering: "Peering", +} + +@doc("TransitOptionParams Properties") +model TransitOptionParams { + @doc("Transit Option Params scaleUnits.") + scaleUnits?: int64; + + @doc("Transit Option Params remoteVirtualNetworkId.") + remoteVirtualNetworkId?: VirtualNetworkResourceId; +} + +@doc("TransitOption Properties") +model TransitOption { + @doc("Transit Option Type.") + type?: TransitOptionType; + + @doc("Transit Option Params") + params?: TransitOptionParams; +} + +@doc("Describes the properties of an Transit Hub.") +model TransitHubProperties { + @doc("The status of the last operation.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The state of the transitHub.") + state?: TransitHubState; + + @doc("The TransitOption of the transitHub.") + transitOption?: TransitOption; + + @doc("List of resource ids modified by transitHubs.") + @visibility(Lifecycle.Read) + @typeChangedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, string[]) + resourceCollection?: armResourceIdentifier[]; +} + +@doc("Transit Hub patchable Properties") +model TransitHubPatchProperties + is UpdateableProperties>; + +@doc("TH Patch Resource") +model TransitHubPatchModel { + @doc("The TransitHub resource.") + properties?: TransitHubPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/virtualEnclave/virtualenclave.tsp b/specification/mission/Mission.Management/resourcetypes/virtualEnclave/virtualenclave.tsp new file mode 100644 index 000000000000..e3eaa9d39235 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/virtualEnclave/virtualenclave.tsp @@ -0,0 +1,203 @@ +// cspell:enableCompoundWords +// cspell:words managedonbehalfofconfiguration + +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "../shared/maintenancemodeconfiguration.tsp"; + +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Specifies the destination of where to store diagnostic logs.") +union DiagnosticDestination { + string, + + @doc("DiagnosticDestination Type CommunityOnly") + CommunityOnly: "CommunityOnly", + + @doc("DiagnosticDestination Type EnclaveOnly") + EnclaveOnly: "EnclaveOnly", + + @doc("DiagnosticDestination Type Both") + Both: "Both", +} + +@doc("Subnet Configuration") +model SubnetConfiguration { + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "name") + @doc("Subnet name.") + subnetName: string; + + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "id") + @doc("Subnet Resource ID.") + @visibility(Lifecycle.Read) + subnetResourceId?: SubnetResourceId; + + @doc("Network prefix size.") + networkPrefixSize: int32; + + @doc("Subnet delegation.") + subnetDelegation?: string; + + @doc("Address prefix.") + @visibility(Lifecycle.Read) + addressPrefix?: string; + + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "networkSecurityGroupId" + ) + @doc("Network security group ID.") + @visibility(Lifecycle.Read) + networkSecurityGroupResourceId?: NsgResourceId; +} + +@doc("Enclave Virtual Network Properties") +model EnclaveVirtualNetworkModel { + @renamedFrom(Microsoft.Mission.Versions.v2025_05_01_preview, "name") + @doc("Network Name.") + networkName?: string; + + @doc("Network Size.") + @visibility(Lifecycle.Read, Lifecycle.Create) + networkSize?: string; + + @doc("Custom CIDR Range.") + @visibility(Lifecycle.Read, Lifecycle.Create) + customCidrRange?: string; + + @doc("Subnet Configurations.") + @OpenAPI.extension("x-ms-identifiers", #[]) + subnetConfigurations?: SubnetConfiguration[]; + + @doc("Allow Subnet Communication.") + @visibility(Lifecycle.Read, Lifecycle.Create) + allowSubnetCommunication?: boolean = false; + + @removed(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Connect to Azure Services (True or False).") + @visibility(Lifecycle.Read, Lifecycle.Create) + connectToAzureServices?: boolean = false; +} + +@doc("Virtual Enclave Default Settings") +model EnclaveDefaultSettingsPatchModel + is UpdateableProperties>; + +@doc("Virtual Enclave Default Settings") +model EnclaveDefaultSettingsModel { + @doc("Key Vault Resource Id.") + @visibility(Lifecycle.Read) + keyVaultResourceId?: KeyVaultResourceId; + + @doc("Storage Account Resource Id.") + @visibility(Lifecycle.Read) + storageAccountResourceId?: StorageAccountResourceId; + + @doc("Log Analytics Resource Ids.") + @visibility(Lifecycle.Read) + logAnalyticsResourceIdCollection?: LogAnalyticsResourceId[]; + + @doc("Diagnostic Destination.") + diagnosticDestination?: DiagnosticDestination = DiagnosticDestination.EnclaveOnly; +} + +@doc("Enclave Address Spaces") +model EnclaveAddressSpacesModel { + @doc("Enclave Address Space") + enclaveAddressSpace?: string; + + @doc("Managed Address Space") + managedAddressSpace?: string; +} + +@doc("Virtual Enclave Resource properties") +model VirtualEnclaveBaseModel { + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("Virtual Network.") + enclaveVirtualNetwork: EnclaveVirtualNetworkModel; + + @doc("Enclave Address Spaces") + @visibility(Lifecycle.Read) + enclaveAddressSpaces?: EnclaveAddressSpacesModel; + + @doc("Community Resource Id.") + @visibility(Lifecycle.Read, Lifecycle.Create) + communityResourceId: CommunityResourceId; + + @doc("List of resource ids created by Virtual Enclave.") + @visibility(Lifecycle.Read) + resourceCollection?: armResourceIdentifier[]; + + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "managedResourceGroupConfiguration" + ) + @typeChangedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + ManagedResourceGroupConfiguration + ) + @doc("Managed resource group name.") + @visibility(Lifecycle.Read) + managedResourceGroupName?: string; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Managed On Behalf Of Configuration.") + @visibility(Lifecycle.Read) + managedOnBehalfOfConfiguration?: CommonTypes.ManagedOnBehalfOfConfiguration; + + @doc("Deploy Bastion service (True or False).") + bastionEnabled?: boolean = false; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Enclave role assignments") + @OpenAPI.extension("x-ms-identifiers", #[]) + enclaveRoleAssignments?: RoleAssignmentItem[]; + + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @doc("Workload role assignments") + @OpenAPI.extension("x-ms-identifiers", #[]) + workloadRoleAssignments?: RoleAssignmentItem[]; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Enclave specific policies") + @OpenAPI.extension("x-ms-identifiers", #[]) + governedServiceList?: GovernedServiceItem[]; +} + +@doc("Virtual Enclave Resource properties") +model VirtualEnclaveProperties is VirtualEnclaveBaseModel { + @doc("Enclave default settings.") + enclaveDefaultSettings?: EnclaveDefaultSettingsModel; + + @doc("Maintenance Mode configuration.") + maintenanceModeConfiguration?: MaintenanceModeConfigurationModel; +} + +@doc("Virtual Enclave Patchable Properties") +model VirtualEnclavePatchProperties + is UpdateableProperties> { + @doc("Enclave default settings.") + enclaveDefaultSettings?: EnclaveDefaultSettingsPatchModel; + + @doc("Maintenance Mode configuration.") + maintenanceModeConfiguration?: MaintenanceModeConfigurationPatchModel; +} + +@doc("Virtual Enclave Patch Model") +model VirtualEnclavePatchModel { + @doc("Virtual Enclave Patch properties") + properties?: VirtualEnclavePatchProperties; + + ...ManagedServiceIdentityProperty; + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/resourcetypes/workload/workload.tsp b/specification/mission/Mission.Management/resourcetypes/workload/workload.tsp new file mode 100644 index 000000000000..0eb24dc5d2d1 --- /dev/null +++ b/specification/mission/Mission.Management/resourcetypes/workload/workload.tsp @@ -0,0 +1,40 @@ +// cspell:enableCompoundWords +// cspell:words managedonbehalfofconfiguration + +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/versioning"; + +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Workload Resource properties") +model WorkloadProperties { + @doc("Provisioning State.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("List of resource group ids.") + resourceGroupCollection?: string[]; + + @added(Microsoft.Mission.Versions.v2025_05_01_preview) + @doc("Managed On Behalf Of Configuration.") + @visibility(Lifecycle.Read) + managedOnBehalfOfConfiguration?: CommonTypes.ManagedOnBehalfOfConfiguration; +} + +@doc("Workload patchable Properties") +model WorkloadPatchProperties + is UpdateableProperties>; + +@doc("Workload Patch Resource") +model WorkloadPatchModel { + @doc("Workload Patch properties") + properties?: WorkloadPatchProperties; + + ...Azure.ResourceManager.Foundations.ArmTagsProperty; +} diff --git a/specification/mission/Mission.Management/routes.tsp b/specification/mission/Mission.Management/routes.tsp new file mode 100644 index 000000000000..4dafcf1ddade --- /dev/null +++ b/specification/mission/Mission.Management/routes.tsp @@ -0,0 +1,291 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/openapi"; +import "@typespec/versioning"; +import "@azure-tools/typespec-autorest"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-client-generator-core"; + +import "./model.tsp"; + +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; + +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Workload Interface") +@armResourceOperations +interface Workload { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + WorkloadResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + WorkloadResource, + PatchModel = WorkloadPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByEnclaveResource is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; +} + +@doc("Virtual Enclave Interface") +@armResourceOperations +interface VirtualEnclave { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + EnclaveResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + EnclaveResource, + PatchModel = VirtualEnclavePatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByResourceGroup is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; + + @doc("Callback that triggers on approval state change.") + @armResourceAction(EnclaveResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalCallback" + ) + handleApprovalCreation is ArmResourceActionAsync< + EnclaveResource, + ApprovalCallbackRequest, + ApprovalActionResponse + >; + @doc("Callback that triggers on approval deletion state change.") + @armResourceAction(EnclaveResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalDeletionCallback" + ) + handleApprovalDeletion is ArmResourceActionAsync< + EnclaveResource, + ApprovalDeletionCallbackRequest, + ApprovalActionResponse + >; +} + +@doc("Community Interface") +@armResourceOperations +interface Community { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + CommunityResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + CommunityResource, + PatchModel = CommunityPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByResourceGroup is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; + + @autoRoute + @doc("Checks that the IP Address Space to be allocated for this Community is available.") + @armResourceAction(CommunityResource) + @post + checkAddressSpaceAvailability( + ...ResourceInstanceParameters, + + @doc("Check IP Address Space request body.") + @bodyRoot + checkAddressSpaceAvailabilityRequest: CheckAddressSpaceAvailabilityRequest, + ): ArmResponse | ErrorResponse; +} + +@doc("TransitHub Interface") +@armResourceOperations +interface TransitHub { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + TransitHubResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + TransitHubResource, + PatchModel = TransitHubPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByCommunityResource is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; +} + +@doc("Enclave Connection Interface") +@armResourceOperations +interface EnclaveConnection { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + EnclaveConnectionResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + EnclaveConnectionResource, + PatchModel = EnclaveConnectionPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByResourceGroup is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; + + @doc("Callback that triggers on approval state change.") + @armResourceAction(EnclaveConnectionResource) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalCallback" + ) + handleApprovalCreation is ArmResourceActionAsync< + EnclaveConnectionResource, + ApprovalCallbackRequest, + ApprovalActionResponse + >; + @doc("Callback that triggers on approval deletion state change.") + @armResourceAction(EnclaveConnectionResource) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalDeletionCallback" + ) + handleApprovalDeletion is ArmResourceActionAsync< + EnclaveConnectionResource, + ApprovalDeletionCallbackRequest, + ApprovalActionResponse + >; +} + +@doc("Enclave Endpoint Interface") +@armResourceOperations +interface EnclaveEndpoints { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + EnclaveEndpointResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + EnclaveEndpointResource, + PatchModel = EnclaveEndpointPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByEnclaveResource is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; + + @doc("Callback that triggers on approval state change.") + @armResourceAction(EnclaveEndpointResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalCallback" + ) + handleApprovalCreation is ArmResourceActionAsync< + EnclaveEndpointResource, + ApprovalCallbackRequest, + ApprovalActionResponse + >; + @doc("Callback that triggers on approval deletion state change.") + @armResourceAction(EnclaveEndpointResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalDeletionCallback" + ) + handleApprovalDeletion is ArmResourceActionAsync< + EnclaveEndpointResource, + ApprovalDeletionCallbackRequest, + ApprovalActionResponse + >; +} + +@doc("Community Endpoint Interface") +@armResourceOperations +interface CommunityEndpoints { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + CommunityEndpointResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + update is ArmCustomPatchAsync< + CommunityEndpointResource, + PatchModel = CommunityEndpointPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByCommunityResource is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; + + @doc("Callback that triggers on approval state change.") + @armResourceAction(CommunityEndpointResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalCallback" + ) + handleApprovalCreation is ArmResourceActionAsync< + CommunityEndpointResource, + ApprovalCallbackRequest, + ApprovalActionResponse + >; + @doc("Callback that triggers on approval deletion state change.") + @armResourceAction(CommunityEndpointResource) + @added(Microsoft.Mission.Versions.v2024_12_01_preview) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "approvalDeletionCallback" + ) + handleApprovalDeletion is ArmResourceActionAsync< + CommunityEndpointResource, + ApprovalDeletionCallbackRequest, + ApprovalActionResponse + >; +} + +@doc("Approval Interface") +@armResourceOperations +interface Approval { + get is ArmResourceRead; + @useFinalStateVia("azure-async-operation") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + ApprovalResource, + LroHeaders = Azure.Core.Foundations.RetryAfterHeader & + ArmAsyncOperationHeader + >; + listByParent is ArmResourceListByParent; + update is ArmCustomPatchAsync< + ApprovalResource, + PatchModel = ApprovalPatchModel + >; + delete is ArmResourceDeleteWithoutOkAsync; + @doc("Upon receiving approval or rejection from approver, this facilitates actions on approval resource") + @armResourceAction(ApprovalResource) + @renamedFrom( + Microsoft.Mission.Versions.v2025_05_01_preview, + "initiatorCallback" + ) + notifyInitiator is ArmResourceActionAsync< + ApprovalResource, + ApprovalActionRequest, + ApprovalActionResponse + >; +} diff --git a/specification/mission/Mission.Management/tspconfig.yaml b/specification/mission/Mission.Management/tspconfig.yaml new file mode 100644 index 000000000000..5351a7d2031d --- /dev/null +++ b/specification/mission/Mission.Management/tspconfig.yaml @@ -0,0 +1,51 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "./resource-manager" + # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag + arm-resource-flattening: true + emitter-output-dir: "{project-root}/../" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" + arm-types-dir: "{project-root}/../../common-types/resource-management" + omit-unreachable-types: true + use-read-only-status-schema: true + "@azure-tools/typespec-go": + service-dir: sdk/resourcemanager/virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + package-dir: armvirtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + module: github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir} #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + fix-const-stuttering: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + generate-samples: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + generate-fakes: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + head-as-boolean: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + inject-spans: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + flavor: azure #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + "@azure-tools/typespec-python": + package-dir: azure-mgmt-virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + namespace: azure.mgmt.virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + generate-test: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + generate-sample: true #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + flavor: azure #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + "@azure-tools/typespec-java": + flavor: azure #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + package-dir: azure-resourcemanager-virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + namespace: com.azure.resourcemanager.virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + service-name: Virtual Enclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation + "@azure-tools/typespec-ts": + package-dir: "arm-virtualenclaves" + flavor: azure + experimental-extensible-enums: true + package-details: + name: "@azure/arm-virtualenclaves" + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.VirtualEnclaves" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" +parameters: + service-dir: + default: sdk/virtualenclaves #!!!IMPORTANT!!! To ensure the emitter correctly produces SDK, this configuration is added by Azure SDK Team. Some configurations use placeholder values. For modifications, please refer to https://aka.ms/azsdk/specs/typespec-validation#sdktspconfigvalidation diff --git a/specification/mission/Mission.Management/version.tsp b/specification/mission/Mission.Management/version.tsp new file mode 100644 index 000000000000..a64b4f5ec04d --- /dev/null +++ b/specification/mission/Mission.Management/version.tsp @@ -0,0 +1,30 @@ +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-resource-manager"; + +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@versioned(Microsoft.Mission.Versions) +@doc("Microsoft Mission Resource Provider management API.") +namespace Microsoft.Mission; + +@doc("Supported API versions for the Microsoft.Mission resource provider.") +enum Versions { + @doc("The 2024-06-01-preview version.") + @armCommonTypesVersion("v5") + @Versioning.useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) + v2024_06_01_preview: "2024-06-01-preview", + + @doc("The 2024-12-01-preview version.") + @armCommonTypesVersion("v5") + @Versioning.useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) + v2024_12_01_preview: "2024-12-01-preview", + + @doc("The 2025-05-01-preview version.") + @armCommonTypesVersion("v5") + @Versioning.useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) + v2025_05_01_preview: "2025-05-01-preview", +} diff --git a/specification/mission/cspell.yaml b/specification/mission/cspell.yaml new file mode 100644 index 000000000000..8884fb3bf09a --- /dev/null +++ b/specification/mission/cspell.yaml @@ -0,0 +1,18 @@ +# This file configures spell checking. Items in "words" were initially populated +# with words that might be spelling errors. Review these words and take +# appropriate action. For more information, see: https://aka.ms/ci-fix#spell-check + +# Spell checking is not case sensitive +# Keep word lists in alphabetical order so the file is easier to manage +import: + - ../../cspell.yaml +words: + - initator + - resourceid + - mobo +overrides: + - filename: >- + **/specification/mission/Mission.Management/resourcetypes/community/community.tsp + words: + - roleassignmentitem + diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..1cac517c3506 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_CreateOrUpdate.json @@ -0,0 +1,72 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Delete.json new file mode 100644 index 000000000000..611df2fd2015 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Get.json new file mode 100644 index 000000000000..b82d8110850b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Get.json @@ -0,0 +1,37 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_InitiatorCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_InitiatorCallback.json new file mode 100644 index 000000000000..1a4263e628f5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_InitiatorCallback.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_InitiatorCallback", + "operationId": "Approval_InitiatorCallback", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_ListByParent.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_ListByParent.json new file mode 100644 index 000000000000..ccc3fec7cd3c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_ListByParent.json @@ -0,0 +1,42 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Update.json new file mode 100644 index 000000000000..7afa25831ff1 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Approvals_Update.json @@ -0,0 +1,51 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved" + } + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..e9e453a7e223 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..bb98bd68dde3 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..a21229f9fd1a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..0958612bc8af --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..a691f2e19299 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..51f8bceaea95 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..3325cfa8b3eb --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_CreateOrUpdate.json @@ -0,0 +1,489 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Delete.json new file mode 100644 index 000000000000..5d5d5416861c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Get.json new file mode 100644 index 000000000000..018c8a26fb58 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Get.json @@ -0,0 +1,194 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..56ad188c2c05 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListByResourceGroup.json @@ -0,0 +1,198 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListBySubscription.json new file mode 100644 index 000000000000..04eef7441ba6 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_ListBySubscription.json @@ -0,0 +1,197 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..084f1426588d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,33 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + } + }, + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Update.json new file mode 100644 index 000000000000..46ddf7c6a9ee --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Community_Update.json @@ -0,0 +1,310 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..278ef0d9a686 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "title": "EnclaveConnection_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..94258eed37c2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..84af8ab84f38 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Get.json new file mode 100644 index 000000000000..3fa04ce12bf2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..6e181e4f0e9a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..baead581952a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_PostApprovalCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_PostApprovalCallback.json new file mode 100644 index 000000000000..206bb94c0561 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_ApprovalCallback", + "title": "EnclaveConnection_ApprovalCallback", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Update.json new file mode 100644 index 000000000000..4ec018978564 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..81a6c1647393 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..7113940e5bfc --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..4bf0a2d69eb8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..ffcf98d6bdf3 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..1bf13598e8f4 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..c6ce3b60dd82 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Operations_List.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..72de8204210a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..b151e4c32f79 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Delete.json new file mode 100644 index 000000000000..cb7056404587 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Get.json new file mode 100644 index 000000000000..9bf51dd8fded --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..316af739cb68 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..23a168cb6545 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Update.json new file mode 100644 index 000000000000..d37792c938c9 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..5ea87437aa5c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,190 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..b8b1e797b847 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Get.json new file mode 100644 index 000000000000..0ce7acdc21e5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Get.json @@ -0,0 +1,85 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..386cbdbe6616 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,89 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..d0035fc2ac05 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,88 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Update.json new file mode 100644 index 000000000000..e644bb524861 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/VirtualEnclave_Update.json @@ -0,0 +1,128 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..0a5a0d9aa633 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Delete.json new file mode 100644 index 000000000000..31d0354f3ba7 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Get.json new file mode 100644 index 000000000000..4ec1e7854f23 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Get.json @@ -0,0 +1,38 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..1d4f9bc83d45 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListBySubscription.json new file mode 100644 index 000000000000..e3895932704e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Update.json new file mode 100644 index 000000000000..2075250e1ef2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/examples/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/openapi.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/openapi.json new file mode 100644 index 000000000000..38792fac13e5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-06-01-preview/openapi.json @@ -0,0 +1,5380 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Mission", + "version": "2024-06-01-preview", + "description": "Microsoft Mission Resource Provider management API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Workload" + }, + { + "name": "VirtualEnclave" + }, + { + "name": "Community" + }, + { + "name": "TransitHub" + }, + { + "name": "EnclaveConnection" + }, + { + "name": "EnclaveEndpoints" + }, + { + "name": "CommunityEndpoints" + }, + { + "name": "Approval" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.Mission/approvals": { + "get": { + "operationId": "Approval_ListByParent", + "tags": [ + "Approval" + ], + "description": "List ApprovalResource resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_ListByParent": { + "$ref": "./examples/Approvals_ListByParent.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}": { + "get": { + "operationId": "Approval_Get", + "tags": [ + "Approval" + ], + "description": "Get a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Get": { + "$ref": "./examples/Approvals_Get.json" + } + } + }, + "put": { + "operationId": "Approval_CreateOrUpdate", + "tags": [ + "Approval" + ], + "description": "Create a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ApprovalResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "201": { + "description": "Resource 'ApprovalResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_CreateOrUpdate": { + "$ref": "./examples/Approvals_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Approval_Update", + "tags": [ + "Approval" + ], + "description": "Update a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Update": { + "$ref": "./examples/Approvals_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Approval_Delete", + "tags": [ + "Approval" + ], + "description": "Delete a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Delete": { + "$ref": "./examples/Approvals_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}/initiatorCallback": { + "post": { + "operationId": "Approval_InitiatorCallback", + "tags": [ + "Approval" + ], + "description": "Upon receiving approval or rejection from approver, this facilitates actions on approval resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalActionRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_InitiatorCallback": { + "$ref": "./examples/Approvals_InitiatorCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Mission/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListBySubscription", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListBySubscription": { + "$ref": "./examples/Community_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListBySubscription", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListBySubscription": { + "$ref": "./examples/CommunityEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListBySubscription", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListBySubscription": { + "$ref": "./examples/TransitHub_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListBySubscription", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListBySubscription": { + "$ref": "./examples/EnclaveConnection_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListBySubscription", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListBySubscription": { + "$ref": "./examples/VirtualEnclave_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListBySubscription", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListBySubscription": { + "$ref": "./examples/EnclaveEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListBySubscription", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListBySubscription": { + "$ref": "./examples/Workload_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListByResourceGroup", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListByResourceGroup": { + "$ref": "./examples/Community_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}": { + "get": { + "operationId": "Community_Get", + "tags": [ + "Community" + ], + "description": "Get a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Get": { + "$ref": "./examples/Community_Get.json" + } + } + }, + "put": { + "operationId": "Community_CreateOrUpdate", + "tags": [ + "Community" + ], + "description": "Create a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "201": { + "description": "Resource 'CommunityResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CreateOrUpdate": { + "$ref": "./examples/Community_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Community_Update", + "tags": [ + "Community" + ], + "description": "Update a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Update": { + "$ref": "./examples/Community_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Community_Delete", + "tags": [ + "Community" + ], + "description": "Delete a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Delete": { + "$ref": "./examples/Community_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/checkAddressSpaceAvailability": { + "post": { + "operationId": "Community_CheckAddressSpaceAvailability", + "tags": [ + "Community" + ], + "description": "Checks that the IP Address Space to be allocated for this Community is available.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "checkAddressSpaceAvailabilityRequest", + "in": "body", + "description": "Check IP Address Space request body.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CheckAddressSpaceAvailability": { + "$ref": "./examples/Community_PostCheckAddressSpaceAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListByCommunityResource", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListByCommunityResource": { + "$ref": "./examples/CommunityEndpoints_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}": { + "get": { + "operationId": "CommunityEndpoints_Get", + "tags": [ + "CommunityEndpoints" + ], + "description": "Get a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Get": { + "$ref": "./examples/CommunityEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "CommunityEndpoints_CreateOrUpdate", + "tags": [ + "CommunityEndpoints" + ], + "description": "Create a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "201": { + "description": "Resource 'CommunityEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_CreateOrUpdate": { + "$ref": "./examples/CommunityEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "CommunityEndpoints_Update", + "tags": [ + "CommunityEndpoints" + ], + "description": "Update a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Update": { + "$ref": "./examples/CommunityEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "CommunityEndpoints_Delete", + "tags": [ + "CommunityEndpoints" + ], + "description": "Delete a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Delete": { + "$ref": "./examples/CommunityEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListByCommunityResource", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListByCommunityResource": { + "$ref": "./examples/TransitHub_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs/{transitHubName}": { + "get": { + "operationId": "TransitHub_Get", + "tags": [ + "TransitHub" + ], + "description": "Get a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Get": { + "$ref": "./examples/TransitHub_Get.json" + } + } + }, + "put": { + "operationId": "TransitHub_CreateOrUpdate", + "tags": [ + "TransitHub" + ], + "description": "Create a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TransitHubResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "201": { + "description": "Resource 'TransitHubResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_CreateOrUpdate": { + "$ref": "./examples/TransitHub_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "TransitHub_Update", + "tags": [ + "TransitHub" + ], + "description": "Update a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Update": { + "$ref": "./examples/TransitHub_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TransitHub_Delete", + "tags": [ + "TransitHub" + ], + "description": "Delete a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Delete": { + "$ref": "./examples/TransitHub_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListByResourceGroup", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListByResourceGroup": { + "$ref": "./examples/EnclaveConnection_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}": { + "get": { + "operationId": "EnclaveConnection_Get", + "tags": [ + "EnclaveConnection" + ], + "description": "Get a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Get": { + "$ref": "./examples/EnclaveConnection_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveConnection_CreateOrUpdate", + "tags": [ + "EnclaveConnection" + ], + "description": "Create a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveConnectionResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "201": { + "description": "Resource 'EnclaveConnectionResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_CreateOrUpdate": { + "$ref": "./examples/EnclaveConnection_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveConnection_Update", + "tags": [ + "EnclaveConnection" + ], + "description": "Update a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Update": { + "$ref": "./examples/EnclaveConnection_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveConnection_Delete", + "tags": [ + "EnclaveConnection" + ], + "description": "Delete a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Delete": { + "$ref": "./examples/EnclaveConnection_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/approvalCallback": { + "post": { + "operationId": "EnclaveConnection_ApprovalCallback", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ApprovalCallback": { + "$ref": "./examples/EnclaveConnection_PostApprovalCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/approvalDeletionCallback": { + "post": { + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ApprovalDeletionCallback": { + "$ref": "./examples/EnclaveConnection_ApprovalDeletionCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListByResourceGroup", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListByResourceGroup": { + "$ref": "./examples/VirtualEnclave_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}": { + "get": { + "operationId": "VirtualEnclave_Get", + "tags": [ + "VirtualEnclave" + ], + "description": "Get a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Get": { + "$ref": "./examples/VirtualEnclave_Get.json" + } + } + }, + "put": { + "operationId": "VirtualEnclave_CreateOrUpdate", + "tags": [ + "VirtualEnclave" + ], + "description": "Create a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "201": { + "description": "Resource 'EnclaveResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_CreateOrUpdate": { + "$ref": "./examples/VirtualEnclave_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "VirtualEnclave_Update", + "tags": [ + "VirtualEnclave" + ], + "description": "Update a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualEnclavePatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Update": { + "$ref": "./examples/VirtualEnclave_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualEnclave_Delete", + "tags": [ + "VirtualEnclave" + ], + "description": "Delete a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Delete": { + "$ref": "./examples/VirtualEnclave_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListByEnclaveResource": { + "$ref": "./examples/EnclaveEndpoints_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}": { + "get": { + "operationId": "EnclaveEndpoints_Get", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Get a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Get": { + "$ref": "./examples/EnclaveEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Create a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "201": { + "description": "Resource 'EnclaveEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_CreateOrUpdate": { + "$ref": "./examples/EnclaveEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveEndpoints_Update", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Update a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Update": { + "$ref": "./examples/EnclaveEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveEndpoints_Delete", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Delete a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Delete": { + "$ref": "./examples/EnclaveEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListByEnclaveResource", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListByEnclaveResource": { + "$ref": "./examples/Workload_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads/{workloadName}": { + "get": { + "operationId": "Workload_Get", + "tags": [ + "Workload" + ], + "description": "Get a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Get": { + "$ref": "./examples/Workload_Get.json" + } + } + }, + "put": { + "operationId": "Workload_CreateOrUpdate", + "tags": [ + "Workload" + ], + "description": "Create a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'WorkloadResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "201": { + "description": "Resource 'WorkloadResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_CreateOrUpdate": { + "$ref": "./examples/Workload_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Workload_Update", + "tags": [ + "Workload" + ], + "description": "Update a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Update": { + "$ref": "./examples/Workload_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Workload_Delete", + "tags": [ + "Workload" + ], + "description": "Delete a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Delete": { + "$ref": "./examples/Workload_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ApprovalActionRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "approvalStatus" + ] + }, + "ApprovalActionResponse": { + "type": "object", + "description": "Response body after handling of approvalCallbackRequest", + "properties": { + "message": { + "type": "string", + "description": "Confirmation message indicating the result of the operation." + } + }, + "required": [ + "message" + ] + }, + "ApprovalCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Resource Id of the item being approved or rejected" + }, + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-callback post action", + "enum": [ + "Create", + "Delete", + "Update", + "Reset" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "resourceId", + "resourceRequestAction", + "approvalStatus" + ] + }, + "ApprovalDeletionCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-deletion-callback post action", + "enum": [ + "Create", + "Delete", + "Update" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "resourceRequestAction" + ] + }, + "ApprovalPatchModel": { + "type": "object", + "description": "Approvals patch model.", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalPatchProperties", + "description": "Approval Patch properties" + } + } + }, + "ApprovalPatchProperties": { + "type": "object", + "description": "Approvals patch properties.", + "properties": { + "parent1": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "parent2": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadataUpdatableProperties", + "description": "Request metadata for the approval request." + } + } + }, + "ApprovalProperties": { + "type": "object", + "description": "Approval Base model.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "parent1": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "parent2": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadata", + "description": "Request metadata for the approval request." + } + }, + "required": [ + "requestMetadata" + ] + }, + "ApprovalResource": { + "type": "object", + "description": "Approval Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ApprovalResourceListResult": { + "type": "object", + "description": "The response of a ApprovalResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The ApprovalResource items on this page", + "items": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ApprovalStatus": { + "type": "string", + "description": "Approval Status. It can be Approved, Rejected, Pending, Deleted or Expired.", + "enum": [ + "Approved", + "Rejected", + "Pending" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + } + ] + } + }, + "Azure.Core.azureLocation": { + "type": "string", + "description": "Represents an Azure geography region where supported resource providers live." + }, + "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "type": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentityType", + "description": "The type of managed identity assigned to this resource." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The identities assigned to this resource by the user.", + "additionalProperties": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentity", + "x-nullable": true + } + } + } + }, + "CheckAddressSpaceAvailabilityRequest": { + "type": "object", + "description": "Request to the action call to check address space availability.", + "properties": { + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Resource Id of the Community" + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Information about the enclave virtual network" + } + }, + "required": [ + "communityResourceId", + "enclaveVirtualNetwork" + ] + }, + "CheckAddressSpaceAvailabilityResponse": { + "type": "object", + "description": "Response of availability of the requested address space.", + "properties": { + "value": { + "type": "boolean", + "description": "Boolean representing whether the address space is available." + } + }, + "required": [ + "value" + ] + }, + "CommunityEndpointDestinationRule": { + "type": "object", + "description": "Base type for destination rules.", + "properties": { + "destinationType": { + "$ref": "#/definitions/DestinationType", + "description": "Destination Type." + }, + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/CommunityEndpointProtocol" + } + }, + "transitHubResourceId": { + "$ref": "#/definitions/TransitHubResourceId", + "description": "Transit Hub Resource Id." + }, + "name": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "port": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "CommunityEndpointPatchModel": { + "type": "object", + "description": "Community Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointPatchProperties", + "description": "Community Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "CommunityEndpointPatchProperties": { + "type": "object", + "description": "Community Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "approvalRequired": { + "type": "boolean", + "description": "Whether approval is needed for the connection (True or False)." + } + } + }, + "CommunityEndpointProperties": { + "type": "object", + "description": "Community Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "approvalRequired": { + "type": "boolean", + "description": "Whether approval is needed for the connection (True or False)." + } + }, + "required": [ + "ruleCollection" + ] + }, + "CommunityEndpointProtocol": { + "type": "string", + "description": "Community Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH", + "HTTPS", + "HTTP" + ], + "x-ms-enum": { + "name": "CommunityEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "CommunityEndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "CommunityEndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "CommunityEndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "CommunityEndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "CommunityEndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "CommunityEndpointProtocol Type AH" + }, + { + "name": "HTTPS", + "value": "HTTPS", + "description": "CommunityEndpointProtocol Type HTTPS" + }, + { + "name": "HTTP", + "value": "HTTP", + "description": "CommunityEndpointProtocol Type HTTP" + } + ] + } + }, + "CommunityEndpointResource": { + "type": "object", + "description": "CommunityEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityEndpointResourceListResult": { + "type": "object", + "description": "The response of a CommunityEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityEndpointResource items on this page", + "items": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CommunityPatchModel": { + "type": "object", + "description": "Community Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityPatchProperties", + "description": "Community Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + } + } + }, + "CommunityPatchProperties": { + "type": "object", + "description": "Community Resource Properties without default values", + "properties": { + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + } + } + }, + "CommunityProperties": { + "type": "object", + "description": "Community Resource Properties", + "properties": { + "addressSpace": { + "type": "string", + "description": "Address Space.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by communities.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "managedResourceGroupConfiguration": { + "$ref": "#/definitions/ManagedResourceGroupConfiguration", + "description": "Managed resource group name.", + "readOnly": true + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + } + } + }, + "CommunityResource": { + "type": "object", + "description": "Community Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities" + } + ] + } + }, + "CommunityResourceListResult": { + "type": "object", + "description": "The response of a CommunityResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityResource items on this page", + "items": { + "$ref": "#/definitions/CommunityResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DestinationEndpointResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves/enclaveEndpoints" + }, + { + "type": "Microsoft.Mission/communities/communityEndpoints" + } + ] + } + }, + "DestinationType": { + "type": "string", + "description": "Destination Type Enum", + "enum": [ + "FQDN", + "FQDNTag", + "IPAddress", + "PrivateNetwork" + ], + "x-ms-enum": { + "name": "DestinationType", + "modelAsString": true, + "values": [ + { + "name": "FQDN", + "value": "FQDN", + "description": "DestinationType Type FQDN" + }, + { + "name": "FQDNTag", + "value": "FQDNTag", + "description": "DestinationType Type FQDNTag" + }, + { + "name": "IPAddress", + "value": "IPAddress", + "description": "DestinationType Type IPAddress" + }, + { + "name": "PrivateNetwork", + "value": "PrivateNetwork", + "description": "DestinationType Type PrivateNetwork" + } + ] + } + }, + "DiagnosticDestination": { + "type": "string", + "description": "Specifies the destination of where to store diagnostic logs.", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + }, + "EnclaveAddressSpacesModel": { + "type": "object", + "description": "Enclave Address Spaces", + "properties": { + "enclaveAddressSpace": { + "type": "string", + "description": "Enclave Address Space" + }, + "managedAddressSpace": { + "type": "string", + "description": "Managed Address Space" + } + } + }, + "EnclaveConnectionPatchModel": { + "type": "object", + "description": "Enclave Connection Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionPatchProperties", + "description": "Enclave Connection Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveConnectionPatchProperties": { + "type": "object", + "description": "Enclave Connection patchable Properties", + "properties": { + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + } + } + }, + "EnclaveConnectionProperties": { + "type": "object", + "description": "Enclave Connection Resource properties", + "properties": { + "state": { + "$ref": "#/definitions/EnclaveConnectionState", + "description": "The state of the enclaveConnection.", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceResourceId": { + "$ref": "#/definitions/EnclaveConnectionSourceResourceId", + "description": "Source Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + }, + "ipGroup": { + "$ref": "#/definitions/IPGroupResourceId", + "description": "Source IP group Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "destinationEndpointId": { + "$ref": "#/definitions/DestinationEndpointResourceId", + "description": "Destination Endpoint Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by enclave Connections.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "communityResourceId", + "sourceResourceId", + "destinationEndpointId" + ] + }, + "EnclaveConnectionResource": { + "type": "object", + "description": "EnclaveConnection Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveConnectionResourceListResult": { + "type": "object", + "description": "The response of a EnclaveConnectionResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveConnectionResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveConnectionSourceResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves" + }, + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "EnclaveConnectionState": { + "type": "string", + "description": "Specifies the state of the enclave connection.", + "enum": [ + "PendingApproval", + "PendingUpdate", + "Approved", + "Active", + "Failed", + "Connected", + "Disconnected" + ], + "x-ms-enum": { + "name": "EnclaveConnectionState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "EnclaveConnectionState Type Pending Approval" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "EnclaveConnectionState Type Pending Update" + }, + { + "name": "Approved", + "value": "Approved", + "description": "EnclaveConnectionState Type Approved" + }, + { + "name": "Active", + "value": "Active", + "description": "EnclaveConnectionState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "EnclaveConnectionState Type Failed" + }, + { + "name": "Connected", + "value": "Connected", + "description": "EnclaveConnectionState Type Connected" + }, + { + "name": "Disconnected", + "value": "Disconnected", + "description": "EnclaveConnectionState Type Disconnected" + } + ] + } + }, + "EnclaveDefaultSettingsModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "keyVaultResourceId": { + "$ref": "#/definitions/KeyVaultResourceId", + "description": "Key Vault Resource Id.", + "readOnly": true + }, + "storageAccountResourceId": { + "$ref": "#/definitions/StorageAccountResourceId", + "description": "Storage Account Resource Id.", + "readOnly": true + }, + "logAnalyticsResourceIdCollection": { + "type": "array", + "description": "Log Analytics Resource Ids.", + "items": { + "$ref": "#/definitions/LogAnalyticsResourceId" + }, + "readOnly": true + }, + "diagnosticDestination": { + "type": "string", + "description": "Diagnostic Destination.", + "default": "EnclaveOnly", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + } + } + }, + "EnclaveDefaultSettingsPatchModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "diagnosticDestination": { + "$ref": "#/definitions/DiagnosticDestination", + "description": "Diagnostic Destination." + } + } + }, + "EnclaveEndpointDestinationRule": { + "type": "object", + "description": "Enclave Endpoint Rule Properties", + "properties": { + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/EnclaveEndpointProtocol" + } + }, + "name": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "port": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "EnclaveEndpointPatchModel": { + "type": "object", + "description": "Enclave Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointPatchProperties", + "description": "Enclave Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveEndpointPatchProperties": { + "type": "object", + "description": "Enclave Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "approvalRequired": { + "type": "boolean", + "description": "Whether approval is needed for the connection (True or False)." + } + } + }, + "EnclaveEndpointProperties": { + "type": "object", + "description": "Enclave Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "approvalRequired": { + "type": "boolean", + "description": "Whether approval is needed for the connection (True or False)." + } + }, + "required": [ + "ruleCollection" + ] + }, + "EnclaveEndpointProtocol": { + "type": "string", + "description": "Enclave Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH" + ], + "x-ms-enum": { + "name": "EnclaveEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "EndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "EndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "EndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "EndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "EndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "EndpointProtocol Type AH" + } + ] + } + }, + "EnclaveEndpointResource": { + "type": "object", + "description": "EnclaveEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveEndpointResourceListResult": { + "type": "object", + "description": "The response of a EnclaveEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveEndpointResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveResource": { + "type": "object", + "description": "Virtual Enclave Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclaveProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveResourceListResult": { + "type": "object", + "description": "The response of a EnclaveResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveVirtualNetworkModel": { + "type": "object", + "description": "Enclave Virtual Network Properties", + "properties": { + "name": { + "type": "string", + "description": "Network Name." + }, + "networkSize": { + "type": "string", + "description": "Network Size.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "customCidrRange": { + "type": "string", + "description": "Custom CIDR Range.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "subnetConfigurations": { + "type": "array", + "description": "Subnet Configurations.", + "items": { + "$ref": "#/definitions/SubnetConfiguration" + }, + "x-ms-identifiers": [] + }, + "allowSubnetCommunication": { + "type": "boolean", + "description": "Allow Subnet Communication.", + "default": false, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectToAzureServices": { + "type": "boolean", + "description": "Connect to Azure Services (True or False).", + "default": false, + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "GovernedServiceItem": { + "type": "object", + "description": "GovernedServiceItem Properties", + "properties": { + "id": { + "$ref": "#/definitions/ServiceIdentifier", + "description": "Service ID" + }, + "name": { + "type": "string", + "description": "Service name.", + "readOnly": true + }, + "option": { + "type": "string", + "description": "Governance option for this service (Allow, Deny, ExceptionOnly, or NotApplicable).", + "enum": [ + "Allow", + "Deny", + "ExceptionOnly", + "NotApplicable" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "enforcement": { + "type": "string", + "description": "Initiative enforcement (Enabled or Disabled).", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "auditOnly": { + "type": "boolean", + "description": "Policies set to auditOnly (True or False)." + }, + "initiatives": { + "type": "array", + "description": "Initiatives associated with this service.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "id" + ] + }, + "IPGroupResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/IpGroups" + } + ] + } + }, + "KeyVaultResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.KeyVault/vaults" + } + ] + } + }, + "LogAnalyticsResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.OperationalInsights/workspaces" + } + ] + } + }, + "MaintenanceModeConfigurationModel": { + "type": "object", + "description": "Maintenance Mode", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "default": "Off", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "default": [], + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "default": "Off", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "mode" + ] + }, + "MaintenanceModeConfigurationPatchModel": { + "type": "object", + "description": "Maintenance Mode Patch Model", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + } + }, + "ManagedResourceGroupConfiguration": { + "type": "object", + "description": "ManagedResourceGroup related properties", + "properties": { + "name": { + "type": "string", + "description": "Name of managed resource group" + }, + "location": { + "$ref": "#/definitions/Azure.Core.azureLocation", + "description": "The geo-location where the resource lives", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "NsgResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/networkSecurityGroups" + } + ] + } + }, + "Principal": { + "type": "object", + "description": "Principal for maintenance mode or role assignments", + "properties": { + "id": { + "type": "string", + "description": "The object id associated with the principal" + }, + "type": { + "type": "string", + "description": "The type of the object id. We currently allow users, groups, and service principals", + "enum": [ + "User", + "Group", + "ServicePrincipal" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "id", + "type" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning status of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Creating", + "Deleting", + "NotSpecified", + "Running", + "Updating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Provisioning State Type Accepted" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Provisioning State Type Creating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Provisioning State Type Deleting" + }, + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "Provisioning State Type NotSpecified" + }, + { + "name": "Running", + "value": "Running", + "description": "Provisioning State Type Running" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Provisioning State Type Updating" + } + ] + }, + "readOnly": true + }, + "RequestMetadata": { + "type": "object", + "description": "Request Metadata for approvals request.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalStatus": { + "type": "string", + "description": "Status of the approval. Uses ApprovalStatus enum.", + "default": "Pending", + "enum": [ + "Approved", + "Rejected", + "Pending" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + } + ] + } + } + }, + "required": [ + "resourceAction" + ] + }, + "RequestMetadataUpdatableProperties": { + "type": "object", + "description": "Request Metadata patch properties.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalStatus": { + "$ref": "#/definitions/ApprovalStatus", + "description": "Status of the approval. Uses ApprovalStatus enum." + } + } + }, + "ServiceIdentifier": { + "type": "string", + "description": "Identifier for governed services.", + "enum": [ + "AKS", + "AppService", + "AzureFirewalls", + "ContainerRegistry", + "CosmosDB", + "DataConnectors", + "Insights", + "KeyVault", + "Logic", + "MicrosoftSQL", + "Monitoring", + "PostgreSQL", + "PrivateDNSZones", + "ServiceBus", + "Storage" + ], + "x-ms-enum": { + "name": "ServiceIdentifier", + "modelAsString": true, + "values": [ + { + "name": "AKS", + "value": "AKS", + "description": "Service identifier for AKS" + }, + { + "name": "AppService", + "value": "AppService", + "description": "Service identifier for App Service" + }, + { + "name": "AzureFirewalls", + "value": "AzureFirewalls", + "description": "Service identifier for Azure Firewalls" + }, + { + "name": "ContainerRegistry", + "value": "ContainerRegistry", + "description": "Service identifier for Container Registry" + }, + { + "name": "CosmosDB", + "value": "CosmosDB", + "description": "Service identifier for CosmosDB" + }, + { + "name": "DataConnectors", + "value": "DataConnectors", + "description": "Service identifier for Data Connectors" + }, + { + "name": "Insights", + "value": "Insights", + "description": "Service identifier for Insights" + }, + { + "name": "KeyVault", + "value": "KeyVault", + "description": "Service identifier for Key Vault" + }, + { + "name": "Logic", + "value": "Logic", + "description": "Service identifier for Logic" + }, + { + "name": "MicrosoftSql", + "value": "MicrosoftSQL", + "description": "Service identifier for Microsoft SQL" + }, + { + "name": "Monitoring", + "value": "Monitoring", + "description": "Service identifier for Monitoring" + }, + { + "name": "PostgreSql", + "value": "PostgreSQL", + "description": "Service identifier for PostgreSQL" + }, + { + "name": "PrivateDNSZones", + "value": "PrivateDNSZones", + "description": "Service identifier for Private DNS Zones" + }, + { + "name": "ServiceBus", + "value": "ServiceBus", + "description": "Service identifier for Service Bus" + }, + { + "name": "Storage", + "value": "Storage", + "description": "Service identifier for Storage" + } + ] + } + }, + "StorageAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } + }, + "SubnetConfiguration": { + "type": "object", + "description": "Subnet Configuration", + "properties": { + "name": { + "type": "string", + "description": "Subnet name." + }, + "id": { + "$ref": "#/definitions/SubnetResourceId", + "description": "Subnet Resource ID.", + "readOnly": true + }, + "networkPrefixSize": { + "type": "integer", + "format": "int32", + "description": "Network prefix size." + }, + "subnetDelegation": { + "type": "string", + "description": "Subnet delegation." + }, + "addressPrefix": { + "type": "string", + "description": "Address prefix.", + "readOnly": true + }, + "networkSecurityGroupId": { + "$ref": "#/definitions/NsgResourceId", + "description": "Network security group ID.", + "readOnly": true + } + }, + "required": [ + "name", + "networkPrefixSize" + ] + }, + "SubnetResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } + }, + "TransitHubPatchModel": { + "type": "object", + "description": "TH Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubPatchProperties", + "description": "The TransitHub resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TransitHubPatchProperties": { + "type": "object", + "description": "Transit Hub patchable Properties", + "properties": { + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + } + } + }, + "TransitHubProperties": { + "type": "object", + "description": "Describes the properties of an Transit Hub.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by transitHubs.", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "TransitHubResource": { + "type": "object", + "description": "TransitHub Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "TransitHubResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "TransitHubResourceListResult": { + "type": "object", + "description": "The response of a TransitHubResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TransitHubResource items on this page", + "items": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TransitHubState": { + "type": "string", + "description": "Specifies the state of the transitHub.", + "enum": [ + "PendingApproval", + "Approved", + "PendingUpdate", + "Active", + "Failed" + ], + "x-ms-enum": { + "name": "TransitHubState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "TransitHubState Type PendingApproval" + }, + { + "name": "Approved", + "value": "Approved", + "description": "TransitHubState Type Approved" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "TransitHubState Type PendingUpdate" + }, + { + "name": "Active", + "value": "Active", + "description": "TransitHubState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "TransitHubState Type Failed" + } + ] + } + }, + "TransitOption": { + "type": "object", + "description": "TransitOption Properties", + "properties": { + "type": { + "$ref": "#/definitions/TransitOptionType", + "description": "Transit Option Type." + }, + "params": { + "$ref": "#/definitions/TransitOptionParams", + "description": "Transit Option Params" + } + } + }, + "TransitOptionParams": { + "type": "object", + "description": "TransitOptionParams Properties", + "properties": { + "scaleUnits": { + "type": "integer", + "format": "int64", + "description": "Transit Option Params scaleUnits." + }, + "remoteVirtualNetworkId": { + "$ref": "#/definitions/VirtualNetworkResourceId", + "description": "Transit Option Params remoteVirtualNetworkId." + } + } + }, + "TransitOptionType": { + "type": "string", + "description": "Specifies the type of the transitOption.", + "enum": [ + "ExpressRoute", + "Gateway", + "Peering" + ], + "x-ms-enum": { + "name": "TransitOptionType", + "modelAsString": true, + "values": [ + { + "name": "ExpressRoute", + "value": "ExpressRoute", + "description": "TransitOptionType ExpressRoute" + }, + { + "name": "Gateway", + "value": "Gateway", + "description": "TransitOptionType Gateway" + }, + { + "name": "Peering", + "value": "Peering", + "description": "TransitOptionType Peering" + } + ] + } + }, + "VirtualEnclavePatchModel": { + "type": "object", + "description": "Virtual Enclave Patch Model", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclavePatchProperties", + "description": "Virtual Enclave Patch properties" + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualEnclavePatchProperties": { + "type": "object", + "description": "Virtual Enclave Patchable Properties", + "properties": { + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False)." + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsPatchModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationPatchModel", + "description": "Maintenance Mode configuration." + } + } + }, + "VirtualEnclaveProperties": { + "type": "object", + "description": "Virtual Enclave Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "enclaveAddressSpaces": { + "$ref": "#/definitions/EnclaveAddressSpacesModel", + "description": "Enclave Address Spaces", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by Virtual Enclave.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "managedResourceGroupConfiguration": { + "$ref": "#/definitions/ManagedResourceGroupConfiguration", + "description": "Managed resource group name.", + "readOnly": true + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False).", + "default": false + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationModel", + "description": "Maintenance Mode configuration." + } + }, + "required": [ + "enclaveVirtualNetwork", + "communityResourceId" + ] + }, + "VirtualNetworkResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks" + } + ] + } + }, + "WorkloadPatchModel": { + "type": "object", + "description": "Workload Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadPatchProperties", + "description": "Workload Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "WorkloadPatchProperties": { + "type": "object", + "description": "Workload patchable Properties", + "properties": { + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + } + } + }, + "WorkloadProperties": { + "type": "object", + "description": "Workload Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + } + } + }, + "WorkloadResource": { + "type": "object", + "description": "Workload Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "WorkloadResourceListResult": { + "type": "object", + "description": "The response of a WorkloadResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The WorkloadResource items on this page", + "items": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..62f7acb39c6c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_CreateOrUpdate.json @@ -0,0 +1,108 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Delete.json new file mode 100644 index 000000000000..8d0b4841aab2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Get.json new file mode 100644 index 000000000000..3113f3601e33 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Get.json @@ -0,0 +1,49 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_InitiatorCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_InitiatorCallback.json new file mode 100644 index 000000000000..0ecaf5494bda --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_InitiatorCallback.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_InitiatorCallback", + "operationId": "Approval_InitiatorCallback", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_ListByParent.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_ListByParent.json new file mode 100644 index 000000000000..8d559f5776d8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_ListByParent.json @@ -0,0 +1,54 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Update.json new file mode 100644 index 000000000000..c9c7bded4b5c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Approvals_Update.json @@ -0,0 +1,75 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parent1": "string", + "parent2": "string", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ApprovalDeletionCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..fa398f9853ef --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_ApprovalDeletionCallback", + "title": "CommunityEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..20a98ce1c8f1 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..264bcf0175dc --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..bcc51c769d67 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..b827d5a8e169 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..73ec29456211 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_PostApprovalCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..c7c35fba91b5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_ApprovalCallback", + "title": "CommunityEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..b035aaceec9a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "port": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..f7c4d6f7aeb5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_CreateOrUpdate.json @@ -0,0 +1,612 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "approvalSettings": { + "endpointCreation": "NotRequired", + "endpointUpdate": "Required", + "endpointDeletion": "NotRequired", + "connectionCreation": "Required", + "connectionUpdate": "Required", + "connectionDeletion": "NotRequired", + "enclaveCreation": "NotRequired", + "enclaveDeletion": "NotRequired", + "maintenanceMode": "NotRequired", + "serviceCatalogDeployment": "NotRequired", + "notificationOnApprovalCreation": "NotRequired", + "notificationOnApprovalAction": "NotRequired", + "notificationOnApprovalDeletion": "NotRequired", + "mandatoryApprovers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000" + } + ], + "minimumApproversRequired": 0 + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Delete.json new file mode 100644 index 000000000000..c01710543bc8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Get.json new file mode 100644 index 000000000000..89216c841dc6 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Get.json @@ -0,0 +1,228 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..6bff3f7f7ee5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListByResourceGroup.json @@ -0,0 +1,232 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListBySubscription.json new file mode 100644 index 000000000000..3cbb49e39f8a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_ListBySubscription.json @@ -0,0 +1,231 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..1855637bff96 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,33 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + } + }, + "api-version": "2024-12-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Update.json new file mode 100644 index 000000000000..5a07ba852fe2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Community_Update.json @@ -0,0 +1,358 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "id": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + }, + { + "id": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "resCollection" + ], + "governedServiceList": [ + { + "id": "AKS", + "name": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "id": "AppService", + "name": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "id": "ContainerRegistry", + "name": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "id": "CosmosDB", + "name": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "id": "KeyVault", + "name": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "id": "MicrosoftSQL", + "name": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "id": "Monitoring", + "name": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "id": "PostgreSQL", + "name": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "id": "ServiceBus", + "name": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "id": "Storage", + "name": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "id": "AzureFirewalls", + "name": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Insights", + "name": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "Logic", + "name": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "PrivateDNSZones", + "name": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + }, + { + "id": "DataConnectors", + "name": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "auditOnly": false, + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..c858a8845ec0 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "title": "EnclaveConnection_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..87c36c9aac13 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..bab672f52509 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Get.json new file mode 100644 index 000000000000..203c445fb889 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..8604ecfca65d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..170e87db1f8e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_PostApprovalCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_PostApprovalCallback.json new file mode 100644 index 000000000000..2b60a2383061 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_ApprovalCallback", + "title": "EnclaveConnection_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Update.json new file mode 100644 index 000000000000..a58da002e704 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ApprovalDeletionCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ApprovalDeletionCallback.json new file mode 100644 index 000000000000..dd2a57fb4804 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ApprovalDeletionCallback.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalDeletionCallback", + "title": "EnclaveEndpoints_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..344891e840f3 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..3ed62f38ab8b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..7b2124dcc5f8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..f08df0b1416f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..cfbcc8ae3450 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_PostApprovalCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_PostApprovalCallback.json new file mode 100644 index 000000000000..c348942e7450 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_ApprovalCallback", + "title": "EnclaveEndpoints_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..40700272a17a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "name": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "port": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Operations_List.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..d494dc5ec820 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..51421c5cfb8e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Delete.json new file mode 100644 index 000000000000..d75b92834b1a --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Get.json new file mode 100644 index 000000000000..84166b8378e9 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..171f9b188efc --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..88b931594a3b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Update.json new file mode 100644 index 000000000000..7f7bdf093736 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "resCollection" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..0d35fabd2395 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,322 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..b5ab6ed0658c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Get.json new file mode 100644 index 000000000000..99f271b3ed7f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Get.json @@ -0,0 +1,129 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..14f20d08e578 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,133 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..7fb8d522a3d0 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,132 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalCallback.json new file mode 100644 index 000000000000..2237f8ffc0bc --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalCallback.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_ApprovalCallback", + "title": "VirtualEnclave_ApprovalCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalDeletionCallback.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalDeletionCallback.json new file mode 100644 index 000000000000..cfa29b89657f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_PostApprovalDeletionCallback.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_ApprovalDeletionCallback", + "title": "VirtualEnclave_ApprovalDeletionCallback", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Update.json new file mode 100644 index 000000000000..77752d7175ad --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/VirtualEnclave_Update.json @@ -0,0 +1,216 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "name": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true, + "connectToAzureServices": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "id": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "id": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "id": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "id": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..958d114c8332 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Delete.json new file mode 100644 index 000000000000..635ca18032d6 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Get.json new file mode 100644 index 000000000000..fad104de4185 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Get.json @@ -0,0 +1,38 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..56759b0e4fa2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListBySubscription.json new file mode 100644 index 000000000000..2329cd7c0d4c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Update.json new file mode 100644 index 000000000000..f78c95500f5e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/examples/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2024-12-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/openapi.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/openapi.json new file mode 100644 index 000000000000..c108d0f95f3d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2024-12-01-preview/openapi.json @@ -0,0 +1,6239 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Mission", + "version": "2024-12-01-preview", + "description": "Microsoft Mission Resource Provider management API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Workload" + }, + { + "name": "VirtualEnclave" + }, + { + "name": "Community" + }, + { + "name": "TransitHub" + }, + { + "name": "EnclaveConnection" + }, + { + "name": "EnclaveEndpoints" + }, + { + "name": "CommunityEndpoints" + }, + { + "name": "Approval" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.Mission/approvals": { + "get": { + "operationId": "Approval_ListByParent", + "tags": [ + "Approval" + ], + "description": "List ApprovalResource resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_ListByParent": { + "$ref": "./examples/Approvals_ListByParent.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}": { + "get": { + "operationId": "Approval_Get", + "tags": [ + "Approval" + ], + "description": "Get a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Get": { + "$ref": "./examples/Approvals_Get.json" + } + } + }, + "put": { + "operationId": "Approval_CreateOrUpdate", + "tags": [ + "Approval" + ], + "description": "Create a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ApprovalResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "201": { + "description": "Resource 'ApprovalResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_CreateOrUpdate": { + "$ref": "./examples/Approvals_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Approval_Update", + "tags": [ + "Approval" + ], + "description": "Update a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Update": { + "$ref": "./examples/Approvals_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Approval_Delete", + "tags": [ + "Approval" + ], + "description": "Delete a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Delete": { + "$ref": "./examples/Approvals_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}/initiatorCallback": { + "post": { + "operationId": "Approval_InitiatorCallback", + "tags": [ + "Approval" + ], + "description": "Upon receiving approval or rejection from approver, this facilitates actions on approval resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalActionRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_InitiatorCallback": { + "$ref": "./examples/Approvals_InitiatorCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Mission/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListBySubscription", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListBySubscription": { + "$ref": "./examples/Community_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListBySubscription", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListBySubscription": { + "$ref": "./examples/CommunityEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListBySubscription", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListBySubscription": { + "$ref": "./examples/TransitHub_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListBySubscription", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListBySubscription": { + "$ref": "./examples/EnclaveConnection_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListBySubscription", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListBySubscription": { + "$ref": "./examples/VirtualEnclave_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListBySubscription", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListBySubscription": { + "$ref": "./examples/EnclaveEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListBySubscription", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListBySubscription": { + "$ref": "./examples/Workload_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListByResourceGroup", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListByResourceGroup": { + "$ref": "./examples/Community_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}": { + "get": { + "operationId": "Community_Get", + "tags": [ + "Community" + ], + "description": "Get a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Get": { + "$ref": "./examples/Community_Get.json" + } + } + }, + "put": { + "operationId": "Community_CreateOrUpdate", + "tags": [ + "Community" + ], + "description": "Create a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "201": { + "description": "Resource 'CommunityResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CreateOrUpdate": { + "$ref": "./examples/Community_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Community_Update", + "tags": [ + "Community" + ], + "description": "Update a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Update": { + "$ref": "./examples/Community_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Community_Delete", + "tags": [ + "Community" + ], + "description": "Delete a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Delete": { + "$ref": "./examples/Community_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/checkAddressSpaceAvailability": { + "post": { + "operationId": "Community_CheckAddressSpaceAvailability", + "tags": [ + "Community" + ], + "description": "Checks that the IP Address Space to be allocated for this Community is available.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "checkAddressSpaceAvailabilityRequest", + "in": "body", + "description": "Check IP Address Space request body.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CheckAddressSpaceAvailability": { + "$ref": "./examples/Community_PostCheckAddressSpaceAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListByCommunityResource", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListByCommunityResource": { + "$ref": "./examples/CommunityEndpoints_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}": { + "get": { + "operationId": "CommunityEndpoints_Get", + "tags": [ + "CommunityEndpoints" + ], + "description": "Get a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Get": { + "$ref": "./examples/CommunityEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "CommunityEndpoints_CreateOrUpdate", + "tags": [ + "CommunityEndpoints" + ], + "description": "Create a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "201": { + "description": "Resource 'CommunityEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_CreateOrUpdate": { + "$ref": "./examples/CommunityEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "CommunityEndpoints_Update", + "tags": [ + "CommunityEndpoints" + ], + "description": "Update a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Update": { + "$ref": "./examples/CommunityEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "CommunityEndpoints_Delete", + "tags": [ + "CommunityEndpoints" + ], + "description": "Delete a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Delete": { + "$ref": "./examples/CommunityEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}/approvalCallback": { + "post": { + "operationId": "CommunityEndpoints_ApprovalCallback", + "tags": [ + "CommunityEndpoints" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ApprovalCallback": { + "$ref": "./examples/CommunityEndpoints_PostApprovalCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}/approvalDeletionCallback": { + "post": { + "operationId": "CommunityEndpoints_ApprovalDeletionCallback", + "tags": [ + "CommunityEndpoints" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ApprovalDeletionCallback": { + "$ref": "./examples/CommunityEndpoints_ApprovalDeletionCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListByCommunityResource", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListByCommunityResource": { + "$ref": "./examples/TransitHub_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs/{transitHubName}": { + "get": { + "operationId": "TransitHub_Get", + "tags": [ + "TransitHub" + ], + "description": "Get a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Get": { + "$ref": "./examples/TransitHub_Get.json" + } + } + }, + "put": { + "operationId": "TransitHub_CreateOrUpdate", + "tags": [ + "TransitHub" + ], + "description": "Create a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TransitHubResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "201": { + "description": "Resource 'TransitHubResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_CreateOrUpdate": { + "$ref": "./examples/TransitHub_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "TransitHub_Update", + "tags": [ + "TransitHub" + ], + "description": "Update a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Update": { + "$ref": "./examples/TransitHub_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TransitHub_Delete", + "tags": [ + "TransitHub" + ], + "description": "Delete a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Delete": { + "$ref": "./examples/TransitHub_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListByResourceGroup", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListByResourceGroup": { + "$ref": "./examples/EnclaveConnection_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}": { + "get": { + "operationId": "EnclaveConnection_Get", + "tags": [ + "EnclaveConnection" + ], + "description": "Get a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Get": { + "$ref": "./examples/EnclaveConnection_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveConnection_CreateOrUpdate", + "tags": [ + "EnclaveConnection" + ], + "description": "Create a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveConnectionResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "201": { + "description": "Resource 'EnclaveConnectionResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_CreateOrUpdate": { + "$ref": "./examples/EnclaveConnection_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveConnection_Update", + "tags": [ + "EnclaveConnection" + ], + "description": "Update a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Update": { + "$ref": "./examples/EnclaveConnection_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveConnection_Delete", + "tags": [ + "EnclaveConnection" + ], + "description": "Delete a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Delete": { + "$ref": "./examples/EnclaveConnection_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/approvalCallback": { + "post": { + "operationId": "EnclaveConnection_ApprovalCallback", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ApprovalCallback": { + "$ref": "./examples/EnclaveConnection_PostApprovalCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/approvalDeletionCallback": { + "post": { + "operationId": "EnclaveConnection_ApprovalDeletionCallback", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ApprovalDeletionCallback": { + "$ref": "./examples/EnclaveConnection_ApprovalDeletionCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListByResourceGroup", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListByResourceGroup": { + "$ref": "./examples/VirtualEnclave_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}": { + "get": { + "operationId": "VirtualEnclave_Get", + "tags": [ + "VirtualEnclave" + ], + "description": "Get a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Get": { + "$ref": "./examples/VirtualEnclave_Get.json" + } + } + }, + "put": { + "operationId": "VirtualEnclave_CreateOrUpdate", + "tags": [ + "VirtualEnclave" + ], + "description": "Create a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "201": { + "description": "Resource 'EnclaveResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_CreateOrUpdate": { + "$ref": "./examples/VirtualEnclave_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "VirtualEnclave_Update", + "tags": [ + "VirtualEnclave" + ], + "description": "Update a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualEnclavePatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Update": { + "$ref": "./examples/VirtualEnclave_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualEnclave_Delete", + "tags": [ + "VirtualEnclave" + ], + "description": "Delete a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Delete": { + "$ref": "./examples/VirtualEnclave_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/approvalCallback": { + "post": { + "operationId": "VirtualEnclave_ApprovalCallback", + "tags": [ + "VirtualEnclave" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ApprovalCallback": { + "$ref": "./examples/VirtualEnclave_PostApprovalCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/approvalDeletionCallback": { + "post": { + "operationId": "VirtualEnclave_ApprovalDeletionCallback", + "tags": [ + "VirtualEnclave" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ApprovalDeletionCallback": { + "$ref": "./examples/VirtualEnclave_PostApprovalDeletionCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListByEnclaveResource": { + "$ref": "./examples/EnclaveEndpoints_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}": { + "get": { + "operationId": "EnclaveEndpoints_Get", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Get a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Get": { + "$ref": "./examples/EnclaveEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Create a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "201": { + "description": "Resource 'EnclaveEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_CreateOrUpdate": { + "$ref": "./examples/EnclaveEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveEndpoints_Update", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Update a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Update": { + "$ref": "./examples/EnclaveEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveEndpoints_Delete", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Delete a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Delete": { + "$ref": "./examples/EnclaveEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}/approvalCallback": { + "post": { + "operationId": "EnclaveEndpoints_ApprovalCallback", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ApprovalCallback": { + "$ref": "./examples/EnclaveEndpoints_PostApprovalCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}/approvalDeletionCallback": { + "post": { + "operationId": "EnclaveEndpoints_ApprovalDeletionCallback", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ApprovalDeletionCallback": { + "$ref": "./examples/EnclaveEndpoints_ApprovalDeletionCallback.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListByEnclaveResource", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListByEnclaveResource": { + "$ref": "./examples/Workload_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads/{workloadName}": { + "get": { + "operationId": "Workload_Get", + "tags": [ + "Workload" + ], + "description": "Get a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Get": { + "$ref": "./examples/Workload_Get.json" + } + } + }, + "put": { + "operationId": "Workload_CreateOrUpdate", + "tags": [ + "Workload" + ], + "description": "Create a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'WorkloadResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "201": { + "description": "Resource 'WorkloadResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_CreateOrUpdate": { + "$ref": "./examples/Workload_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Workload_Update", + "tags": [ + "Workload" + ], + "description": "Update a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Update": { + "$ref": "./examples/Workload_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Workload_Delete", + "tags": [ + "Workload" + ], + "description": "Delete a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Delete": { + "$ref": "./examples/Workload_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ActionPerformed": { + "type": "string", + "description": "Specifies the action performed by the approver", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "ActionPerformed", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "Action was Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "Action was Rejected" + } + ] + } + }, + "ApprovalActionRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "approvalStatus" + ] + }, + "ApprovalActionResponse": { + "type": "object", + "description": "Response body after handling of approvalCallbackRequest", + "properties": { + "message": { + "type": "string", + "description": "Confirmation message indicating the result of the operation." + } + }, + "required": [ + "message" + ] + }, + "ApprovalCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-callback post action", + "enum": [ + "Create", + "Delete", + "Update", + "Reset" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload requested by client upon approval action" + } + }, + "required": [ + "resourceRequestAction", + "approvalStatus" + ] + }, + "ApprovalDeletionCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-deletion-callback post action", + "enum": [ + "Create", + "Delete", + "Update" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "resourceRequestAction" + ] + }, + "ApprovalPatchModel": { + "type": "object", + "description": "Approvals patch model.", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalPatchProperties", + "description": "Approval Patch properties" + } + } + }, + "ApprovalPatchProperties": { + "type": "object", + "description": "Approvals patch properties.", + "properties": { + "parent1": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "parent2": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "approvers": { + "type": "array", + "description": "List of approvers for the approval request", + "items": { + "$ref": "#/definitions/Approver" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "ticketId": { + "type": "string", + "description": "Ticket ID for the approval request" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Approval request creation time" + }, + "stateChangedAt": { + "type": "string", + "format": "date-time", + "description": "Approval request state change time, time at which approval request state changed from pending to approved or rejected." + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadataUpdatableProperties", + "description": "Request metadata for the approval request." + } + } + }, + "ApprovalPolicy": { + "type": "string", + "description": "Approval Policy.", + "enum": [ + "Required", + "NotRequired" + ], + "x-ms-enum": { + "name": "ApprovalPolicy", + "modelAsString": true, + "values": [ + { + "name": "Required", + "value": "Required", + "description": "Approval will be required for the specified action." + }, + { + "name": "NotRequired", + "value": "NotRequired", + "description": "Approval will not be required for the specified action." + } + ] + } + }, + "ApprovalProperties": { + "type": "object", + "description": "Approval Base model.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "parent1": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "parent2": { + "type": "string", + "description": "Parameter for optimizing query results" + }, + "approvers": { + "type": "array", + "description": "List of approvers for the approval request", + "items": { + "$ref": "#/definitions/Approver" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "ticketId": { + "type": "string", + "description": "Ticket ID for the approval request" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Approval request creation time" + }, + "stateChangedAt": { + "type": "string", + "format": "date-time", + "description": "Approval request state change time, time at which approval request state changed from pending to approved or rejected." + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadata", + "description": "Request metadata for the approval request." + } + }, + "required": [ + "requestMetadata" + ] + }, + "ApprovalResource": { + "type": "object", + "description": "Approval Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ApprovalResourceListResult": { + "type": "object", + "description": "The response of a ApprovalResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The ApprovalResource items on this page", + "items": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ApprovalSettings": { + "type": "object", + "description": "ApprovalSettings Properties", + "properties": { + "endpointCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "endpointUpdate": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint update (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "endpointDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionUpdate": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection update (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "enclaveCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for virtual enclave creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "enclaveDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for virtual enclave deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "maintenanceMode": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for toggling maintenance mode (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "serviceCatalogDeployment": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for deploying service catalog templates (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on creation of an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalAction": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on any action taken (Approve/Reject) on an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on deletion of an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "mandatoryApprovers": { + "type": "array", + "description": "List of mandatory approvers for the approval request", + "items": { + "$ref": "#/definitions/MandatoryApprover" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "minimumApproversRequired": { + "type": "integer", + "format": "int64", + "description": "Minimum number of approvers required for the approval request", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "ApprovalSettingsPatchProperties": { + "type": "object", + "description": "ApprovalSettings Properties", + "properties": { + "mandatoryApprovers": { + "type": "array", + "description": "List of mandatory approvers for the approval request", + "items": { + "$ref": "#/definitions/MandatoryApprover" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + } + } + }, + "ApprovalStatus": { + "type": "string", + "description": "Approval Status. It can be Approved, Rejected, Pending, Deleted or Expired.", + "enum": [ + "Approved", + "Rejected", + "Pending", + "Deleted", + "Expired" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "ApprovalStatus Type Deleted" + }, + { + "name": "Expired", + "value": "Expired", + "description": "ApprovalStatus Type Expired" + } + ] + } + }, + "Approver": { + "type": "object", + "description": "Approver Metadata for approvals request.", + "properties": { + "approverEntraId": { + "type": "string", + "description": "Entra ObjectID of the approver" + }, + "actionPerformed": { + "$ref": "#/definitions/ActionPerformed", + "description": "Action Performed by approver" + }, + "lastUpdatedAt": { + "type": "string", + "format": "date-time", + "description": "approval request last updated at" + } + }, + "required": [ + "approverEntraId", + "lastUpdatedAt" + ] + }, + "Azure.Core.azureLocation": { + "type": "string", + "description": "Represents an Azure geography region where supported resource providers live." + }, + "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "type": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentityType", + "description": "The type of managed identity assigned to this resource." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The identities assigned to this resource by the user.", + "additionalProperties": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentity", + "x-nullable": true + } + } + } + }, + "CheckAddressSpaceAvailabilityRequest": { + "type": "object", + "description": "Request to the action call to check address space availability.", + "properties": { + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Resource Id of the Community" + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Information about the enclave virtual network" + } + }, + "required": [ + "communityResourceId", + "enclaveVirtualNetwork" + ] + }, + "CheckAddressSpaceAvailabilityResponse": { + "type": "object", + "description": "Response of availability of the requested address space.", + "properties": { + "value": { + "type": "boolean", + "description": "Boolean representing whether the address space is available." + } + }, + "required": [ + "value" + ] + }, + "CommunityEndpointDestinationRule": { + "type": "object", + "description": "Base type for destination rules.", + "properties": { + "destinationType": { + "$ref": "#/definitions/DestinationType", + "description": "Destination Type." + }, + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/CommunityEndpointProtocol" + } + }, + "transitHubResourceId": { + "$ref": "#/definitions/TransitHubResourceId", + "description": "Transit Hub Resource Id." + }, + "name": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "port": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "CommunityEndpointPatchModel": { + "type": "object", + "description": "Community Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointPatchProperties", + "description": "Community Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "CommunityEndpointPatchProperties": { + "type": "object", + "description": "Community Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + } + } + }, + "CommunityEndpointProperties": { + "type": "object", + "description": "Community Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + } + }, + "required": [ + "ruleCollection" + ] + }, + "CommunityEndpointProtocol": { + "type": "string", + "description": "Community Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH", + "HTTPS", + "HTTP" + ], + "x-ms-enum": { + "name": "CommunityEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "CommunityEndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "CommunityEndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "CommunityEndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "CommunityEndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "CommunityEndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "CommunityEndpointProtocol Type AH" + }, + { + "name": "HTTPS", + "value": "HTTPS", + "description": "CommunityEndpointProtocol Type HTTPS" + }, + { + "name": "HTTP", + "value": "HTTP", + "description": "CommunityEndpointProtocol Type HTTP" + } + ] + } + }, + "CommunityEndpointResource": { + "type": "object", + "description": "CommunityEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityEndpointResourceListResult": { + "type": "object", + "description": "The response of a CommunityEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityEndpointResource items on this page", + "items": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CommunityPatchModel": { + "type": "object", + "description": "Community Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityPatchProperties", + "description": "Community Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + } + } + }, + "CommunityPatchProperties": { + "type": "object", + "description": "Community Resource Properties without default values", + "properties": { + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "communityRoleAssignments": { + "type": "array", + "description": "Community role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "approvalSettings": { + "$ref": "#/definitions/ApprovalSettingsPatchProperties", + "description": "Approval requirements for various actions on the community's resources." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationPatchModel", + "description": "Maintenance Mode configuration." + } + } + }, + "CommunityProperties": { + "type": "object", + "description": "Community Resource Properties", + "properties": { + "addressSpace": { + "type": "string", + "description": "Address Space.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by communities.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "managedResourceGroupConfiguration": { + "$ref": "#/definitions/ManagedResourceGroupConfiguration", + "description": "Managed resource group name.", + "readOnly": true + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "communityRoleAssignments": { + "type": "array", + "description": "Community role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "approvalSettings": { + "$ref": "#/definitions/ApprovalSettings", + "description": "Approval requirements for various actions on the community's resources." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationModel", + "description": "Maintenance Mode configuration." + } + } + }, + "CommunityResource": { + "type": "object", + "description": "Community Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities" + } + ] + } + }, + "CommunityResourceListResult": { + "type": "object", + "description": "The response of a CommunityResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityResource items on this page", + "items": { + "$ref": "#/definitions/CommunityResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DestinationEndpointResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves/enclaveEndpoints" + }, + { + "type": "Microsoft.Mission/communities/communityEndpoints" + } + ] + } + }, + "DestinationType": { + "type": "string", + "description": "Destination Type Enum", + "enum": [ + "FQDN", + "FQDNTag", + "IPAddress", + "PrivateNetwork" + ], + "x-ms-enum": { + "name": "DestinationType", + "modelAsString": true, + "values": [ + { + "name": "FQDN", + "value": "FQDN", + "description": "DestinationType Type FQDN" + }, + { + "name": "FQDNTag", + "value": "FQDNTag", + "description": "DestinationType Type FQDNTag" + }, + { + "name": "IPAddress", + "value": "IPAddress", + "description": "DestinationType Type IPAddress" + }, + { + "name": "PrivateNetwork", + "value": "PrivateNetwork", + "description": "DestinationType Type PrivateNetwork" + } + ] + } + }, + "DiagnosticDestination": { + "type": "string", + "description": "Specifies the destination of where to store diagnostic logs.", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + }, + "EnclaveAddressSpacesModel": { + "type": "object", + "description": "Enclave Address Spaces", + "properties": { + "enclaveAddressSpace": { + "type": "string", + "description": "Enclave Address Space" + }, + "managedAddressSpace": { + "type": "string", + "description": "Managed Address Space" + } + } + }, + "EnclaveConnectionPatchModel": { + "type": "object", + "description": "Enclave Connection Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionPatchProperties", + "description": "Enclave Connection Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveConnectionPatchProperties": { + "type": "object", + "description": "Enclave Connection patchable Properties", + "properties": { + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + } + } + }, + "EnclaveConnectionProperties": { + "type": "object", + "description": "Enclave Connection Resource properties", + "properties": { + "state": { + "$ref": "#/definitions/EnclaveConnectionState", + "description": "The state of the enclaveConnection.", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceResourceId": { + "$ref": "#/definitions/EnclaveConnectionSourceResourceId", + "description": "Source Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + }, + "ipGroup": { + "$ref": "#/definitions/IPGroupResourceId", + "description": "Source IP group Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "destinationEndpointId": { + "$ref": "#/definitions/DestinationEndpointResourceId", + "description": "Destination Endpoint Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by enclave Connections.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "communityResourceId", + "sourceResourceId", + "destinationEndpointId" + ] + }, + "EnclaveConnectionResource": { + "type": "object", + "description": "EnclaveConnection Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveConnectionResourceListResult": { + "type": "object", + "description": "The response of a EnclaveConnectionResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveConnectionResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveConnectionSourceResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves" + }, + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "EnclaveConnectionState": { + "type": "string", + "description": "Specifies the state of the enclave connection.", + "enum": [ + "PendingApproval", + "PendingUpdate", + "Approved", + "Active", + "Failed", + "Connected", + "Disconnected" + ], + "x-ms-enum": { + "name": "EnclaveConnectionState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "EnclaveConnectionState Type Pending Approval" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "EnclaveConnectionState Type Pending Update" + }, + { + "name": "Approved", + "value": "Approved", + "description": "EnclaveConnectionState Type Approved" + }, + { + "name": "Active", + "value": "Active", + "description": "EnclaveConnectionState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "EnclaveConnectionState Type Failed" + }, + { + "name": "Connected", + "value": "Connected", + "description": "EnclaveConnectionState Type Connected" + }, + { + "name": "Disconnected", + "value": "Disconnected", + "description": "EnclaveConnectionState Type Disconnected" + } + ] + } + }, + "EnclaveDefaultSettingsModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "keyVaultResourceId": { + "$ref": "#/definitions/KeyVaultResourceId", + "description": "Key Vault Resource Id.", + "readOnly": true + }, + "storageAccountResourceId": { + "$ref": "#/definitions/StorageAccountResourceId", + "description": "Storage Account Resource Id.", + "readOnly": true + }, + "logAnalyticsResourceIdCollection": { + "type": "array", + "description": "Log Analytics Resource Ids.", + "items": { + "$ref": "#/definitions/LogAnalyticsResourceId" + }, + "readOnly": true + }, + "diagnosticDestination": { + "type": "string", + "description": "Diagnostic Destination.", + "default": "EnclaveOnly", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + } + } + }, + "EnclaveDefaultSettingsPatchModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "diagnosticDestination": { + "$ref": "#/definitions/DiagnosticDestination", + "description": "Diagnostic Destination." + } + } + }, + "EnclaveEndpointDestinationRule": { + "type": "object", + "description": "Enclave Endpoint Rule Properties", + "properties": { + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/EnclaveEndpointProtocol" + } + }, + "name": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "port": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "EnclaveEndpointPatchModel": { + "type": "object", + "description": "Enclave Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointPatchProperties", + "description": "Enclave Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveEndpointPatchProperties": { + "type": "object", + "description": "Enclave Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + } + } + }, + "EnclaveEndpointProperties": { + "type": "object", + "description": "Enclave Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + } + }, + "required": [ + "ruleCollection" + ] + }, + "EnclaveEndpointProtocol": { + "type": "string", + "description": "Enclave Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH" + ], + "x-ms-enum": { + "name": "EnclaveEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "EndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "EndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "EndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "EndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "EndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "EndpointProtocol Type AH" + } + ] + } + }, + "EnclaveEndpointResource": { + "type": "object", + "description": "EnclaveEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveEndpointResourceListResult": { + "type": "object", + "description": "The response of a EnclaveEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveEndpointResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveResource": { + "type": "object", + "description": "Virtual Enclave Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclaveProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveResourceListResult": { + "type": "object", + "description": "The response of a EnclaveResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveVirtualNetworkModel": { + "type": "object", + "description": "Enclave Virtual Network Properties", + "properties": { + "name": { + "type": "string", + "description": "Network Name." + }, + "networkSize": { + "type": "string", + "description": "Network Size.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "customCidrRange": { + "type": "string", + "description": "Custom CIDR Range.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "subnetConfigurations": { + "type": "array", + "description": "Subnet Configurations.", + "items": { + "$ref": "#/definitions/SubnetConfiguration" + }, + "x-ms-identifiers": [] + }, + "allowSubnetCommunication": { + "type": "boolean", + "description": "Allow Subnet Communication.", + "default": false, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectToAzureServices": { + "type": "boolean", + "description": "Connect to Azure Services (True or False).", + "default": false, + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "GovernedServiceItem": { + "type": "object", + "description": "GovernedServiceItem Properties", + "properties": { + "id": { + "$ref": "#/definitions/ServiceIdentifier", + "description": "Service ID" + }, + "name": { + "type": "string", + "description": "Service name.", + "readOnly": true + }, + "option": { + "type": "string", + "description": "Governance option for this service (Allow, Deny, ExceptionOnly, or NotApplicable).", + "enum": [ + "Allow", + "Deny", + "ExceptionOnly", + "NotApplicable" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "enforcement": { + "type": "string", + "description": "Initiative enforcement (Enabled or Disabled).", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "auditOnly": { + "type": "boolean", + "description": "Policies set to auditOnly (True or False)." + }, + "initiatives": { + "type": "array", + "description": "Initiatives associated with this service.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "id" + ] + }, + "IPGroupResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/IpGroups" + } + ] + } + }, + "KeyVaultResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.KeyVault/vaults" + } + ] + } + }, + "LogAnalyticsResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.OperationalInsights/workspaces" + } + ] + } + }, + "MaintenanceModeConfigurationModel": { + "type": "object", + "description": "Maintenance Mode", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "default": "Off", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "default": [], + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "default": "Off", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "mode" + ] + }, + "MaintenanceModeConfigurationPatchModel": { + "type": "object", + "description": "Maintenance Mode Patch Model", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + } + }, + "ManagedResourceGroupConfiguration": { + "type": "object", + "description": "ManagedResourceGroup related properties", + "properties": { + "name": { + "type": "string", + "description": "Name of managed resource group" + }, + "location": { + "$ref": "#/definitions/Azure.Core.azureLocation", + "description": "The geo-location where the resource lives", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "MandatoryApprover": { + "type": "object", + "description": "Approver Metadata for approvals request.", + "properties": { + "approverEntraId": { + "type": "string", + "description": "EntraId of the approver" + } + }, + "required": [ + "approverEntraId" + ] + }, + "NsgResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/networkSecurityGroups" + } + ] + } + }, + "Principal": { + "type": "object", + "description": "Principal for maintenance mode or role assignments", + "properties": { + "id": { + "type": "string", + "description": "The object id associated with the principal" + }, + "type": { + "type": "string", + "description": "The type of the object id. We currently allow users, groups, and service principals", + "enum": [ + "User", + "Group", + "ServicePrincipal" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "id", + "type" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning status of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Creating", + "Deleting", + "NotSpecified", + "Running", + "Updating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Provisioning State Type Accepted" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Provisioning State Type Creating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Provisioning State Type Deleting" + }, + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "Provisioning State Type NotSpecified" + }, + { + "name": "Running", + "value": "Running", + "description": "Provisioning State Type Running" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Provisioning State Type Updating" + } + ] + }, + "readOnly": true + }, + "RequestMetadata": { + "type": "object", + "description": "Request Metadata for approvals request.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalCallbackRoute": { + "type": "string", + "description": "Route name for the approval callback" + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload to be sent upon any action on approval request" + }, + "approvalStatus": { + "type": "string", + "description": "Status of the approval. Uses ApprovalStatus enum.", + "default": "Pending", + "enum": [ + "Approved", + "Rejected", + "Pending", + "Deleted", + "Expired" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "ApprovalStatus Type Deleted" + }, + { + "name": "Expired", + "value": "Expired", + "description": "ApprovalStatus Type Expired" + } + ] + } + } + }, + "required": [ + "resourceAction" + ] + }, + "RequestMetadataUpdatableProperties": { + "type": "object", + "description": "Request Metadata patch properties.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalCallbackRoute": { + "type": "string", + "description": "Route name for the approval callback" + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload to be sent upon any action on approval request" + }, + "approvalStatus": { + "$ref": "#/definitions/ApprovalStatus", + "description": "Status of the approval. Uses ApprovalStatus enum." + } + } + }, + "RoleAssignmentItem": { + "type": "object", + "description": "Role assignment item that indicates which principals should be assigned this role definition", + "properties": { + "id": { + "type": "string", + "description": "Role definition identifier" + }, + "principals": { + "type": "array", + "description": "List of principal IDs to which to assign this role definition", + "items": { + "$ref": "#/definitions/Principal" + } + } + }, + "required": [ + "id" + ] + }, + "ServiceIdentifier": { + "type": "string", + "description": "Identifier for governed services.", + "enum": [ + "AKS", + "AppService", + "AzureFirewalls", + "ContainerRegistry", + "CosmosDB", + "DataConnectors", + "Insights", + "KeyVault", + "Logic", + "MicrosoftSQL", + "Monitoring", + "PostgreSQL", + "PrivateDNSZones", + "ServiceBus", + "Storage" + ], + "x-ms-enum": { + "name": "ServiceIdentifier", + "modelAsString": true, + "values": [ + { + "name": "AKS", + "value": "AKS", + "description": "Service identifier for AKS" + }, + { + "name": "AppService", + "value": "AppService", + "description": "Service identifier for App Service" + }, + { + "name": "AzureFirewalls", + "value": "AzureFirewalls", + "description": "Service identifier for Azure Firewalls" + }, + { + "name": "ContainerRegistry", + "value": "ContainerRegistry", + "description": "Service identifier for Container Registry" + }, + { + "name": "CosmosDB", + "value": "CosmosDB", + "description": "Service identifier for CosmosDB" + }, + { + "name": "DataConnectors", + "value": "DataConnectors", + "description": "Service identifier for Data Connectors" + }, + { + "name": "Insights", + "value": "Insights", + "description": "Service identifier for Insights" + }, + { + "name": "KeyVault", + "value": "KeyVault", + "description": "Service identifier for Key Vault" + }, + { + "name": "Logic", + "value": "Logic", + "description": "Service identifier for Logic" + }, + { + "name": "MicrosoftSql", + "value": "MicrosoftSQL", + "description": "Service identifier for Microsoft SQL" + }, + { + "name": "Monitoring", + "value": "Monitoring", + "description": "Service identifier for Monitoring" + }, + { + "name": "PostgreSql", + "value": "PostgreSQL", + "description": "Service identifier for PostgreSQL" + }, + { + "name": "PrivateDNSZones", + "value": "PrivateDNSZones", + "description": "Service identifier for Private DNS Zones" + }, + { + "name": "ServiceBus", + "value": "ServiceBus", + "description": "Service identifier for Service Bus" + }, + { + "name": "Storage", + "value": "Storage", + "description": "Service identifier for Storage" + } + ] + } + }, + "StorageAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } + }, + "SubnetConfiguration": { + "type": "object", + "description": "Subnet Configuration", + "properties": { + "name": { + "type": "string", + "description": "Subnet name." + }, + "id": { + "$ref": "#/definitions/SubnetResourceId", + "description": "Subnet Resource ID.", + "readOnly": true + }, + "networkPrefixSize": { + "type": "integer", + "format": "int32", + "description": "Network prefix size." + }, + "subnetDelegation": { + "type": "string", + "description": "Subnet delegation." + }, + "addressPrefix": { + "type": "string", + "description": "Address prefix.", + "readOnly": true + }, + "networkSecurityGroupId": { + "$ref": "#/definitions/NsgResourceId", + "description": "Network security group ID.", + "readOnly": true + } + }, + "required": [ + "name", + "networkPrefixSize" + ] + }, + "SubnetResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } + }, + "TransitHubPatchModel": { + "type": "object", + "description": "TH Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubPatchProperties", + "description": "The TransitHub resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TransitHubPatchProperties": { + "type": "object", + "description": "Transit Hub patchable Properties", + "properties": { + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + } + } + }, + "TransitHubProperties": { + "type": "object", + "description": "Describes the properties of an Transit Hub.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by transitHubs.", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "TransitHubResource": { + "type": "object", + "description": "TransitHub Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "TransitHubResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "TransitHubResourceListResult": { + "type": "object", + "description": "The response of a TransitHubResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TransitHubResource items on this page", + "items": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TransitHubState": { + "type": "string", + "description": "Specifies the state of the transitHub.", + "enum": [ + "PendingApproval", + "Approved", + "PendingUpdate", + "Active", + "Failed" + ], + "x-ms-enum": { + "name": "TransitHubState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "TransitHubState Type PendingApproval" + }, + { + "name": "Approved", + "value": "Approved", + "description": "TransitHubState Type Approved" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "TransitHubState Type PendingUpdate" + }, + { + "name": "Active", + "value": "Active", + "description": "TransitHubState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "TransitHubState Type Failed" + } + ] + } + }, + "TransitOption": { + "type": "object", + "description": "TransitOption Properties", + "properties": { + "type": { + "$ref": "#/definitions/TransitOptionType", + "description": "Transit Option Type." + }, + "params": { + "$ref": "#/definitions/TransitOptionParams", + "description": "Transit Option Params" + } + } + }, + "TransitOptionParams": { + "type": "object", + "description": "TransitOptionParams Properties", + "properties": { + "scaleUnits": { + "type": "integer", + "format": "int64", + "description": "Transit Option Params scaleUnits." + }, + "remoteVirtualNetworkId": { + "$ref": "#/definitions/VirtualNetworkResourceId", + "description": "Transit Option Params remoteVirtualNetworkId." + } + } + }, + "TransitOptionType": { + "type": "string", + "description": "Specifies the type of the transitOption.", + "enum": [ + "ExpressRoute", + "Gateway", + "Peering" + ], + "x-ms-enum": { + "name": "TransitOptionType", + "modelAsString": true, + "values": [ + { + "name": "ExpressRoute", + "value": "ExpressRoute", + "description": "TransitOptionType ExpressRoute" + }, + { + "name": "Gateway", + "value": "Gateway", + "description": "TransitOptionType Gateway" + }, + { + "name": "Peering", + "value": "Peering", + "description": "TransitOptionType Peering" + } + ] + } + }, + "VirtualEnclavePatchModel": { + "type": "object", + "description": "Virtual Enclave Patch Model", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclavePatchProperties", + "description": "Virtual Enclave Patch properties" + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualEnclavePatchProperties": { + "type": "object", + "description": "Virtual Enclave Patchable Properties", + "properties": { + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False)." + }, + "enclaveRoleAssignments": { + "type": "array", + "description": "Enclave role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "workloadRoleAssignments": { + "type": "array", + "description": "Workload role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsPatchModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationPatchModel", + "description": "Maintenance Mode configuration." + } + } + }, + "VirtualEnclaveProperties": { + "type": "object", + "description": "Virtual Enclave Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "enclaveAddressSpaces": { + "$ref": "#/definitions/EnclaveAddressSpacesModel", + "description": "Enclave Address Spaces", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by Virtual Enclave.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "managedResourceGroupConfiguration": { + "$ref": "#/definitions/ManagedResourceGroupConfiguration", + "description": "Managed resource group name.", + "readOnly": true + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False).", + "default": false + }, + "enclaveRoleAssignments": { + "type": "array", + "description": "Enclave role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "workloadRoleAssignments": { + "type": "array", + "description": "Workload role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationModel", + "description": "Maintenance Mode configuration." + } + }, + "required": [ + "enclaveVirtualNetwork", + "communityResourceId" + ] + }, + "VirtualNetworkResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks" + } + ] + } + }, + "WorkloadPatchModel": { + "type": "object", + "description": "Workload Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadPatchProperties", + "description": "Workload Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "WorkloadPatchProperties": { + "type": "object", + "description": "Workload patchable Properties", + "properties": { + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + } + } + }, + "WorkloadProperties": { + "type": "object", + "description": "Workload Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + } + } + }, + "WorkloadResource": { + "type": "object", + "description": "Workload Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "WorkloadResourceListResult": { + "type": "object", + "description": "The response of a WorkloadResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The WorkloadResource items on this page", + "items": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_CreateOrUpdate.json new file mode 100644 index 000000000000..1702fbcb86c0 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_CreateOrUpdate.json @@ -0,0 +1,108 @@ +{ + "title": "Approval_CreateOrUpdate", + "operationId": "Approval_CreateOrUpdate", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "resource": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Delete.json new file mode 100644 index 000000000000..a9c7932ab133 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Approval_Delete", + "operationId": "Approval_Delete", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Get.json new file mode 100644 index 000000000000..7671d4fcaf26 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Get.json @@ -0,0 +1,49 @@ +{ + "title": "Approval_Get", + "operationId": "Approval_Get", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_ListByParent.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_ListByParent.json new file mode 100644 index 000000000000..3731127bccf8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_ListByParent.json @@ -0,0 +1,54 @@ +{ + "title": "Approval_ListByParent", + "operationId": "Approval_ListByParent", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_NotifyInitiator.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_NotifyInitiator.json new file mode 100644 index 000000000000..d3d36460b706 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_NotifyInitiator.json @@ -0,0 +1,28 @@ +{ + "title": "Approval_NotifyInitiator", + "operationId": "Approval_NotifyInitiator", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "body": { + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approved" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Update.json new file mode 100644 index 000000000000..f8e351bad5aa --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Approvals_Update.json @@ -0,0 +1,75 @@ +{ + "title": "Approval_Update", + "operationId": "Approval_Update", + "parameters": { + "resourceUri": "subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "approvalName": "TestApprovals", + "properties": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "parentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "grandparentResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "requestMetadata": { + "resourceAction": "string", + "approvalStatus": "Approved", + "approvalCallbackRoute": "approvalCallback", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + }, + "approvers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000", + "actionPerformed": "Approved", + "lastUpdatedAt": "2023-03-17T20:43:17.760Z" + } + ], + "ticketId": "string", + "createdAt": "2023-03-17T20:43:17.760Z", + "stateChangedAt": "2023-03-17T20:43:17.760Z" + }, + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/approvals/TestApprovals", + "name": "TestApprovals", + "type": "Microsoft.Mission/approvals", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..f23136d9b04c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_CreateOrUpdate.json @@ -0,0 +1,101 @@ +{ + "title": "CommunityEndpoints_CreateOrUpdate", + "operationId": "CommunityEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communties/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDNTag", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Delete.json new file mode 100644 index 000000000000..9ac8f8bc2efa --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "CommunityEndpoints_Delete", + "operationId": "CommunityEndpoints_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Get.json new file mode 100644 index 000000000000..4b83dff5f614 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Get.json @@ -0,0 +1,46 @@ +{ + "title": "CommunityEndpoints_Get", + "operationId": "CommunityEndpoints_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalCreation.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalCreation.json new file mode 100644 index 000000000000..155a47cf5b19 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "CommunityEndpoints_HandleApprovalCreation", + "title": "CommunityEndpoints_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalDeletion.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalDeletion.json new file mode 100644 index 000000000000..375a5696ee50 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_HandleApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "CommunityEndpoints_HandleApprovalDeletion", + "title": "CommunityEndpoints_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json new file mode 100644 index 000000000000..51dc1eb1fc53 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListByCommunityResource.json @@ -0,0 +1,51 @@ +{ + "title": "CommunityEndpoints_ListByCommunityResource", + "operationId": "CommunityEndpoints_ListByCommunityResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..0749671de2ae --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_ListBySubscription.json @@ -0,0 +1,50 @@ +{ + "title": "CommunityEndpoints_ListBySubscription", + "operationId": "CommunityEndpoints_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Update.json new file mode 100644 index 000000000000..32b15252d104 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/CommunityEndpoints_Update.json @@ -0,0 +1,70 @@ +{ + "title": "CommunityEndpoints_Update", + "operationId": "CommunityEndpoints_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "communityEndpointName": "TestMyCommunityEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "destinationType": "FQDN", + "destination": "foo.example.com", + "ports": "443", + "protocols": [ + "TCP" + ], + "transitHubResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName" + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity/communityendpoints/TestMyCommunityEndpoint", + "name": "TestMyCommunityEndpoint", + "type": "Microsoft.Mission/communities/communityendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_CreateOrUpdate.json new file mode 100644 index 000000000000..3ea457166f98 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_CreateOrUpdate.json @@ -0,0 +1,613 @@ +{ + "title": "Community_CreateOrUpdate", + "operationId": "Community_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "approvalSettings": { + "endpointCreation": "NotRequired", + "endpointUpdate": "Required", + "endpointDeletion": "NotRequired", + "connectionCreation": "Required", + "connectionUpdate": "Required", + "connectionDeletion": "NotRequired", + "enclaveCreation": "NotRequired", + "enclaveDeletion": "NotRequired", + "maintenanceMode": "NotRequired", + "serviceCatalogDeployment": "NotRequired", + "notificationOnApprovalCreation": "NotRequired", + "notificationOnApprovalAction": "NotRequired", + "notificationOnApprovalDeletion": "NotRequired", + "mandatoryApprovers": [ + { + "approverEntraId": "00000000-0000-0000-0000-000000000000" + } + ], + "minimumApproversRequired": 0 + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + } + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Delete.json new file mode 100644 index 000000000000..e13386220130 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "Community_Delete", + "operationId": "Community_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Get.json new file mode 100644 index 000000000000..8516f1251435 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Get.json @@ -0,0 +1,236 @@ +{ + "title": "Community_Get", + "operationId": "Community_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListByResourceGroup.json new file mode 100644 index 000000000000..d347bda7c5b6 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListByResourceGroup.json @@ -0,0 +1,233 @@ +{ + "title": "Community_ListByResourceGroup", + "operationId": "Community_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListBySubscription.json new file mode 100644 index 000000000000..029b19a271b4 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_ListBySubscription.json @@ -0,0 +1,232 @@ +{ + "title": "Community_ListBySubscription", + "operationId": "Community_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "firewallSku": "Standard" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json new file mode 100644 index 000000000000..631ad19dc6d5 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_PostCheckAddressSpaceAvailability.json @@ -0,0 +1,32 @@ +{ + "operationId": "Community_CheckAddressSpaceAvailability", + "title": "Community_CheckAddressSpaceAvailability", + "parameters": { + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "checkAddressSpaceAvailabilityRequest": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/communities/TestMyCommunity", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + } + }, + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "value": true + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Update.json new file mode 100644 index 000000000000..d3dc1f69d98b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Community_Update.json @@ -0,0 +1,358 @@ +{ + "title": "Community_Update", + "operationId": "Community_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "dnsServers": [ + "azure.net" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AppService", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ContainerRegistry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "KeyVault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "MicrosoftSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "ServiceBus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "AzureFirewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "PrivateDNSZones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + }, + { + "serviceId": "DataConnectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None" + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "addressSpace": "10.0.0.0/24", + "dnsServers": [ + "azure.net" + ], + "provisioningState": "Succeeded", + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "governedServiceList": [ + { + "serviceId": "AKS", + "serviceName": "AKS", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "d300338e-65d1-4be3-b18e-fb4ce5715a8f" + ] + }, + { + "serviceId": "AppService", + "serviceName": "App Service", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "528d78c5-246c-4f26-ade6-d30798705411" + ] + }, + { + "serviceId": "ContainerRegistry", + "serviceName": "Container Registry", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "b3fe25eb-cdc6-475f-96a5-04ac270f630d" + ] + }, + { + "serviceId": "CosmosDB", + "serviceName": "CosmosDB", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "6bd484ca-ae8d-46cf-9b33-e1feef84bfba" + ] + }, + { + "serviceId": "KeyVault", + "serviceName": "Key Vault", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "4f4dba0f-a5ee-494b-8df7-f9727dea6f37" + ] + }, + { + "serviceId": "MicrosoftSQL", + "serviceName": "Microsoft SQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0fbe78a5-1722-4f1b-83a5-89c14151fa60" + ] + }, + { + "serviceId": "Monitoring", + "serviceName": "Monitoring", + "option": "Not Applicable", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "0a9ea1cb-7925-47fc-b0fe-8bb0a8190423" + ] + }, + { + "serviceId": "PostgreSQL", + "serviceName": "PostgreSQL", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "5eaa16b4-81f2-4354-aef3-2d77288e396e" + ] + }, + { + "serviceId": "ServiceBus", + "serviceName": "Service Bus", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "8fcdb3f1-1369-426d-9917-81edfee903ab" + ] + }, + { + "serviceId": "Storage", + "serviceName": "Storage", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [ + "ca122c06-05f6-4423-9018-ccb523168eb2" + ] + }, + { + "serviceId": "AzureFirewalls", + "serviceName": "Azure Firewalls", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Insights", + "serviceName": "Insights", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "Logic", + "serviceName": "Logic", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "PrivateDNSZones", + "serviceName": "Private DNS Zones", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + }, + { + "serviceId": "DataConnectors", + "serviceName": "Data Connectors", + "option": "Allow", + "enforcement": "Enabled", + "policyAction": "None", + "initiatives": [] + } + ], + "communityRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "name": "TestMyCommunity", + "type": "Microsoft.Mission/communities", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..412be8b1325c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_CreateOrUpdate.json @@ -0,0 +1,79 @@ +{ + "title": "EnclaveConnection_CreateOrUpdate", + "operationId": "EnclaveConnection_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "resource": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Delete.json new file mode 100644 index 000000000000..5a5016453bd3 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "EnclaveConnection_Delete", + "operationId": "EnclaveConnection_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Get.json new file mode 100644 index 000000000000..a74c4d9dbd25 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Get.json @@ -0,0 +1,38 @@ +{ + "title": "EnclaveConnection_Get", + "operationId": "EnclaveConnection_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalCreation.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalCreation.json new file mode 100644 index 000000000000..999f24d0bbab --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveConnection_HandleApprovalCreation", + "title": "EnclaveConnection_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalDeletion.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalDeletion.json new file mode 100644 index 000000000000..e35266d7164e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_HandleApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "EnclaveConnection_HandleApprovalDeletion", + "title": "EnclaveConnection_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListByResourceGroup.json new file mode 100644 index 000000000000..95b5e5871696 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "title": "EnclaveConnection_ListByResourceGroup", + "operationId": "EnclaveConnection_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListBySubscription.json new file mode 100644 index 000000000000..8c13c3e5dde0 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "title": "EnclaveConnection_ListBySubscription", + "operationId": "EnclaveConnection_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "enclaveConnectionName": "TestMyEnclaveConnection" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Update.json new file mode 100644 index 000000000000..2b57864d6245 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveConnection_Update.json @@ -0,0 +1,52 @@ +{ + "title": "EnclaveConnection_Update", + "operationId": "EnclaveConnection_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "enclaveConnectionName": "TestMyEnclaveConnection", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "sourceCidr": "10.0.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity", + "sourceResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "sourceCidr": "10.0.0.0/24", + "destinationEndpointId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/enclaveconnections/TestMyEnclaveConnection", + "name": "TestMyEnclaveConnection", + "type": "Microsoft.Mission/enclaveconnections", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json new file mode 100644 index 000000000000..4e149d60df2b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_CreateOrUpdate.json @@ -0,0 +1,98 @@ +{ + "title": "EnclaveEndpoints_CreateOrUpdate", + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "resource": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ] + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Delete.json new file mode 100644 index 000000000000..377e34864838 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "EnclaveEndpoints_Delete", + "operationId": "EnclaveEndpoints_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Get.json new file mode 100644 index 000000000000..5145968a4a03 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Get.json @@ -0,0 +1,45 @@ +{ + "title": "EnclaveEndpoints_Get", + "operationId": "EnclaveEndpoints_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint" + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalCreation.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalCreation.json new file mode 100644 index 000000000000..28b0bde02d9d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "EnclaveEndpoints_HandleApprovalCreation", + "title": "EnclaveEndpoints_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalDeletion.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalDeletion.json new file mode 100644 index 000000000000..91e93563ca47 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_HandleApprovalDeletion.json @@ -0,0 +1,28 @@ +{ + "operationId": "EnclaveEndpoints_HandleApprovalDeletion", + "title": "EnclaveEndpoints_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json new file mode 100644 index 000000000000..b87b85c3241f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListByEnclaveResource.json @@ -0,0 +1,49 @@ +{ + "title": "EnclaveEndpoints_ListByEnclaveResource", + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListBySubscription.json new file mode 100644 index 000000000000..1e21c255c11f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "EnclaveEndpoints_ListBySubscription", + "operationId": "EnclaveEndpoints_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Update.json new file mode 100644 index 000000000000..00af3b9261d1 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/EnclaveEndpoints_Update.json @@ -0,0 +1,68 @@ +{ + "title": "EnclaveEndpoints_Update", + "operationId": "EnclaveEndpoints_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "73CEECEF-2C30-488E-946F-D20F414D99BA", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "enclaveEndpointName": "TestMyEnclaveEndpoint", + "location": "westcentralus", + "properties": { + "tags": { + "sampletag": "samplevalue" + }, + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ruleCollection": [ + { + "endpointRuleName": "54CEECEF-2C30-488E-946F-D20F414D99BA", + "destination": "10.0.0.0/24", + "ports": "443", + "protocols": [ + "TCP" + ] + } + ], + "provisioningState": "Succeeded" + }, + "tags": { + "sampletag": "samplevalue" + }, + "location": "West US", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Mission/virtualenclaves/TestMyEnclave/enclaveendpoints/TestMyEnclaveEndpoint", + "name": "TestMyEnclaveEndpoint", + "type": "Microsoft.Mission/virtualenclaves/enclaveendpoints", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Operations_List.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..c393ee7b2148 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kribdpoznbvrjci", + "isDataAction": true, + "display": { + "provider": "usvnnruysydqdpwj", + "resource": "lrdjzltcbeoljosqrw", + "operation": "vdnitexr", + "description": "valid description goes here" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_CreateOrUpdate.json new file mode 100644 index 000000000000..0cf707c42dff --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "TransitHub_CreateOrUpdate", + "operationId": "TransitHub_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "resource": { + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "zwwdhidevngwzo", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Delete.json new file mode 100644 index 000000000000..c341fc33825b --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "TransitHub_Delete", + "operationId": "TransitHub_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Get.json new file mode 100644 index 000000000000..6ef54f041dc8 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Get.json @@ -0,0 +1,45 @@ +{ + "title": "TransitHub_Get", + "operationId": "TransitHub_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListByCommunityResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListByCommunityResource.json new file mode 100644 index 000000000000..f32c8c97ef9c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListByCommunityResource.json @@ -0,0 +1,49 @@ +{ + "title": "TransitHub_ListByCommunityResource", + "operationId": "TransitHub_ListByCommunityResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithub", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListBySubscription.json new file mode 100644 index 000000000000..ab6b7cb7d621 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_ListBySubscription.json @@ -0,0 +1,48 @@ +{ + "title": "TransitHub_ListBySubscription", + "operationId": "TransitHub_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "communityName": "TestMyCommunity" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Update.json new file mode 100644 index 000000000000..f4ae5d09155d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/TransitHub_Update.json @@ -0,0 +1,65 @@ +{ + "title": "TransitHub_Update", + "operationId": "TransitHub_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "communityName": "TestMyCommunity", + "transitHubName": "TestThName", + "location": "westcentralus", + "properties": { + "tags": { + "key4278": "hjoxhwofxcshowbnafdrrzq" + }, + "properties": { + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "state": "PendingApproval", + "transitOption": { + "type": "ExpressRoute", + "params": { + "scaleUnits": 1 + } + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/testrg/providers/Microsoft.Mission/communities/TestMyCommunity/transitHubs/TestThName", + "name": "TestThName", + "type": "microsoft.mission/communities/transithubs", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_CreateOrUpdate.json new file mode 100644 index 000000000000..1e90860e1a5e --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_CreateOrUpdate.json @@ -0,0 +1,319 @@ +{ + "title": "VirtualEnclave_CreateOrUpdate", + "operationId": "VirtualEnclave_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "resource": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Delete.json new file mode 100644 index 000000000000..e42f4937e9e9 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Delete.json @@ -0,0 +1,24 @@ +{ + "title": "VirtualEnclave_Delete", + "operationId": "VirtualEnclave_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Get.json new file mode 100644 index 000000000000..a92b51d65224 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Get.json @@ -0,0 +1,135 @@ +{ + "title": "VirtualEnclave_Get", + "operationId": "VirtualEnclave_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalCreation.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalCreation.json new file mode 100644 index 000000000000..a6c2b68c3e93 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalCreation.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualEnclave_HandleApprovalCreation", + "title": "VirtualEnclave_HandleApprovalCreation", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create", + "approvalStatus": "Approved", + "approvalCallbackPayload": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalDeletion.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalDeletion.json new file mode 100644 index 000000000000..00339b028b6f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_HandleApprovalDeletion.json @@ -0,0 +1,27 @@ +{ + "operationId": "VirtualEnclave_HandleApprovalDeletion", + "title": "VirtualEnclave_HandleApprovalDeletion", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "body": { + "resourceRequestAction": "Create" + } + }, + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "body": { + "message": "Approval state change handled successfully." + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListByResourceGroup.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListByResourceGroup.json new file mode 100644 index 000000000000..0dd4e5d4668d --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListByResourceGroup.json @@ -0,0 +1,132 @@ +{ + "title": "VirtualEnclave_ListByResourceGroup", + "operationId": "VirtualEnclave_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListBySubscription.json new file mode 100644 index 000000000000..5f87a97bc6bd --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_ListBySubscription.json @@ -0,0 +1,131 @@ +{ + "title": "VirtualEnclave_ListBySubscription", + "operationId": "VirtualEnclave_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "subnetResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "networkPrefixSize": 26, + "addressPrefix": "10.0.0.0/26", + "networkSecurityGroupResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "subnetDelegation": null + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Update.json new file mode 100644 index 000000000000..46b15bbf5498 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/VirtualEnclave_Update.json @@ -0,0 +1,214 @@ +{ + "title": "VirtualEnclave_Update", + "operationId": "VirtualEnclave_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "location": "westcentralus", + "properties": { + "tags": { + "Tag1": "Value1" + }, + "properties": { + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "enclaveDefaultSettings": { + "diagnosticDestination": "Both" + }, + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "f4aa4954-a564-4933-a7e1-502019d807c2", + "clientId": "b82bf757-ee7f-4632-9df1-5e52a720fdd2" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "enclaveVirtualNetwork": { + "networkSize": "small", + "customCidrRange": "10.0.0.0/24", + "subnetConfigurations": [ + { + "subnetName": "test", + "networkPrefixSize": 26 + } + ], + "allowSubnetCommunication": true + }, + "communityResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/communities/TestMyCommunity", + "enclaveDefaultSettings": { + "keyVaultResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.KeyVault/vaults/TestMyKeyVault1", + "storageAccountResourceId": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Storage/storageAccounts/TestMyStorageAccount", + "logAnalyticsResourceIdCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA1", + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.OperationalInsights/workspaces/TestMyLogA2" + ], + "diagnosticDestination": "Both" + }, + "resourceCollection": [ + "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg" + ], + "maintenanceModeConfiguration": { + "mode": "Off", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ], + "justification": "Off" + }, + "bastionEnabled": true, + "enclaveRoleAssignments": [ + { + "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + }, + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c0", + "type": "User" + } + ] + }, + { + "roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9", + "principals": [ + { + "id": "355a6bb0-abc0-4cba-000d-12a345b678c9", + "type": "User" + } + ] + } + ], + "workloadRoleAssignments": [ + { + "roleDefinitionId": "d73bb868-a0df-4d4d-bd69-98a00b01fccb", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + }, + { + "roleDefinitionId": "fb879df8-f326-4884-b1cf-06f3ad86be52", + "principals": [ + { + "id": "01234567-89ab-ef01-2345-0123456789ab", + "type": "Group" + } + ] + } + ] + }, + "tags": { + "Tag1": "Value1" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave", + "name": "TestMyEnclave", + "type": "microsoft.mission/virtualenclaves", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_CreateOrUpdate.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_CreateOrUpdate.json new file mode 100644 index 000000000000..6f0ac2af23e6 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "title": "Workload_CreateOrUpdate", + "operationId": "Workload_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "resource": { + "properties": { + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Delete.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Delete.json new file mode 100644 index 000000000000..dc54a34b75e2 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Delete.json @@ -0,0 +1,25 @@ +{ + "title": "Workload_Delete", + "operationId": "Workload_Delete", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Server": "nginx/1.21.6", + "Date": "Sat, 03 Dec 2022 01:39:21 GMT", + "Content-Length": "0", + "Connection": "keep-alive", + "x-ms-providerhub-traffic": "True", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Get.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Get.json new file mode 100644 index 000000000000..00425fbfb254 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Get.json @@ -0,0 +1,45 @@ +{ + "title": "Workload_Get", + "operationId": "Workload_Get", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ], + "managedOnBehalfOfConfiguration": { + "moboBrokerResources": [ + { + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/Microsoft.Resources/moboBrokers/bnthrkwfkfeorrzvtdxbfz" + } + ] + } + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListByEnclaveResource.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListByEnclaveResource.json new file mode 100644 index 000000000000..5dc42879932f --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListByEnclaveResource.json @@ -0,0 +1,42 @@ +{ + "title": "Workload_ListByEnclaveResource", + "operationId": "Workload_ListByEnclaveResource", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListBySubscription.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListBySubscription.json new file mode 100644 index 000000000000..c477c14af071 --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_ListBySubscription.json @@ -0,0 +1,41 @@ +{ + "title": "Workload_ListBySubscription", + "operationId": "Workload_ListBySubscription", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "virtualEnclaveName": "TestMyEnclave" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Update.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Update.json new file mode 100644 index 000000000000..22e96a7e53dc --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/examples/Workload_Update.json @@ -0,0 +1,54 @@ +{ + "title": "Workload_Update", + "operationId": "Workload_Update", + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "CA1CB369-DD26-4DB2-9D43-9AFEF0F22093", + "resourceGroupName": "rgopenapi", + "virtualEnclaveName": "TestMyEnclave", + "workloadName": "TestMyWorkload", + "location": "westcentralus", + "properties": { + "tags": { + "key9465": "cylmdprdhhwpcdxpynwostvzytkryj" + }, + "properties": { + "resourceGroupCollection": [ + "g" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "resourceGroupCollection": [ + "g" + ] + }, + "tags": { + "TestKey": "TestValue" + }, + "location": "westcentralus", + "id": "/subscriptions/c64f6eca-bdc5-4bc2-88d6-f8f1dc23f86c/resourceGroups/TestMyRg/providers/microsoft.mission/virtualenclaves/TestMyEnclave/workloads/kxzylwqnmxtivpmupnlho", + "name": "kxzylwqnmxtivpmupnlho", + "type": "microsoft.mission/virtualenclaves/workloads", + "systemData": { + "createdBy": "myAlias", + "createdByType": "User", + "createdAt": "2023-03-17T20:43:17.760Z", + "lastModifiedBy": "myAlias", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-17T20:43:17.760Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/openapi.json b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/openapi.json new file mode 100644 index 000000000000..1d3bc30aa01c --- /dev/null +++ b/specification/mission/resource-manager/Microsoft.Mission/preview/2025-05-01-preview/openapi.json @@ -0,0 +1,6328 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Mission", + "version": "2025-05-01-preview", + "description": "Microsoft Mission Resource Provider management API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Workload" + }, + { + "name": "VirtualEnclave" + }, + { + "name": "Community" + }, + { + "name": "TransitHub" + }, + { + "name": "EnclaveConnection" + }, + { + "name": "EnclaveEndpoints" + }, + { + "name": "CommunityEndpoints" + }, + { + "name": "Approval" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.Mission/approvals": { + "get": { + "operationId": "Approval_ListByParent", + "tags": [ + "Approval" + ], + "description": "List ApprovalResource resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_ListByParent": { + "$ref": "./examples/Approvals_ListByParent.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}": { + "get": { + "operationId": "Approval_Get", + "tags": [ + "Approval" + ], + "description": "Get a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Get": { + "$ref": "./examples/Approvals_Get.json" + } + } + }, + "put": { + "operationId": "Approval_CreateOrUpdate", + "tags": [ + "Approval" + ], + "description": "Create a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ApprovalResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "201": { + "description": "Resource 'ApprovalResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/ApprovalResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_CreateOrUpdate": { + "$ref": "./examples/Approvals_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Approval_Update", + "tags": [ + "Approval" + ], + "description": "Update a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Update": { + "$ref": "./examples/Approvals_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Approval_Delete", + "tags": [ + "Approval" + ], + "description": "Delete a ApprovalResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_Delete": { + "$ref": "./examples/Approvals_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}/notifyInitiator": { + "post": { + "operationId": "Approval_NotifyInitiator", + "tags": [ + "Approval" + ], + "description": "Upon receiving approval or rejection from approver, this facilitates actions on approval resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "approvalName", + "in": "path", + "description": "The name of the approvals resource.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalActionRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Approval_NotifyInitiator": { + "$ref": "./examples/Approvals_NotifyInitiator.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Mission/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListBySubscription", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListBySubscription": { + "$ref": "./examples/Community_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListBySubscription", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListBySubscription": { + "$ref": "./examples/CommunityEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListBySubscription", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListBySubscription": { + "$ref": "./examples/TransitHub_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListBySubscription", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListBySubscription": { + "$ref": "./examples/EnclaveConnection_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListBySubscription", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListBySubscription": { + "$ref": "./examples/VirtualEnclave_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListBySubscription", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListBySubscription": { + "$ref": "./examples/EnclaveEndpoints_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListBySubscription", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListBySubscription": { + "$ref": "./examples/Workload_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities": { + "get": { + "operationId": "Community_ListByResourceGroup", + "tags": [ + "Community" + ], + "description": "List CommunityResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_ListByResourceGroup": { + "$ref": "./examples/Community_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}": { + "get": { + "operationId": "Community_Get", + "tags": [ + "Community" + ], + "description": "Get a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Get": { + "$ref": "./examples/Community_Get.json" + } + } + }, + "put": { + "operationId": "Community_CreateOrUpdate", + "tags": [ + "Community" + ], + "description": "Create a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "201": { + "description": "Resource 'CommunityResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CreateOrUpdate": { + "$ref": "./examples/Community_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Community_Update", + "tags": [ + "Community" + ], + "description": "Update a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Update": { + "$ref": "./examples/Community_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Community_Delete", + "tags": [ + "Community" + ], + "description": "Delete a CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_Delete": { + "$ref": "./examples/Community_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/checkAddressSpaceAvailability": { + "post": { + "operationId": "Community_CheckAddressSpaceAvailability", + "tags": [ + "Community" + ], + "description": "Checks that the IP Address Space to be allocated for this Community is available.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "checkAddressSpaceAvailabilityRequest", + "in": "body", + "description": "Check IP Address Space request body.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CheckAddressSpaceAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Community_CheckAddressSpaceAvailability": { + "$ref": "./examples/Community_PostCheckAddressSpaceAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints": { + "get": { + "operationId": "CommunityEndpoints_ListByCommunityResource", + "tags": [ + "CommunityEndpoints" + ], + "description": "List CommunityEndpointResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_ListByCommunityResource": { + "$ref": "./examples/CommunityEndpoints_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}": { + "get": { + "operationId": "CommunityEndpoints_Get", + "tags": [ + "CommunityEndpoints" + ], + "description": "Get a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Get": { + "$ref": "./examples/CommunityEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "CommunityEndpoints_CreateOrUpdate", + "tags": [ + "CommunityEndpoints" + ], + "description": "Create a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CommunityEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "201": { + "description": "Resource 'CommunityEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_CreateOrUpdate": { + "$ref": "./examples/CommunityEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "CommunityEndpoints_Update", + "tags": [ + "CommunityEndpoints" + ], + "description": "Update a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/CommunityEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Update": { + "$ref": "./examples/CommunityEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "CommunityEndpoints_Delete", + "tags": [ + "CommunityEndpoints" + ], + "description": "Delete a CommunityEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_Delete": { + "$ref": "./examples/CommunityEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}/handleApprovalCreation": { + "post": { + "operationId": "CommunityEndpoints_HandleApprovalCreation", + "tags": [ + "CommunityEndpoints" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_HandleApprovalCreation": { + "$ref": "./examples/CommunityEndpoints_HandleApprovalCreation.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/communityEndpoints/{communityEndpointName}/handleApprovalDeletion": { + "post": { + "operationId": "CommunityEndpoints_HandleApprovalDeletion", + "tags": [ + "CommunityEndpoints" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "communityEndpointName", + "in": "path", + "description": "The name of the Community Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CommunityEndpoints_HandleApprovalDeletion": { + "$ref": "./examples/CommunityEndpoints_HandleApprovalDeletion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs": { + "get": { + "operationId": "TransitHub_ListByCommunityResource", + "tags": [ + "TransitHub" + ], + "description": "List TransitHubResource resources by CommunityResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_ListByCommunityResource": { + "$ref": "./examples/TransitHub_ListByCommunityResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs/{transitHubName}": { + "get": { + "operationId": "TransitHub_Get", + "tags": [ + "TransitHub" + ], + "description": "Get a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Get": { + "$ref": "./examples/TransitHub_Get.json" + } + } + }, + "put": { + "operationId": "TransitHub_CreateOrUpdate", + "tags": [ + "TransitHub" + ], + "description": "Create a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TransitHubResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "201": { + "description": "Resource 'TransitHubResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TransitHubResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_CreateOrUpdate": { + "$ref": "./examples/TransitHub_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "TransitHub_Update", + "tags": [ + "TransitHub" + ], + "description": "Update a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TransitHubPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Update": { + "$ref": "./examples/TransitHub_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TransitHub_Delete", + "tags": [ + "TransitHub" + ], + "description": "Delete a TransitHubResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communityName", + "in": "path", + "description": "The name of the communityResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "transitHubName", + "in": "path", + "description": "The name of the TransitHub Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransitHub_Delete": { + "$ref": "./examples/TransitHub_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections": { + "get": { + "operationId": "EnclaveConnection_ListByResourceGroup", + "tags": [ + "EnclaveConnection" + ], + "description": "List EnclaveConnectionResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_ListByResourceGroup": { + "$ref": "./examples/EnclaveConnection_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}": { + "get": { + "operationId": "EnclaveConnection_Get", + "tags": [ + "EnclaveConnection" + ], + "description": "Get a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Get": { + "$ref": "./examples/EnclaveConnection_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveConnection_CreateOrUpdate", + "tags": [ + "EnclaveConnection" + ], + "description": "Create a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveConnectionResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "201": { + "description": "Resource 'EnclaveConnectionResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_CreateOrUpdate": { + "$ref": "./examples/EnclaveConnection_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveConnection_Update", + "tags": [ + "EnclaveConnection" + ], + "description": "Update a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveConnectionPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Update": { + "$ref": "./examples/EnclaveConnection_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveConnection_Delete", + "tags": [ + "EnclaveConnection" + ], + "description": "Delete a EnclaveConnectionResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_Delete": { + "$ref": "./examples/EnclaveConnection_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/handleApprovalCreation": { + "post": { + "operationId": "EnclaveConnection_HandleApprovalCreation", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_HandleApprovalCreation": { + "$ref": "./examples/EnclaveConnection_HandleApprovalCreation.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/enclaveConnections/{enclaveConnectionName}/handleApprovalDeletion": { + "post": { + "operationId": "EnclaveConnection_HandleApprovalDeletion", + "tags": [ + "EnclaveConnection" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "enclaveConnectionName", + "in": "path", + "description": "The name of the Enclave Connection Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveConnection_HandleApprovalDeletion": { + "$ref": "./examples/EnclaveConnection_HandleApprovalDeletion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves": { + "get": { + "operationId": "VirtualEnclave_ListByResourceGroup", + "tags": [ + "VirtualEnclave" + ], + "description": "List EnclaveResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_ListByResourceGroup": { + "$ref": "./examples/VirtualEnclave_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}": { + "get": { + "operationId": "VirtualEnclave_Get", + "tags": [ + "VirtualEnclave" + ], + "description": "Get a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Get": { + "$ref": "./examples/VirtualEnclave_Get.json" + } + } + }, + "put": { + "operationId": "VirtualEnclave_CreateOrUpdate", + "tags": [ + "VirtualEnclave" + ], + "description": "Create a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "201": { + "description": "Resource 'EnclaveResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_CreateOrUpdate": { + "$ref": "./examples/VirtualEnclave_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "VirtualEnclave_Update", + "tags": [ + "VirtualEnclave" + ], + "description": "Update a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualEnclavePatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Update": { + "$ref": "./examples/VirtualEnclave_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualEnclave_Delete", + "tags": [ + "VirtualEnclave" + ], + "description": "Delete a EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_Delete": { + "$ref": "./examples/VirtualEnclave_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints": { + "get": { + "operationId": "EnclaveEndpoints_ListByEnclaveResource", + "tags": [ + "EnclaveEndpoints" + ], + "description": "List EnclaveEndpointResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_ListByEnclaveResource": { + "$ref": "./examples/EnclaveEndpoints_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}": { + "get": { + "operationId": "EnclaveEndpoints_Get", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Get a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Get": { + "$ref": "./examples/EnclaveEndpoints_Get.json" + } + } + }, + "put": { + "operationId": "EnclaveEndpoints_CreateOrUpdate", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Create a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'EnclaveEndpointResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "201": { + "description": "Resource 'EnclaveEndpointResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_CreateOrUpdate": { + "$ref": "./examples/EnclaveEndpoints_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EnclaveEndpoints_Update", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Update a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/EnclaveEndpointPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Update": { + "$ref": "./examples/EnclaveEndpoints_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EnclaveEndpoints_Delete", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Delete a EnclaveEndpointResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_Delete": { + "$ref": "./examples/EnclaveEndpoints_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}/handleApprovalCreation": { + "post": { + "operationId": "EnclaveEndpoints_HandleApprovalCreation", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_HandleApprovalCreation": { + "$ref": "./examples/EnclaveEndpoints_HandleApprovalCreation.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/enclaveEndpoints/{enclaveEndpointName}/handleApprovalDeletion": { + "post": { + "operationId": "EnclaveEndpoints_HandleApprovalDeletion", + "tags": [ + "EnclaveEndpoints" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "enclaveEndpointName", + "in": "path", + "description": "The name of the Enclave Endpoint Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-_]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnclaveEndpoints_HandleApprovalDeletion": { + "$ref": "./examples/EnclaveEndpoints_HandleApprovalDeletion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/handleApprovalCreation": { + "post": { + "operationId": "VirtualEnclave_HandleApprovalCreation", + "tags": [ + "VirtualEnclave" + ], + "description": "Callback that triggers on approval state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_HandleApprovalCreation": { + "$ref": "./examples/VirtualEnclave_HandleApprovalCreation.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/handleApprovalDeletion": { + "post": { + "operationId": "VirtualEnclave_HandleApprovalDeletion", + "tags": [ + "VirtualEnclave" + ], + "description": "Callback that triggers on approval deletion state change.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/ApprovalDeletionCallbackRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApprovalActionResponse" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualEnclave_HandleApprovalDeletion": { + "$ref": "./examples/VirtualEnclave_HandleApprovalDeletion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads": { + "get": { + "operationId": "Workload_ListByEnclaveResource", + "tags": [ + "Workload" + ], + "description": "List WorkloadResource resources by EnclaveResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_ListByEnclaveResource": { + "$ref": "./examples/Workload_ListByEnclaveResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads/{workloadName}": { + "get": { + "operationId": "Workload_Get", + "tags": [ + "Workload" + ], + "description": "Get a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Get": { + "$ref": "./examples/Workload_Get.json" + } + } + }, + "put": { + "operationId": "Workload_CreateOrUpdate", + "tags": [ + "Workload" + ], + "description": "Create a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'WorkloadResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "201": { + "description": "Resource 'WorkloadResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/WorkloadResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_CreateOrUpdate": { + "$ref": "./examples/Workload_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Workload_Update", + "tags": [ + "Workload" + ], + "description": "Update a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/WorkloadPatchModel" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Update": { + "$ref": "./examples/Workload_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Workload_Delete", + "tags": [ + "Workload" + ], + "description": "Delete a WorkloadResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualEnclaveName", + "in": "path", + "description": "The name of the enclaveResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + }, + { + "name": "workloadName", + "in": "path", + "description": "The name of the workloadResource Resource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workload_Delete": { + "$ref": "./examples/Workload_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ActionPerformed": { + "type": "string", + "description": "Specifies the action performed by the approver", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "ActionPerformed", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "Action was Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "Action was Rejected" + } + ] + } + }, + "ApprovalActionRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "approvalStatus" + ] + }, + "ApprovalActionResponse": { + "type": "object", + "description": "Response body after handling of approvalCallbackRequest", + "properties": { + "message": { + "type": "string", + "description": "Confirmation message indicating the result of the operation." + } + }, + "required": [ + "message" + ] + }, + "ApprovalCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-callback post action", + "enum": [ + "Create", + "Delete", + "Update", + "Reset" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "approvalStatus": { + "type": "string", + "description": "Approval status indicating 'Approved' or 'Rejected'", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload requested by client upon approval action" + } + }, + "required": [ + "resourceRequestAction", + "approvalStatus" + ] + }, + "ApprovalDeletionCallbackRequest": { + "type": "object", + "description": "Request body for calling post-action", + "properties": { + "resourceRequestAction": { + "type": "string", + "description": "Resource request action indicating action which needed to be performed upon calling approval-deletion-callback post action", + "enum": [ + "Create", + "Delete", + "Update" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "resourceRequestAction" + ] + }, + "ApprovalPatchModel": { + "type": "object", + "description": "Approvals patch model.", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalPatchProperties", + "description": "Approval Patch properties" + } + } + }, + "ApprovalPatchProperties": { + "type": "object", + "description": "Approvals patch properties.", + "properties": { + "parentResourceId": { + "type": "string", + "format": "arm-id", + "description": "Parameter for optimizing query results" + }, + "grandparentResourceId": { + "type": "string", + "format": "arm-id", + "description": "Parameter for optimizing query results" + }, + "approvers": { + "type": "array", + "description": "List of approvers for the approval request", + "items": { + "$ref": "#/definitions/Approver" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "ticketId": { + "type": "string", + "description": "Ticket ID for the approval request" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Approval request creation time" + }, + "stateChangedAt": { + "type": "string", + "format": "date-time", + "description": "Approval request state change time, time at which approval request state changed from pending to approved or rejected." + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadataUpdatableProperties", + "description": "Request metadata for the approval request." + } + } + }, + "ApprovalPolicy": { + "type": "string", + "description": "Approval Policy.", + "enum": [ + "Required", + "NotRequired" + ], + "x-ms-enum": { + "name": "ApprovalPolicy", + "modelAsString": true, + "values": [ + { + "name": "Required", + "value": "Required", + "description": "Approval will be required for the specified action." + }, + { + "name": "NotRequired", + "value": "NotRequired", + "description": "Approval will not be required for the specified action." + } + ] + } + }, + "ApprovalProperties": { + "type": "object", + "description": "Approval Base model.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "parentResourceId": { + "type": "string", + "format": "arm-id", + "description": "Parameter for optimizing query results" + }, + "grandparentResourceId": { + "type": "string", + "format": "arm-id", + "description": "Parameter for optimizing query results" + }, + "approvers": { + "type": "array", + "description": "List of approvers for the approval request", + "items": { + "$ref": "#/definitions/Approver" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "ticketId": { + "type": "string", + "description": "Ticket ID for the approval request" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Approval request creation time" + }, + "stateChangedAt": { + "type": "string", + "format": "date-time", + "description": "Approval request state change time, time at which approval request state changed from pending to approved or rejected." + }, + "requestMetadata": { + "$ref": "#/definitions/RequestMetadata", + "description": "Request metadata for the approval request." + } + }, + "required": [ + "requestMetadata" + ] + }, + "ApprovalResource": { + "type": "object", + "description": "Approval Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/ApprovalProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ApprovalResourceListResult": { + "type": "object", + "description": "The response of a ApprovalResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The ApprovalResource items on this page", + "items": { + "$ref": "#/definitions/ApprovalResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ApprovalSettings": { + "type": "object", + "description": "ApprovalSettings Properties", + "properties": { + "endpointCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "endpointUpdate": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint update (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "endpointDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for endpoint deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionUpdate": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection update (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "connectionDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for enclave connection deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "enclaveCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for virtual enclave creation (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "enclaveDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for virtual enclave deletion (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "maintenanceMode": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for toggling maintenance mode (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "serviceCatalogDeployment": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Approval required for deploying service catalog templates (Required or NotRequired).", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalCreation": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on creation of an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalAction": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on any action taken (Approve/Reject) on an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "notificationOnApprovalDeletion": { + "$ref": "#/definitions/ApprovalPolicy", + "description": "Notification will be sent on deletion of an Approval Request", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "mandatoryApprovers": { + "type": "array", + "description": "List of mandatory approvers for the approval request", + "items": { + "$ref": "#/definitions/MandatoryApprover" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + }, + "minimumApproversRequired": { + "type": "integer", + "format": "int64", + "description": "Minimum number of approvers required for the approval request", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "ApprovalSettingsPatchProperties": { + "type": "object", + "description": "ApprovalSettings Properties", + "properties": { + "mandatoryApprovers": { + "type": "array", + "description": "List of mandatory approvers for the approval request", + "items": { + "$ref": "#/definitions/MandatoryApprover" + }, + "x-ms-identifiers": [ + "approverEntraId" + ] + } + } + }, + "ApprovalStatus": { + "type": "string", + "description": "Approval Status. It can be Approved, Rejected, Pending, Deleted or Expired.", + "enum": [ + "Approved", + "Rejected", + "Pending", + "Deleted", + "Expired" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "ApprovalStatus Type Deleted" + }, + { + "name": "Expired", + "value": "Expired", + "description": "ApprovalStatus Type Expired" + } + ] + } + }, + "Approver": { + "type": "object", + "description": "Approver Metadata for approvals request.", + "properties": { + "approverEntraId": { + "type": "string", + "description": "Entra ObjectID of the approver" + }, + "actionPerformed": { + "$ref": "#/definitions/ActionPerformed", + "description": "Action Performed by approver" + }, + "lastUpdatedAt": { + "type": "string", + "format": "date-time", + "description": "approval request last updated at" + } + }, + "required": [ + "approverEntraId", + "lastUpdatedAt" + ] + }, + "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "type": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentityType", + "description": "The type of managed identity assigned to this resource." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The identities assigned to this resource by the user.", + "additionalProperties": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentity", + "x-nullable": true + } + } + } + }, + "CheckAddressSpaceAvailabilityRequest": { + "type": "object", + "description": "Request to the action call to check address space availability.", + "properties": { + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Resource Id of the Community" + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Information about the enclave virtual network" + } + }, + "required": [ + "communityResourceId", + "enclaveVirtualNetwork" + ] + }, + "CheckAddressSpaceAvailabilityResponse": { + "type": "object", + "description": "Response of availability of the requested address space.", + "properties": { + "value": { + "type": "boolean", + "description": "Boolean representing whether the address space is available." + } + }, + "required": [ + "value" + ] + }, + "CommunityEndpointDestinationRule": { + "type": "object", + "description": "Base type for destination rules.", + "properties": { + "destinationType": { + "$ref": "#/definitions/DestinationType", + "description": "Destination Type." + }, + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/CommunityEndpointProtocol" + } + }, + "transitHubResourceId": { + "$ref": "#/definitions/TransitHubResourceId", + "description": "Transit Hub Resource Id." + }, + "endpointRuleName": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "ports": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "CommunityEndpointPatchModel": { + "type": "object", + "description": "Community Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointPatchProperties", + "description": "Community Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "CommunityEndpointPatchProperties": { + "type": "object", + "description": "Community Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + } + } + }, + "CommunityEndpointProperties": { + "type": "object", + "description": "Community Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Community Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/CommunityEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + } + }, + "required": [ + "ruleCollection" + ] + }, + "CommunityEndpointProtocol": { + "type": "string", + "description": "Community Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH", + "HTTPS", + "HTTP" + ], + "x-ms-enum": { + "name": "CommunityEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "CommunityEndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "CommunityEndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "CommunityEndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "CommunityEndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "CommunityEndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "CommunityEndpointProtocol Type AH" + }, + { + "name": "HTTPS", + "value": "HTTPS", + "description": "CommunityEndpointProtocol Type HTTPS" + }, + { + "name": "HTTP", + "value": "HTTP", + "description": "CommunityEndpointProtocol Type HTTP" + } + ] + } + }, + "CommunityEndpointResource": { + "type": "object", + "description": "CommunityEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityEndpointResourceListResult": { + "type": "object", + "description": "The response of a CommunityEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityEndpointResource items on this page", + "items": { + "$ref": "#/definitions/CommunityEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CommunityPatchModel": { + "type": "object", + "description": "Community Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityPatchProperties", + "description": "Community Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + } + } + }, + "CommunityPatchProperties": { + "type": "object", + "description": "Community Resource Properties without default values", + "properties": { + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "policyOverride": { + "type": "string", + "description": "Policy override setting for the community. Specifies whether to apply enclave-specific policies or disable policy enforcement.", + "enum": [ + "Enclave", + "None" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "communityRoleAssignments": { + "type": "array", + "description": "Community role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "firewallSku": { + "$ref": "#/definitions/FirewallSKU", + "description": "SKU of the community's Azure Firewall (Basic, Standard, Premium). Standard is the default" + }, + "approvalSettings": { + "$ref": "#/definitions/ApprovalSettingsPatchProperties", + "description": "Approval requirements for various actions on the community's resources." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationPatchModel", + "description": "Maintenance Mode configuration." + } + } + }, + "CommunityProperties": { + "type": "object", + "description": "Community Resource Properties", + "properties": { + "addressSpace": { + "type": "string", + "description": "Address Space.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "dnsServers": { + "type": "array", + "description": "DNS Servers.", + "items": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by communities.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "managedResourceGroupName": { + "type": "string", + "description": "Managed resource group name.", + "readOnly": true + }, + "managedOnBehalfOfConfiguration": { + "$ref": "../../../../../common-types/resource-management/v5/mobo.json#/definitions/ManagedOnBehalfOfConfiguration", + "description": "Managed On Behalf Of Configuration.", + "readOnly": true + }, + "governedServiceList": { + "type": "array", + "description": "List of services governed by a community.", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "policyOverride": { + "type": "string", + "description": "Policy override setting for the community. Specifies whether to apply enclave-specific policies or disable policy enforcement.", + "enum": [ + "Enclave", + "None" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "communityRoleAssignments": { + "type": "array", + "description": "Community role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "firewallSku": { + "type": "string", + "description": "SKU of the community's Azure Firewall (Basic, Standard, Premium). Standard is the default", + "default": "Standard", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "FirewallSKU", + "modelAsString": true, + "values": [ + { + "name": "Basic", + "value": "Basic", + "description": "FirewallSKU Basic" + }, + { + "name": "Standard", + "value": "Standard", + "description": "FirwallSKU Standard" + }, + { + "name": "Premium", + "value": "Premium", + "description": "FirewallSKU Premium" + } + ] + } + }, + "approvalSettings": { + "$ref": "#/definitions/ApprovalSettings", + "description": "Approval requirements for various actions on the community's resources." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationModel", + "description": "Maintenance Mode configuration." + } + } + }, + "CommunityResource": { + "type": "object", + "description": "Community Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/CommunityProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunityResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities" + } + ] + } + }, + "CommunityResourceListResult": { + "type": "object", + "description": "The response of a CommunityResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CommunityResource items on this page", + "items": { + "$ref": "#/definitions/CommunityResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DestinationEndpointResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves/enclaveEndpoints" + }, + { + "type": "Microsoft.Mission/communities/communityEndpoints" + } + ] + } + }, + "DestinationType": { + "type": "string", + "description": "Destination Type Enum", + "enum": [ + "FQDN", + "FQDNTag", + "IPAddress", + "PrivateNetwork" + ], + "x-ms-enum": { + "name": "DestinationType", + "modelAsString": true, + "values": [ + { + "name": "FQDN", + "value": "FQDN", + "description": "DestinationType Type FQDN" + }, + { + "name": "FQDNTag", + "value": "FQDNTag", + "description": "DestinationType Type FQDNTag" + }, + { + "name": "IPAddress", + "value": "IPAddress", + "description": "DestinationType Type IPAddress" + }, + { + "name": "PrivateNetwork", + "value": "PrivateNetwork", + "description": "DestinationType Type PrivateNetwork" + } + ] + } + }, + "DiagnosticDestination": { + "type": "string", + "description": "Specifies the destination of where to store diagnostic logs.", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + }, + "EnclaveAddressSpacesModel": { + "type": "object", + "description": "Enclave Address Spaces", + "properties": { + "enclaveAddressSpace": { + "type": "string", + "description": "Enclave Address Space" + }, + "managedAddressSpace": { + "type": "string", + "description": "Managed Address Space" + } + } + }, + "EnclaveConnectionPatchModel": { + "type": "object", + "description": "Enclave Connection Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionPatchProperties", + "description": "Enclave Connection Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveConnectionPatchProperties": { + "type": "object", + "description": "Enclave Connection patchable Properties", + "properties": { + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + } + } + }, + "EnclaveConnectionProperties": { + "type": "object", + "description": "Enclave Connection Resource properties", + "properties": { + "state": { + "$ref": "#/definitions/EnclaveConnectionState", + "description": "The state of the enclaveConnection.", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceResourceId": { + "$ref": "#/definitions/EnclaveConnectionSourceResourceId", + "description": "Source Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sourceCidr": { + "type": "string", + "description": "Source CIDR." + }, + "destinationEndpointId": { + "$ref": "#/definitions/DestinationEndpointResourceId", + "description": "Destination Endpoint Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by enclave Connections.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + } + }, + "required": [ + "communityResourceId", + "sourceResourceId", + "destinationEndpointId" + ] + }, + "EnclaveConnectionResource": { + "type": "object", + "description": "EnclaveConnection Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveConnectionProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveConnectionResourceListResult": { + "type": "object", + "description": "The response of a EnclaveConnectionResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveConnectionResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveConnectionResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveConnectionSourceResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/virtualEnclaves" + }, + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "EnclaveConnectionState": { + "type": "string", + "description": "Specifies the state of the enclave connection.", + "enum": [ + "PendingApproval", + "PendingUpdate", + "Approved", + "Active", + "Failed", + "Connected", + "Disconnected" + ], + "x-ms-enum": { + "name": "EnclaveConnectionState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "EnclaveConnectionState Type Pending Approval" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "EnclaveConnectionState Type Pending Update" + }, + { + "name": "Approved", + "value": "Approved", + "description": "EnclaveConnectionState Type Approved" + }, + { + "name": "Active", + "value": "Active", + "description": "EnclaveConnectionState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "EnclaveConnectionState Type Failed" + }, + { + "name": "Connected", + "value": "Connected", + "description": "EnclaveConnectionState Type Connected" + }, + { + "name": "Disconnected", + "value": "Disconnected", + "description": "EnclaveConnectionState Type Disconnected" + } + ] + } + }, + "EnclaveDefaultSettingsModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "keyVaultResourceId": { + "$ref": "#/definitions/KeyVaultResourceId", + "description": "Key Vault Resource Id.", + "readOnly": true + }, + "storageAccountResourceId": { + "$ref": "#/definitions/StorageAccountResourceId", + "description": "Storage Account Resource Id.", + "readOnly": true + }, + "logAnalyticsResourceIdCollection": { + "type": "array", + "description": "Log Analytics Resource Ids.", + "items": { + "$ref": "#/definitions/LogAnalyticsResourceId" + }, + "readOnly": true + }, + "diagnosticDestination": { + "type": "string", + "description": "Diagnostic Destination.", + "default": "EnclaveOnly", + "enum": [ + "CommunityOnly", + "EnclaveOnly", + "Both" + ], + "x-ms-enum": { + "name": "DiagnosticDestination", + "modelAsString": true, + "values": [ + { + "name": "CommunityOnly", + "value": "CommunityOnly", + "description": "DiagnosticDestination Type CommunityOnly" + }, + { + "name": "EnclaveOnly", + "value": "EnclaveOnly", + "description": "DiagnosticDestination Type EnclaveOnly" + }, + { + "name": "Both", + "value": "Both", + "description": "DiagnosticDestination Type Both" + } + ] + } + } + } + }, + "EnclaveDefaultSettingsPatchModel": { + "type": "object", + "description": "Virtual Enclave Default Settings", + "properties": { + "diagnosticDestination": { + "$ref": "#/definitions/DiagnosticDestination", + "description": "Diagnostic Destination." + } + } + }, + "EnclaveEndpointDestinationRule": { + "type": "object", + "description": "Enclave Endpoint Rule Properties", + "properties": { + "protocols": { + "type": "array", + "description": "Protocols. Options specified by Endpoint Protocol Enum.", + "items": { + "$ref": "#/definitions/EnclaveEndpointProtocol" + } + }, + "endpointRuleName": { + "type": "string", + "description": "Endpoint Rule Name." + }, + "destination": { + "type": "string", + "description": "Destination address. Can include multiple CIDR/IP Addresses or fqdn tags or fqdns (for community endpoint) separated by commas." + }, + "ports": { + "type": "string", + "description": "Port. Can include multiple ports separated by commas or a range indicated by a hyphen." + } + } + }, + "EnclaveEndpointPatchModel": { + "type": "object", + "description": "Enclave Endpoint Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointPatchProperties", + "description": "Enclave Endpoint Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EnclaveEndpointPatchProperties": { + "type": "object", + "description": "Enclave Endpoint patchable Properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + } + } + }, + "EnclaveEndpointProperties": { + "type": "object", + "description": "Enclave Endpoint Resource properties", + "properties": { + "ruleCollection": { + "type": "array", + "description": "Enclave Endpoint Rule Collection.", + "items": { + "$ref": "#/definitions/EnclaveEndpointDestinationRule" + }, + "x-ms-identifiers": [] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by community endpoint.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + } + }, + "required": [ + "ruleCollection" + ] + }, + "EnclaveEndpointProtocol": { + "type": "string", + "description": "Enclave Endpoint Protocol Enum", + "enum": [ + "ANY", + "TCP", + "UDP", + "ICMP", + "ESP", + "AH" + ], + "x-ms-enum": { + "name": "EnclaveEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "ANY", + "value": "ANY", + "description": "EndpointProtocol Type ANY" + }, + { + "name": "TCP", + "value": "TCP", + "description": "EndpointProtocol Type TCP" + }, + { + "name": "UDP", + "value": "UDP", + "description": "EndpointProtocol Type UDP" + }, + { + "name": "ICMP", + "value": "ICMP", + "description": "EndpointProtocol Type ICMP" + }, + { + "name": "ESP", + "value": "ESP", + "description": "EndpointProtocol Type ESP" + }, + { + "name": "AH", + "value": "AH", + "description": "EndpointProtocol Type AH" + } + ] + } + }, + "EnclaveEndpointResource": { + "type": "object", + "description": "EnclaveEndpoint Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/EnclaveEndpointProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveEndpointResourceListResult": { + "type": "object", + "description": "The response of a EnclaveEndpointResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveEndpointResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveEndpointResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveResource": { + "type": "object", + "description": "Virtual Enclave Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclaveProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "EnclaveResourceListResult": { + "type": "object", + "description": "The response of a EnclaveResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnclaveResource items on this page", + "items": { + "$ref": "#/definitions/EnclaveResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EnclaveVirtualNetworkModel": { + "type": "object", + "description": "Enclave Virtual Network Properties", + "properties": { + "networkName": { + "type": "string", + "description": "Network Name." + }, + "networkSize": { + "type": "string", + "description": "Network Size.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "customCidrRange": { + "type": "string", + "description": "Custom CIDR Range.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "subnetConfigurations": { + "type": "array", + "description": "Subnet Configurations.", + "items": { + "$ref": "#/definitions/SubnetConfiguration" + }, + "x-ms-identifiers": [] + }, + "allowSubnetCommunication": { + "type": "boolean", + "description": "Allow Subnet Communication.", + "default": false, + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "FirewallSKU": { + "type": "string", + "description": "Azure Firewall SKU", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "FirewallSKU", + "modelAsString": true, + "values": [ + { + "name": "Basic", + "value": "Basic", + "description": "FirewallSKU Basic" + }, + { + "name": "Standard", + "value": "Standard", + "description": "FirwallSKU Standard" + }, + { + "name": "Premium", + "value": "Premium", + "description": "FirewallSKU Premium" + } + ] + } + }, + "GovernedServiceItem": { + "type": "object", + "description": "GovernedServiceItem Properties", + "properties": { + "serviceId": { + "$ref": "#/definitions/ServiceIdentifier", + "description": "Service ID" + }, + "serviceName": { + "type": "string", + "description": "Service name.", + "readOnly": true + }, + "option": { + "type": "string", + "description": "Governance option for this service (Allow, Deny, ExceptionOnly, or NotApplicable).", + "enum": [ + "Allow", + "Deny", + "ExceptionOnly", + "NotApplicable" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "enforcement": { + "type": "string", + "description": "Initiative enforcement (Enabled or Disabled).", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "policyAction": { + "type": "string", + "description": "Enforcement mode for policy. AuditOnly, Enforce, or None.", + "enum": [ + "AuditOnly", + "Enforce", + "None" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "initiatives": { + "type": "array", + "description": "Initiatives associated with this service.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "serviceId" + ] + }, + "KeyVaultResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.KeyVault/vaults" + } + ] + } + }, + "LogAnalyticsResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.OperationalInsights/workspaces" + } + ] + } + }, + "MaintenanceModeConfigurationModel": { + "type": "object", + "description": "Maintenance Mode", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "default": "Off", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "default": [], + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "default": "Off", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "mode" + ] + }, + "MaintenanceModeConfigurationPatchModel": { + "type": "object", + "description": "Maintenance Mode Patch Model", + "properties": { + "mode": { + "type": "string", + "description": "Current mode of Maintenance Mode Configuration", + "enum": [ + "On", + "CanNotDelete", + "Off", + "General", + "Advanced" + ], + "x-ms-enum": { + "modelAsString": true + } + }, + "principals": { + "type": "array", + "description": "The user, group or service principal object affected by Maintenance Mode", + "items": { + "$ref": "#/definitions/Principal" + } + }, + "justification": { + "type": "string", + "description": "Justification for entering or exiting Maintenance Mode", + "enum": [ + "Networking", + "Governance", + "Off" + ], + "x-ms-enum": { + "modelAsString": true + } + } + } + }, + "MandatoryApprover": { + "type": "object", + "description": "Approver Metadata for approvals request.", + "properties": { + "approverEntraId": { + "type": "string", + "description": "EntraId of the approver" + } + }, + "required": [ + "approverEntraId" + ] + }, + "NsgResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/networkSecurityGroups" + } + ] + } + }, + "Principal": { + "type": "object", + "description": "Principal for maintenance mode or role assignments", + "properties": { + "id": { + "type": "string", + "description": "The object id associated with the principal" + }, + "type": { + "type": "string", + "description": "The type of the object id. We currently allow users, groups, and service principals", + "enum": [ + "User", + "Group", + "ServicePrincipal" + ], + "x-ms-enum": { + "modelAsString": true + } + } + }, + "required": [ + "id", + "type" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning status of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Creating", + "Deleting", + "NotSpecified", + "Running", + "Updating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Provisioning State Type Accepted" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Provisioning State Type Creating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Provisioning State Type Deleting" + }, + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "Provisioning State Type NotSpecified" + }, + { + "name": "Running", + "value": "Running", + "description": "Provisioning State Type Running" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Provisioning State Type Updating" + } + ] + }, + "readOnly": true + }, + "RequestMetadata": { + "type": "object", + "description": "Request Metadata for approvals request.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalCallbackRoute": { + "type": "string", + "description": "Route name for the approval callback" + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload to be sent upon any action on approval request" + }, + "approvalStatus": { + "type": "string", + "description": "Status of the approval. Uses ApprovalStatus enum.", + "default": "Pending", + "enum": [ + "Approved", + "Rejected", + "Pending", + "Deleted", + "Expired" + ], + "x-ms-enum": { + "name": "ApprovalStatus", + "modelAsString": true, + "values": [ + { + "name": "Approved", + "value": "Approved", + "description": "ApprovalStatus Type Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "ApprovalStatus Type Rejected" + }, + { + "name": "Pending", + "value": "Pending", + "description": "ApprovalStatus Type Pending" + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "ApprovalStatus Type Deleted" + }, + { + "name": "Expired", + "value": "Expired", + "description": "ApprovalStatus Type Expired" + } + ] + } + } + }, + "required": [ + "resourceAction" + ] + }, + "RequestMetadataUpdatableProperties": { + "type": "object", + "description": "Request Metadata patch properties.", + "properties": { + "resourceAction": { + "type": "string", + "description": "Resource Action of the item being approved or declined." + }, + "approvalCallbackRoute": { + "type": "string", + "description": "Route name for the approval callback" + }, + "approvalCallbackPayload": { + "type": "string", + "description": "Payload to be sent upon any action on approval request" + }, + "approvalStatus": { + "$ref": "#/definitions/ApprovalStatus", + "description": "Status of the approval. Uses ApprovalStatus enum." + } + } + }, + "RoleAssignmentItem": { + "type": "object", + "description": "Role assignment item that indicates which principals should be assigned this role definition", + "properties": { + "roleDefinitionId": { + "type": "string", + "description": "Role definition identifier" + }, + "principals": { + "type": "array", + "description": "List of principal IDs to which to assign this role definition", + "items": { + "$ref": "#/definitions/Principal" + } + } + }, + "required": [ + "roleDefinitionId" + ] + }, + "ServiceIdentifier": { + "type": "string", + "description": "Identifier for governed services.", + "enum": [ + "AKS", + "AppService", + "AzureFirewalls", + "ContainerRegistry", + "CosmosDB", + "DataConnectors", + "Insights", + "KeyVault", + "Logic", + "MicrosoftSQL", + "Monitoring", + "PostgreSQL", + "PrivateDNSZones", + "ServiceBus", + "Storage" + ], + "x-ms-enum": { + "name": "ServiceIdentifier", + "modelAsString": true, + "values": [ + { + "name": "AKS", + "value": "AKS", + "description": "Service identifier for AKS" + }, + { + "name": "AppService", + "value": "AppService", + "description": "Service identifier for App Service" + }, + { + "name": "AzureFirewalls", + "value": "AzureFirewalls", + "description": "Service identifier for Azure Firewalls" + }, + { + "name": "ContainerRegistry", + "value": "ContainerRegistry", + "description": "Service identifier for Container Registry" + }, + { + "name": "CosmosDB", + "value": "CosmosDB", + "description": "Service identifier for CosmosDB" + }, + { + "name": "DataConnectors", + "value": "DataConnectors", + "description": "Service identifier for Data Connectors" + }, + { + "name": "Insights", + "value": "Insights", + "description": "Service identifier for Insights" + }, + { + "name": "KeyVault", + "value": "KeyVault", + "description": "Service identifier for Key Vault" + }, + { + "name": "Logic", + "value": "Logic", + "description": "Service identifier for Logic" + }, + { + "name": "MicrosoftSql", + "value": "MicrosoftSQL", + "description": "Service identifier for Microsoft SQL" + }, + { + "name": "Monitoring", + "value": "Monitoring", + "description": "Service identifier for Monitoring" + }, + { + "name": "PostgreSql", + "value": "PostgreSQL", + "description": "Service identifier for PostgreSQL" + }, + { + "name": "PrivateDNSZones", + "value": "PrivateDNSZones", + "description": "Service identifier for Private DNS Zones" + }, + { + "name": "ServiceBus", + "value": "ServiceBus", + "description": "Service identifier for Service Bus" + }, + { + "name": "Storage", + "value": "Storage", + "description": "Service identifier for Storage" + } + ] + } + }, + "StorageAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } + }, + "SubnetConfiguration": { + "type": "object", + "description": "Subnet Configuration", + "properties": { + "subnetName": { + "type": "string", + "description": "Subnet name." + }, + "subnetResourceId": { + "$ref": "#/definitions/SubnetResourceId", + "description": "Subnet Resource ID.", + "readOnly": true + }, + "networkPrefixSize": { + "type": "integer", + "format": "int32", + "description": "Network prefix size." + }, + "subnetDelegation": { + "type": "string", + "description": "Subnet delegation." + }, + "addressPrefix": { + "type": "string", + "description": "Address prefix.", + "readOnly": true + }, + "networkSecurityGroupResourceId": { + "$ref": "#/definitions/NsgResourceId", + "description": "Network security group ID.", + "readOnly": true + } + }, + "required": [ + "subnetName", + "networkPrefixSize" + ] + }, + "SubnetResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } + }, + "TransitHubPatchModel": { + "type": "object", + "description": "TH Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubPatchProperties", + "description": "The TransitHub resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TransitHubPatchProperties": { + "type": "object", + "description": "Transit Hub patchable Properties", + "properties": { + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + } + } + }, + "TransitHubProperties": { + "type": "object", + "description": "Describes the properties of an Transit Hub.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/TransitHubState", + "description": "The state of the transitHub." + }, + "transitOption": { + "$ref": "#/definitions/TransitOption", + "description": "The TransitOption of the transitHub." + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids modified by transitHubs.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + } + } + }, + "TransitHubResource": { + "type": "object", + "description": "TransitHub Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/TransitHubProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "TransitHubResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Mission/communities/transitHubs" + } + ] + } + }, + "TransitHubResourceListResult": { + "type": "object", + "description": "The response of a TransitHubResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TransitHubResource items on this page", + "items": { + "$ref": "#/definitions/TransitHubResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TransitHubState": { + "type": "string", + "description": "Specifies the state of the transitHub.", + "enum": [ + "PendingApproval", + "Approved", + "PendingUpdate", + "Active", + "Failed" + ], + "x-ms-enum": { + "name": "TransitHubState", + "modelAsString": true, + "values": [ + { + "name": "PendingApproval", + "value": "PendingApproval", + "description": "TransitHubState Type PendingApproval" + }, + { + "name": "Approved", + "value": "Approved", + "description": "TransitHubState Type Approved" + }, + { + "name": "PendingUpdate", + "value": "PendingUpdate", + "description": "TransitHubState Type PendingUpdate" + }, + { + "name": "Active", + "value": "Active", + "description": "TransitHubState Type Active" + }, + { + "name": "Failed", + "value": "Failed", + "description": "TransitHubState Type Failed" + } + ] + } + }, + "TransitOption": { + "type": "object", + "description": "TransitOption Properties", + "properties": { + "type": { + "$ref": "#/definitions/TransitOptionType", + "description": "Transit Option Type." + }, + "params": { + "$ref": "#/definitions/TransitOptionParams", + "description": "Transit Option Params" + } + } + }, + "TransitOptionParams": { + "type": "object", + "description": "TransitOptionParams Properties", + "properties": { + "scaleUnits": { + "type": "integer", + "format": "int64", + "description": "Transit Option Params scaleUnits." + }, + "remoteVirtualNetworkId": { + "$ref": "#/definitions/VirtualNetworkResourceId", + "description": "Transit Option Params remoteVirtualNetworkId." + } + } + }, + "TransitOptionType": { + "type": "string", + "description": "Specifies the type of the transitOption.", + "enum": [ + "ExpressRoute", + "Gateway", + "Peering" + ], + "x-ms-enum": { + "name": "TransitOptionType", + "modelAsString": true, + "values": [ + { + "name": "ExpressRoute", + "value": "ExpressRoute", + "description": "TransitOptionType ExpressRoute" + }, + { + "name": "Gateway", + "value": "Gateway", + "description": "TransitOptionType Gateway" + }, + { + "name": "Peering", + "value": "Peering", + "description": "TransitOptionType Peering" + } + ] + } + }, + "VirtualEnclavePatchModel": { + "type": "object", + "description": "Virtual Enclave Patch Model", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualEnclavePatchProperties", + "description": "Virtual Enclave Patch properties" + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualEnclavePatchProperties": { + "type": "object", + "description": "Virtual Enclave Patchable Properties", + "properties": { + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False)." + }, + "enclaveRoleAssignments": { + "type": "array", + "description": "Enclave role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "workloadRoleAssignments": { + "type": "array", + "description": "Workload role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "governedServiceList": { + "type": "array", + "description": "Enclave specific policies", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsPatchModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationPatchModel", + "description": "Maintenance Mode configuration." + } + } + }, + "VirtualEnclaveProperties": { + "type": "object", + "description": "Virtual Enclave Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "enclaveVirtualNetwork": { + "$ref": "#/definitions/EnclaveVirtualNetworkModel", + "description": "Virtual Network." + }, + "enclaveAddressSpaces": { + "$ref": "#/definitions/EnclaveAddressSpacesModel", + "description": "Enclave Address Spaces", + "readOnly": true + }, + "communityResourceId": { + "$ref": "#/definitions/CommunityResourceId", + "description": "Community Resource Id.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "resourceCollection": { + "type": "array", + "description": "List of resource ids created by Virtual Enclave.", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + }, + "readOnly": true + }, + "managedResourceGroupName": { + "type": "string", + "description": "Managed resource group name.", + "readOnly": true + }, + "managedOnBehalfOfConfiguration": { + "$ref": "../../../../../common-types/resource-management/v5/mobo.json#/definitions/ManagedOnBehalfOfConfiguration", + "description": "Managed On Behalf Of Configuration.", + "readOnly": true + }, + "bastionEnabled": { + "type": "boolean", + "description": "Deploy Bastion service (True or False).", + "default": false + }, + "enclaveRoleAssignments": { + "type": "array", + "description": "Enclave role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "workloadRoleAssignments": { + "type": "array", + "description": "Workload role assignments", + "items": { + "$ref": "#/definitions/RoleAssignmentItem" + }, + "x-ms-identifiers": [] + }, + "governedServiceList": { + "type": "array", + "description": "Enclave specific policies", + "items": { + "$ref": "#/definitions/GovernedServiceItem" + }, + "x-ms-identifiers": [] + }, + "enclaveDefaultSettings": { + "$ref": "#/definitions/EnclaveDefaultSettingsModel", + "description": "Enclave default settings." + }, + "maintenanceModeConfiguration": { + "$ref": "#/definitions/MaintenanceModeConfigurationModel", + "description": "Maintenance Mode configuration." + } + }, + "required": [ + "enclaveVirtualNetwork", + "communityResourceId" + ] + }, + "VirtualNetworkResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks" + } + ] + } + }, + "WorkloadPatchModel": { + "type": "object", + "description": "Workload Patch Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadPatchProperties", + "description": "Workload Patch properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "WorkloadPatchProperties": { + "type": "object", + "description": "Workload patchable Properties", + "properties": { + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + } + } + }, + "WorkloadProperties": { + "type": "object", + "description": "Workload Resource properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning State.", + "readOnly": true + }, + "resourceGroupCollection": { + "type": "array", + "description": "List of resource group ids.", + "items": { + "type": "string" + } + }, + "managedOnBehalfOfConfiguration": { + "$ref": "../../../../../common-types/resource-management/v5/mobo.json#/definitions/ManagedOnBehalfOfConfiguration", + "description": "Managed On Behalf Of Configuration.", + "readOnly": true + } + } + }, + "WorkloadResource": { + "type": "object", + "description": "Workload Model Resource", + "properties": { + "properties": { + "$ref": "#/definitions/WorkloadProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "WorkloadResourceListResult": { + "type": "object", + "description": "The response of a WorkloadResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The WorkloadResource items on this page", + "items": { + "$ref": "#/definitions/WorkloadResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/mission/resource-manager/readme.az.md b/specification/mission/resource-manager/readme.az.md new file mode 100644 index 000000000000..55ce2d907c35 --- /dev/null +++ b/specification/mission/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: mission + namespace: azure.mgmt.mission + package-name: azure-mgmt-mission +az-output-folder: $(azure-cli-extension-folder)/src/mission +python-sdk-output-folder: "$(az-output-folder)/azext_mission/vendored_sdks/mission" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: mission + namespace: azure.mgmt.mission + package-name: azure-mgmt-mission +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/mission +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/mission" +``` \ No newline at end of file diff --git a/specification/mission/resource-manager/readme.cli.md b/specification/mission/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/mission/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/mission/resource-manager/readme.csharp.md b/specification/mission/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..f8860f65378e --- /dev/null +++ b/specification/mission/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.Mission + output-folder: $(csharp-sdks-folder)/mission/management/Microsoft.Mission/GeneratedProtocol +``` diff --git a/specification/mission/resource-manager/readme.go.md b/specification/mission/resource-manager/readme.go.md new file mode 100644 index 000000000000..33c3f3ca4132 --- /dev/null +++ b/specification/mission/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/mission/armmission +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/mission/resource-manager/readme.md b/specification/mission/resource-manager/readme.md new file mode 100644 index 000000000000..4e1b0d08c839 --- /dev/null +++ b/specification/mission/resource-manager/readme.md @@ -0,0 +1,96 @@ +# mission + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for mission. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +These are the global settings for the mission. + +```yaml +title: missionClient +openapi-type: arm +openapi-subtype: rpaas +tag: package-2025-05-01-preview +``` + +### Tag: package-2025-05-01-preview + +These settings apply only when `--tag=package-2025-05-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2025-05-01-preview' +input-file: + - Microsoft.Mission/preview/2025-05-01-preview/openapi.json +``` + +### Tag: package-2024-12-01-preview + +These settings apply only when `--tag=package-2024-12-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-12-01-preview' +input-file: + - Microsoft.Mission/preview/2024-12-01-preview/openapi.json +``` + +### Tag: package-2024-06-01-preview + +These settings apply only when `--tag=package-2024-06-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-06-01-preview' +input-file: + - Microsoft.Mission/preview/2024-06-01-preview/openapi.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` + +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/mission/resource-manager/readme.python.md b/specification/mission/resource-manager/readme.python.md new file mode 100644 index 000000000000..d838cd3fdcff --- /dev/null +++ b/specification/mission/resource-manager/readme.python.md @@ -0,0 +1,18 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-mission +namespace: azure.mgmt.mission +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/mission/azure-mgmt-mission/azure/mgmt/mission +``` diff --git a/specification/mission/resource-manager/readme.typescript.md b/specification/mission/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..d12b48fd3cdf --- /dev/null +++ b/specification/mission/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-mission" + output-folder: "$(typescript-sdks-folder)/sdk/mission/arm-mission" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```