From 8cef6f26fe332f4d3b37a9cc9511396d89eb73f7 Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Wed, 31 Aug 2022 16:56:50 -0700 Subject: [PATCH 1/9] New networkManagerGroupMembership API --- .../examples/NetworkGroupMembershipGet.json | 43 ++ .../preview/2022-06-01-preview/network.json | 439 ++++++++++++++++++ .../networkManagerGroupMembership.json | 205 ++++++++ 3 files changed, 687 insertions(+) create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json new file mode 100644 index 000000000000..dad135049736 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2022-06-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "virtualNetworkName": "testVirtualNetwork" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/testVirtualNetwork/providers/Microsoft.Network/networkGroupMemberships/Default", + "type": "Microsoft.Network/networkGroupMemberships", + "location": "useast", + "properties": { + "GroupMemberships": [ + { + "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng", + "Sources":[ + { + "Type": "StaticMembership", + "StaticMemberId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng/staticMembers/testsm" + } + ] + }, + { + "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng2", + "Sources":[ + { + "Type": "Policy", + "PolicyAssignmentId": "TestPolicyAssignmentId", + "PolicySetDefinitionId": "TestPolicySetDefinitionId", + "PolicyDefinitionId": "TestPolicyDefinitionId", + "PolicyDefinitionReferenceId": "TestDefinitionReferenceId"" + } + ] + } + ] + } + + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json new file mode 100644 index 000000000000..6228a3345508 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json @@ -0,0 +1,439 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagementClient", + "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", + "version": "2022-04-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ErrorDetails": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "message": { + "type": "string", + "description": "Error message." + } + }, + "description": "Common error details representation." + }, + "Error": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "message": { + "type": "string", + "description": "Error message." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + }, + "description": "Error details." + }, + "innerError": { + "type": "string", + "description": "Inner error message." + } + }, + "description": "Common error representation." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Cloud error body." + } + }, + "description": "An error response from the service." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + }, + "AzureAsyncOperationResult": { + "properties": { + "status": { + "type": "string", + "description": "Status of the Azure async operation.", + "enum": [ + "InProgress", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "NetworkOperationStatus", + "modelAsString": true + } + }, + "error": { + "$ref": "#/definitions/Error", + "description": "Details of the error occurred during specified asynchronous operation." + } + }, + "description": "The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure." + }, + "Resource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Common resource representation.", + "x-ms-azure-resource": true + }, + "ProxyResource": { + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "description": "Proxy resource representation.", + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Reference to another subresource.", + "x-ms-azure-resource": true + }, + "TagsObject": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } + }, + "ManagedServiceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Updating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "Access": { + "type": "string", + "description": "Access to be allowed or denied.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "Access", + "modelAsString": true + } + }, + "AuthenticationMethod": { + "type": "string", + "description": "VPN client authentication method.", + "enum": [ + "EAPTLS", + "EAPMSCHAPv2" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "IPAllocationMethod": { + "type": "string", + "description": "IP address allocation method.", + "enum": [ + "Static", + "Dynamic" + ], + "x-ms-enum": { + "name": "IPAllocationMethod", + "modelAsString": true + } + }, + "IPVersion": { + "type": "string", + "description": "IP address version.", + "enum": [ + "IPv4", + "IPv6" + ], + "x-ms-enum": { + "name": "IPVersion", + "modelAsString": true + } + }, + "ExtendedLocationType": { + "type": "string", + "description": "The supported ExtendedLocation types. Currently only EdgeZone is supported in Microsoft.Network resources.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "ExtendedLocation complex type.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." + }, + "ApiVersionVmssParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "2017-03-30" + ], + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + }, + "description": "Client API version." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json new file mode 100644 index 000000000000..518d0c9913d6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -0,0 +1,205 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagerGroupMembership", + "description": "The Microsoft Azure Network Manager Group Membership API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", + "version": "2022-06-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/providers/Microsoft.Network/networkGroupMemberships/Default": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "NetworkGroupMemberships_Get" + ], + "operationId": "GetNetworkGroupMemberships", + "description": "Get networkGroupMemberships applied on a virtual network.", + "responses": { + "200": { + "description": "OK - Returns information about the configurations.", + "schema": { + "$ref": "#/definitions/NetworkGroupMembership" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List network group memberships": { + "$ref": "./examples/NetworkGroupMembershipsList.json" + } + } + } + } + }, + "definitions": { + "NetworkGroupMembership": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkGroupMembershipProperties", + "description": "The network group membership properties" + }, + "id": { + "type": "string", + "description": "Resource ID." + }, + "location": { + "type": "string", + "description": "Resource Location." + } + }, + "description": "Resource of networkGroupMembership." + }, + "NetworkGroupMembershipProperties": { + "type": "object", + "properties": { + "GroupMemberships": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkGroupMembershipGroup" + }, + "description": "GroupMembership list" + } + }, + "description": "Network Group Membership Properties." + }, + "NetworkGroupMembershipGroup": { + "type": "object", + "properties": { + "networkGroupId": { + "type": "string", + "description": "network Group ID." + }, + "Sources": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseNetworkGroupMembershipSource" + }, + "description": "Source list" + } + }, + "description": "The network manager effective connectivity configuration" + }, + "BaseNetworkGroupMembershipSource": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "description": "Whether the NetworkGroupMembershipSource is StaticMembership or Policy.", + "enum": [ + "StaticMembership", + "Policy" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": true + } + } + }, + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Base Network Group Membership Source." + }, + "StaticNetworkGroupMembershipSource": { + "type": "object", + "properties": { + "StaticMemberId": { + "type": "string", + "description": "Static Member Id." + } + }, + "description": "Static Network Group Membership Source.", + "x-ms-discriminator-value": "StaticMembership" + }, + "PolicyNetworkGroupMembershipSource": { + "type": "object", + "properties": { + "PolicyAssignmentId": { + "type": "string", + "description": "Policy Assignment Id." + }, + "PolicySetDefinitionId": { + "type": "string", + "description": "Policy Set Definition Id." + }, + "PolicyDefinitionId": { + "type": "string", + "description": "Policy Definition Id." + }, + "PolicyDefinitionReferenceId": { + "type": "string", + "description": "Policy Definition Reference Id." + } + }, + "description": "Policy Membership Source.", + "x-ms-discriminator-value": "Policy" + } + }, + "parameters": { + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "VirtualNetworkNameParameter": { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network.", + "x-ms-parameter-location": "method" + } + } +} From 60dd3c889766fd0a0cc9034256b5e2379b9f8e1e Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Wed, 31 Aug 2022 17:01:57 -0700 Subject: [PATCH 2/9] fix typo --- .../2022-06-01-preview/examples/NetworkGroupMembershipGet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json index dad135049736..f491873b8b88 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json @@ -30,7 +30,7 @@ "PolicyAssignmentId": "TestPolicyAssignmentId", "PolicySetDefinitionId": "TestPolicySetDefinitionId", "PolicyDefinitionId": "TestPolicyDefinitionId", - "PolicyDefinitionReferenceId": "TestDefinitionReferenceId"" + "PolicyDefinitionReferenceId": "TestDefinitionReferenceId" } ] } From f6a8e5ce36b8e9dea2c9dacd836cc22668746d38 Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Wed, 21 Dec 2022 15:56:21 -0800 Subject: [PATCH 3/9] New List NetworkGroupMembership API --- .../examples/NetworkGroupMembershipGet.json | 43 --------- .../examples/NetworkGroupMembershipsList.json | 47 ++++++++++ .../preview/2022-06-01-preview/network.json | 2 +- .../networkManagerGroupMembership.json | 91 +++++++++++++++---- .../network/resource-manager/readme.md | 73 +++++++++++++++ 5 files changed, 196 insertions(+), 60 deletions(-) delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json deleted file mode 100644 index f491873b8b88..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipGet.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "virtualNetworkName": "testVirtualNetwork" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/testVirtualNetwork/providers/Microsoft.Network/networkGroupMemberships/Default", - "type": "Microsoft.Network/networkGroupMemberships", - "location": "useast", - "properties": { - "GroupMemberships": [ - { - "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng", - "Sources":[ - { - "Type": "StaticMembership", - "StaticMemberId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng/staticMembers/testsm" - } - ] - }, - { - "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng2", - "Sources":[ - { - "Type": "Policy", - "PolicyAssignmentId": "TestPolicyAssignmentId", - "PolicySetDefinitionId": "TestPolicySetDefinitionId", - "PolicyDefinitionId": "TestPolicyDefinitionId", - "PolicyDefinitionReferenceId": "TestDefinitionReferenceId" - } - ] - } - ] - } - - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json new file mode 100644 index 000000000000..221bb44bf36e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2022-06-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "virtualNetworkName": "testVirtualNetwork" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/testVirtualNetwork/providers/Microsoft.Network/networkGroupMemberships/Default", + "type": "Microsoft.Network/networkGroupMemberships", + "name": "Default", + "location": "useast", + "properties": { + "GroupMemberships": [ + { + "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng", + "Sources": [ + { + "Type": "StaticMembership", + "StaticMemberId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng/staticMembers/testsm" + } + ] + }, + { + "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng2", + "Sources": [ + { + "Type": "Policy", + "PolicyAssignmentId": "TestPolicyAssignmentId", + "PolicySetDefinitionId": "TestPolicySetDefinitionId", + "PolicyDefinitionId": "TestPolicyDefinitionId", + "PolicyDefinitionReferenceId": "TestDefinitionReferenceId" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json index 6228a3345508..c9382aeb0de8 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/network.json @@ -3,7 +3,7 @@ "info": { "title": "NetworkManagementClient", "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", - "version": "2022-04-01-preview" + "version": "2022-06-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json index 518d0c9913d6..d07331b3c07a 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/providers/Microsoft.Network/networkGroupMemberships/Default": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/providers/Microsoft.Network/networkGroupMemberships": { "parameters": [ { "$ref": "./network.json#/parameters/SubscriptionIdParameter" @@ -47,19 +47,25 @@ }, { "$ref": "./network.json#/parameters/ApiVersionParameter" - } + }, + { + "$ref": "./network.json#/parameters/FirstIndexParameter" + }, + { + "$ref": "./network.json#/parameters/PageSizeParameter" + }, ], "get": { "tags": [ - "NetworkGroupMemberships_Get" + "NetworkGroupMemberships_List" ], - "operationId": "GetNetworkGroupMemberships", - "description": "Get networkGroupMemberships applied on a virtual network.", + "operationId": "ListNetworkGroupMemberships", + "description": "List networkGroupMemberships applied on a virtual network.", "responses": { "200": { "description": "OK - Returns information about the configurations.", "schema": { - "$ref": "#/definitions/NetworkGroupMembership" + "$ref": "#/definitions/NetworkGroupMembershipsListResult" } }, "default": { @@ -78,6 +84,23 @@ } }, "definitions": { + "NetworkGroupMembershipsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkGroupMembership" + }, + "description": "Gets a page of NetworkGroupMembership" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "Result of the request to list NetworkGroupMembership." + }, "NetworkGroupMembership": { "type": "object", "properties": { @@ -90,9 +113,24 @@ "type": "string", "description": "Resource ID." }, - "location": { + "location": { "type": "string", "description": "Resource Location." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" } }, "description": "Resource of networkGroupMembership." @@ -153,7 +191,7 @@ "type": "object", "properties": { "StaticMemberId": { - "type": "string", + "type": "string", "description": "Static Member Id." } }, @@ -164,19 +202,19 @@ "type": "object", "properties": { "PolicyAssignmentId": { - "type": "string", + "type": "string", "description": "Policy Assignment Id." }, - "PolicySetDefinitionId": { - "type": "string", + "PolicySetDefinitionId": { + "type": "string", "description": "Policy Set Definition Id." }, - "PolicyDefinitionId": { - "type": "string", + "PolicyDefinitionId": { + "type": "string", "description": "Policy Definition Id." }, - "PolicyDefinitionReferenceId": { - "type": "string", + "PolicyDefinitionReferenceId": { + "type": "string", "description": "Policy Definition Reference Id." } }, @@ -200,6 +238,27 @@ "type": "string", "description": "The name of the virtual network.", "x-ms-parameter-location": "method" - } + }, + "PageSizeParameter": { + "name": "pageSize", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 20, + "x-ms-parameter-location": "method" + }, + "FirstIndexParameter": { + "name": "firstIndex", + "description": "An optional query parameter which specifies the first index of records to be returned by the server.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 0, + "x-ms-parameter-location": "method" + } } } diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index d923bf1c2851..414597c64aa4 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -32,6 +32,79 @@ tag: package-2022-07 ``` +### Tag: package-2022-06-preview + +These settings apply only when `--tag=package-2022-06-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-06-preview' +input-file: + - Microsoft.Network/preview/2022-06-01-preview/network.json + - Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json + - Microsoft.Network/stable/2022-07-01/applicationGateway.json + - Microsoft.Network/stable/2022-07-01/applicationGatewayWafDynamicManifests.json + - Microsoft.Network/stable/2022-07-01/applicationSecurityGroup.json + - Microsoft.Network/stable/2022-07-01/availableDelegations.json + - Microsoft.Network/stable/2022-07-01/availableServiceAliases.json + - Microsoft.Network/stable/2022-07-01/azureFirewall.json + - Microsoft.Network/stable/2022-07-01/azureFirewallFqdnTag.json + - Microsoft.Network/stable/2022-07-01/azureWebCategory.json + - Microsoft.Network/stable/2022-07-01/bastionHost.json + - Microsoft.Network/stable/2022-07-01/checkDnsAvailability.json + - Microsoft.Network/stable/2022-07-01/cloudServiceNetworkInterface.json + - Microsoft.Network/stable/2022-07-01/cloudServicePublicIpAddress.json + - Microsoft.Network/stable/2022-07-01/cloudServiceSwap.json + - Microsoft.Network/stable/2022-07-01/customIpPrefix.json + - Microsoft.Network/stable/2022-07-01/ddosCustomPolicy.json + - Microsoft.Network/stable/2022-07-01/ddosProtectionPlan.json + - Microsoft.Network/stable/2022-07-01/dscpConfiguration.json + - Microsoft.Network/stable/2022-07-01/endpointService.json + - Microsoft.Network/stable/2022-07-01/expressRouteCircuit.json + - Microsoft.Network/stable/2022-07-01/expressRouteCrossConnection.json + - Microsoft.Network/stable/2022-07-01/expressRoutePort.json + - Microsoft.Network/stable/2022-07-01/expressRouteProviderPort.json + - Microsoft.Network/stable/2022-07-01/firewallPolicy.json + - Microsoft.Network/stable/2022-07-01/ipAllocation.json + - Microsoft.Network/stable/2022-07-01/ipGroups.json + - Microsoft.Network/stable/2022-07-01/loadBalancer.json + - Microsoft.Network/stable/2022-07-01/natGateway.json + - Microsoft.Network/stable/2022-07-01/network.json + - Microsoft.Network/stable/2022-07-01/networkInterface.json + - Microsoft.Network/stable/2022-07-01/networkManager.json + - Microsoft.Network/stable/2022-07-01/networkManagerActiveConfiguration.json + - Microsoft.Network/stable/2022-07-01/networkManagerConnection.json + - Microsoft.Network/stable/2022-07-01/networkManagerConnectivityConfiguration.json + - Microsoft.Network/stable/2022-07-01/networkManagerEffectiveConfiguration.json + - Microsoft.Network/stable/2022-07-01/networkManagerGroup.json + - Microsoft.Network/stable/2022-07-01/networkManagerScopeConnection.json + - Microsoft.Network/stable/2022-07-01/networkManagerSecurityAdminConfiguration.json + - Microsoft.Network/stable/2022-07-01/networkProfile.json + - Microsoft.Network/stable/2022-07-01/networkSecurityGroup.json + - Microsoft.Network/stable/2022-07-01/networkVirtualAppliance.json + - Microsoft.Network/stable/2022-07-01/networkWatcher.json + - Microsoft.Network/stable/2022-07-01/operation.json + - Microsoft.Network/stable/2022-07-01/privateEndpoint.json + - Microsoft.Network/stable/2022-07-01/privateLinkService.json + - Microsoft.Network/stable/2022-07-01/publicIpAddress.json + - Microsoft.Network/stable/2022-07-01/publicIpPrefix.json + - Microsoft.Network/stable/2022-07-01/routeFilter.json + - Microsoft.Network/stable/2022-07-01/routeTable.json + - Microsoft.Network/stable/2022-07-01/securityPartnerProvider.json + - Microsoft.Network/stable/2022-07-01/serviceCommunity.json + - Microsoft.Network/stable/2022-07-01/serviceEndpointPolicy.json + - Microsoft.Network/stable/2022-07-01/serviceTags.json + - Microsoft.Network/stable/2022-07-01/usage.json + - Microsoft.Network/stable/2022-07-01/virtualNetwork.json + - Microsoft.Network/stable/2022-07-01/virtualNetworkGateway.json + - Microsoft.Network/stable/2022-07-01/virtualNetworkTap.json + - Microsoft.Network/stable/2022-07-01/virtualRouter.json + - Microsoft.Network/stable/2022-07-01/virtualWan.json + - Microsoft.Network/stable/2022-07-01/vmssNetworkInterface.json + - Microsoft.Network/stable/2022-07-01/vmssPublicIpAddress.json + - Microsoft.Network/stable/2022-07-01/webapplicationfirewall.json +``` + + + ### Tag: package-2022-07 These settings apply only when `--tag=package-2022-07` is specified on the command line. From 3ba2e734f94b4df0121750c3ae1ac2c0ca3b3f5e Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Thu, 22 Dec 2022 14:47:11 -0800 Subject: [PATCH 4/9] fix --- .../2022-06-01-preview/networkManager.json | 816 ------------ .../networkManagerActiveConfiguration.json | 490 ------- .../networkManagerConnection.json | 426 ------ ...tworkManagerConnectivityConfiguration.json | 453 ------- .../networkManagerEffectiveConfiguration.json | 320 ----- .../networkManagerGroup.json | 713 ----------- .../networkManagerGroupMembership.json | 4 +- .../networkManagerScopeConnection.json | 297 ----- ...workManagerSecurityAdminConfiguration.json | 1137 ----------------- ...tworkManagerSecurityUserConfiguration.json | 1030 --------------- 10 files changed, 2 insertions(+), 5684 deletions(-) delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManager.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerActiveConfiguration.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnection.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnectivityConfiguration.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerEffectiveConfiguration.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroup.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerScopeConnection.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityAdminConfiguration.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityUserConfiguration.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManager.json deleted file mode 100644 index 00295a484c05..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManager.json +++ /dev/null @@ -1,816 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NetworkManager", - "description": "The Microsoft Azure Virtual Network Manager API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_Get", - "description": "Gets the specified Network Manager.", - "responses": { - "200": { - "description": "OK - Returns information about the network manager.", - "schema": { - "$ref": "#/definitions/NetworkManager" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkManagersGet": { - "$ref": "./examples/NetworkManagerGet.json" - } - } - }, - "put": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_CreateOrUpdate", - "description": "Creates or updates a Network Manager.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkManager" - }, - "description": "Parameters supplied to specify which network manager is." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the network manager.", - "schema": { - "$ref": "#/definitions/NetworkManager" - } - }, - "201": { - "description": "Created - Returns information about the network manager.", - "schema": { - "$ref": "#/definitions/NetworkManager" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Put Network Manager": { - "$ref": "./examples/NetworkManagerPut.json" - } - } - }, - "delete": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "description": "Deletes a network manager.", - "responses": { - "200": { - "description": "Delete Succeed." - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "NetworkManagersDelete": { - "$ref": "./examples/NetworkManagerDelete.json" - } - } - }, - "patch": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_Patch", - "description": "Patch NetworkManager.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PatchObject" - }, - "description": "Parameters supplied to specify which network manager is." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the network manager.", - "schema": { - "$ref": "#/definitions/NetworkManager" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkManagesPatch": { - "$ref": "./examples/NetworkManagerPatch.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "post": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagerCommits_Post", - "description": "Post a Network Manager Commit.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkManagerCommit" - }, - "description": "Parameters supplied to specify which Managed Network commit is." - } - ], - "responses": { - "200": { - "description": "Succeed.", - "schema": { - "$ref": "#/definitions/NetworkManagerCommit" - } - }, - "202": { - "description": "Accepted and the operation will complete asynchronously", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/NetworkManagerCommit" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "NetworkManageCommitPost": { - "$ref": "./examples/NetworkManagerCommitPost.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "post": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagerDeploymentStatus_List", - "description": "Post to List of Network Manager Deployment Status.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkManagerDeploymentStatusParameter" - }, - "description": "Parameters supplied to specify which Managed Network deployment status is." - } - ], - "responses": { - "200": { - "description": "OK - Returns a list of deployment status.", - "schema": { - "$ref": "#/definitions/NetworkManagerDeploymentStatusListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkManagerDeploymentStatusList": { - "$ref": "./examples/NetworkManagerDeploymentStatusList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers": { - "get": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_ListBySubscription", - "description": "List all network managers in a subscription.", - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the network managers.", - "schema": { - "$ref": "#/definitions/NetworkManagerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "NetworkManagersList": { - "$ref": "./examples/NetworkManagerListAll.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers": { - "get": { - "tags": [ - "NetworkManagers" - ], - "operationId": "NetworkManagers_List", - "description": "List network managers in a resource group.", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns a list of network managers.", - "schema": { - "$ref": "#/definitions/NetworkManagerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Network Manager": { - "$ref": "./examples/NetworkManagerList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listEffectiveVirtualNetworks": { - "post": { - "tags": [ - "NetworkManagers" - ], - "operationId": "EffectiveVirtualNetworks_ListByNetworkManager", - "description": "List effective virtual networks in a network manager.", - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EffectiveVirtualNetworksParameter" - }, - "description": "Effective Virtual Networks Parameter." - } - ], - "responses": { - "200": { - "description": "OK - Returns a list of effective virtual networks.", - "schema": { - "$ref": "./networkManagerGroup.json#/definitions/EffectiveVirtualNetworksListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Effective Virtual Networks By Network Manager": { - "$ref": "./examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json" - } - } - } - } - }, - "definitions": { - "NetworkManager": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkManagerProperties", - "description": "The network manager properties" - }, - "etag": { - "readOnly": true, - "type": "string", - "description": "A unique read-only string that changes whenever the resource is updated." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/Resource" - } - ], - "description": "The Managed Network resource" - }, - "NetworkManagerListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NetworkManager" - }, - "description": "Gets a page of NetworkManager" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "Result of the request to list NetworkManager. It contains a list of network managers and a URL link to get the next set of results." - }, - "NetworkManagerProperties": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the network manager." - }, - "networkManagerScopes": { - "type": "object", - "properties": { - "managementGroups": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of management groups." - }, - "subscriptions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of subscriptions." - }, - "crossTenantScopes": { - "readOnly": true, - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/CrossTenantScopes" - }, - "description": "List of cross tenant scopes." - } - }, - "description": "Scope of Network Manager." - }, - "networkManagerScopeAccesses": { - "type": "array", - "items": { - "type": "string", - "$ref": "#/definitions/ConfigurationType" - }, - "description": "Scope Access." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the scope assignment resource." - } - }, - "required": [ - "networkManagerScopes", - "networkManagerScopeAccesses" - ], - "description": "Properties of Managed Network" - }, - "CrossTenantScopes": { - "type": "object", - "properties": { - "tenantId": { - "readOnly": true, - "type": "string", - "description": "Tenant ID." - }, - "managementGroups": { - "type": "array", - "readOnly": true, - "items": { - "type": "string" - }, - "description": "List of management groups." - }, - "subscriptions": { - "type": "array", - "readOnly": true, - "items": { - "type": "string" - }, - "description": "List of subscriptions." - } - }, - "description": "Cross tenant scopes." - }, - "NetworkManagerCommit": { - "type": "object", - "properties": { - "commitId": { - "type": "string", - "readOnly": true, - "description": "Commit Id." - }, - "targetLocations": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of target locations." - }, - "configurationIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of configuration ids." - }, - "commitType": { - "type": "string", - "$ref": "#/definitions/ConfigurationType", - "description": "Commit Type." - } - }, - "required": [ - "targetLocations" - ], - "description": "Network Manager Commit." - }, - "PatchObject": { - "type": "object", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "description": "Object for patch operations." - }, - "NetworkManagerDeploymentStatusParameter": { - "type": "object", - "properties": { - "regions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of locations." - }, - "deploymentTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigurationType" - }, - "description": "List of deployment types." - }, - "skipToken": { - "description": "Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.", - "type": "string" - } - }, - "description": "Network Manager Deployment Status Parameter." - }, - "NetworkManagerDeploymentStatusListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/NetworkManagerDeploymentStatus" - }, - "description": "Gets a page of Network Manager Deployment Status" - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "A list of Network Manager Deployment Status" - }, - "NetworkManagerDeploymentStatus": { - "type": "object", - "properties": { - "commitTime": { - "type": "string", - "format": "date-time", - "description": "Commit Time." - }, - "region": { - "type": "string", - "description": "Region Name." - }, - "deploymentStatus": { - "type": "string", - "enum": [ - "NotStarted", - "Deploying", - "Deployed", - "Failed" - ], - "x-ms-enum": { - "name": "DeploymentStatus", - "modelAsString": true - }, - "description": "Deployment Status." - }, - "configurationIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of configuration ids." - }, - "deploymentType": { - "type": "string", - "$ref": "#/definitions/ConfigurationType" - }, - "errorMessage": { - "type": "string", - "description": "Error Message." - } - }, - "description": "Network Manager Deployment Status." - }, - "ConfigurationType": { - "type": "string", - "enum": [ - "SecurityAdmin", - "SecurityUser", - "Connectivity" - ], - "x-ms-enum": { - "name": "ConfigurationType", - "modelAsString": true - }, - "description": "Configuration Deployment Type." - }, - "EffectiveVirtualNetworksParameter": { - "type": "object", - "properties": { - "conditionalMembers": { - "type": "string", - "description": "Conditional Members." - }, - "skipToken": { - "description": "Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.", - "type": "string" - } - }, - "description": "Effective Virtual Networks Parameter." - } - }, - "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, - "OperationResultIdParameter": { - "name": "operationResultId", - "in": "path", - "required": true, - "type": "string", - "description": "The id of operation Result.", - "x-ms-parameter-location": "method" - }, - "ListTopParameter": { - "name": "$top", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "ListSkipTokenParameter": { - "name": "$skipToken", - "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ForceDeleteParameter": { - "name": "force", - "in": "query", - "required": false, - "type": "boolean", - "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerActiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerActiveConfiguration.json deleted file mode 100644 index b5ff35d60f19..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerActiveConfiguration.json +++ /dev/null @@ -1,490 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NetworkManagerActiveConfiguration", - "description": "The Microsoft Azure Network Manager Active Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to list all active configuration by network manager.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - } - ], - "post": { - "tags": [ - "NetworkManagerActiveConnectivityConfigurations" - ], - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." - } - ], - "operationId": "ListActiveConnectivityConfigurations", - "description": "Lists active connectivity configurations in a network manager.", - "responses": { - "200": { - "description": "Post successful. The operation returns the specified Managed Network active connectivity configuration resource.", - "schema": { - "$ref": "#/definitions/ActiveConnectivityConfigurationsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Active Connectivity Configurations": { - "$ref": "./examples/NetworkManagerActiveConnectivityConfigurationsList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - } - ], - "post": { - "tags": [ - "NetworkManagerActiveConfigurations" - ], - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." - } - ], - "operationId": "ListActiveSecurityAdminRules", - "description": "Lists active security admin rules in a network manager.", - "responses": { - "200": { - "description": "Post successful. The operation returns the specified Managed Network active security admin rules resource.", - "schema": { - "$ref": "#/definitions/ActiveSecurityAdminRulesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Active Security Admin Rules": { - "$ref": "./examples/NetworkManagerActiveSecurityAdminRulesList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityUserRules": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - } - ], - "post": { - "tags": [ - "NetworkManagerActiveSecurityUserRules" - ], - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." - } - ], - "operationId": "ListActiveSecurityUserRules", - "description": "Lists Active Security User Rules in a network manager.", - "responses": { - "200": { - "description": "Post successful. The operation returns the specified Managed Network active security user rules resource.", - "schema": { - "$ref": "#/definitions/ActiveSecurityUserRulesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Active Security User Rules": { - "$ref": "./examples/NetworkManagerActiveSecurityUserRulesList.json" - } - } - } - } - }, - "definitions": { - "ActiveConfigurationParameter": { - "type": "object", - "properties": { - "regions": { - "type": "array", - "items": { - "type": "string", - "description": "region Name." - }, - "description": "List of regions." - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Effective Virtual Networks Parameter." - }, - "ActiveConnectivityConfiguration": { - "type": "object", - "properties": { - "commitTime": { - "type": "string", - "description": "Deployment time string.", - "format": "date-time" - }, - "region": { - "type": "string", - "description": "Deployment region." - } - }, - "allOf": [ - { - "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/EffectiveConnectivityConfiguration" - } - ], - "description": "Active connectivity configuration." - }, - "ActiveConnectivityConfigurationsListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActiveConnectivityConfiguration" - }, - "description": "Gets a page of active connectivity configurations." - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list active connectivity configurations. It contains a list of active connectivity configurations and a skiptoken to get the next set of results." - }, - "ActiveSecurityAdminRulesListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActiveBaseSecurityAdminRule" - }, - "description": "Gets a page of active security admin rules." - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results." - }, - "ActiveSecurityUserRulesListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActiveBaseSecurityUserRule" - }, - "description": "Gets a page of active security user rules." - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list active security user rules. It contains a list of active security user rules and a skiptoken to get the next set of results." - }, - "ActiveBaseSecurityAdminRule": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID." - }, - "commitTime": { - "type": "string", - "description": "Deployment time string.", - "format": "date-time" - }, - "region": { - "type": "string", - "description": "Deployment region." - }, - "configurationDescription": { - "type": "string", - "description": "A description of the security admin configuration." - }, - "ruleCollectionDescription": { - "type": "string", - "description": "A description of the rule collection." - }, - "ruleCollectionAppliesToGroups": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" - }, - "description": "Groups for rule collection" - }, - "ruleGroups": { - "type": "array", - "items": { - "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/ConfigurationGroup" - }, - "description": "Effective configuration groups." - }, - "kind": { - "type": "string", - "description": "Whether the rule is custom or default.", - "enum": [ - "Custom", - "Default" - ], - "x-ms-enum": { - "name": "EffectiveAdminRuleKind", - "modelAsString": true - } - } - }, - "required": [ - "kind" - ], - "discriminator": "kind", - "description": "Network base admin rule." - }, - "ActiveSecurityAdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ActiveBaseSecurityAdminRule" - } - ], - "description": "Network admin rule.", - "x-ms-discriminator-value": "Custom" - }, - "ActiveDefaultSecurityAdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/DefaultAdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the default security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ActiveBaseSecurityAdminRule" - } - ], - "description": "Network default admin rule.", - "x-ms-discriminator-value": "Default" - }, - "ActiveBaseSecurityUserRule": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID." - }, - "commitTime": { - "type": "string", - "description": "Deployment time string.", - "format": "date-time" - }, - "region": { - "type": "string", - "description": "Deployment region." - }, - "configurationDescription": { - "type": "string", - "description": "A description of the security user configuration." - }, - "ruleCollectionDescription": { - "type": "string", - "description": "A description of the rule collection." - }, - "ruleCollectionAppliesToGroups": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" - }, - "description": "Groups for rule collection" - }, - "ruleGroups": { - "type": "array", - "items": { - "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/ConfigurationGroup" - }, - "description": "Effective configuration groups." - }, - "kind": { - "type": "string", - "description": "Whether the rule is custom or default.", - "enum": [ - "Custom", - "Default" - ], - "x-ms-enum": { - "name": "EffectiveUserRuleKind", - "modelAsString": true - } - } - }, - "required": [ - "kind" - ], - "discriminator": "kind", - "description": "Network base rule." - }, - "ActiveSecurityUserRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityUserConfiguration.json#/definitions/UserRulePropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security user rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ActiveBaseSecurityUserRule" - } - ], - "description": "Network security user rule.", - "x-ms-discriminator-value": "Custom" - }, - "ActiveDefaultSecurityUserRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityUserConfiguration.json#/definitions/DefaultUserRulePropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security default user rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ActiveBaseSecurityUserRule" - } - ], - "description": "Network security default user rule.", - "x-ms-discriminator-value": "Default" - } - }, - "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnection.json deleted file mode 100644 index fbaf3b1d05de..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnection.json +++ /dev/null @@ -1,426 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ScopeConnections", - "description": "The Microsoft Azure Virtual Network Manager API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/NetworkManagerConnectionNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "put": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "SubscriptionNetworkManagerConnections_CreateOrUpdate", - "description": "Create a connection from this subscription to a cross tenant network manager.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - }, - "description": "Network manager connection to be created/updated." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "201": { - "description": "Created - Returns information about the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create or Update Subscription Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionSubscriptionPut.json" - } - } - }, - "get": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "SubscriptionNetworkManagerConnections_Get", - "description": "Get a specified connection created by this subscription.", - "responses": { - "200": { - "description": "OK - Returns the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get Subscription Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionSubscriptionGet.json" - } - } - }, - "delete": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "SubscriptionNetworkManagerConnections_Delete", - "description": "Delete specified pending connection created by this subscription.", - "responses": { - "200": { - "description": "Delete Succeed." - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Delete Subscription Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionSubscriptionDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections": { - "get": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "SubscriptionNetworkManagerConnections_List", - "description": "List all network manager connections created by this subscription.", - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListTopParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the network manager connection(s).", - "schema": { - "$ref": "#/definitions/NetworkManagerConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List Subscription Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionSubscriptionList.json" - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}": { - "parameters": [ - { - "$ref": "#/parameters/ManagementGroupIdParameter" - }, - { - "$ref": "#/parameters/NetworkManagerConnectionNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "put": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "ManagementGroupNetworkManagerConnections_CreateOrUpdate", - "description": "Create a connection to a cross tenant network manager.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - }, - "description": "Network manager connection to be created/updated." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "201": { - "description": "Created - Returns information about the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create or Update Management Group Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionManagementGroupPut.json" - } - } - }, - "get": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "ManagementGroupNetworkManagerConnections_Get", - "description": "Get a specified connection created by this management group.", - "responses": { - "200": { - "description": "OK - Returns the connection.", - "schema": { - "$ref": "#/definitions/NetworkManagerConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get Management Group Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionManagementGroupGet.json" - } - } - }, - "delete": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "ManagementGroupNetworkManagerConnections_Delete", - "description": "Delete specified pending connection created by this management group.", - "responses": { - "200": { - "description": "Delete Succeed." - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Delete Management Group Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionManagementGroupDelete.json" - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections": { - "get": { - "tags": [ - "NetworkManagerConnections" - ], - "operationId": "ManagementGroupNetworkManagerConnections_List", - "description": "List all network manager connections created by this management group.", - "parameters": [ - { - "$ref": "#/parameters/ManagementGroupIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListTopParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the network manager connection(s).", - "schema": { - "$ref": "#/definitions/NetworkManagerConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List Management Group Network Manager Connection": { - "$ref": "./examples/NetworkManagerConnectionManagementGroupList.json" - } - } - } - } - }, - "definitions": { - "NetworkManagerConnection": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkManagerConnectionProperties", - "description": "The scope connection properties" - }, - "etag": { - "readOnly": true, - "type": "string", - "description": "A unique read-only string that changes whenever the resource is updated." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "The Network Manager Connection resource" - }, - "NetworkManagerConnectionProperties": { - "type": "object", - "properties": { - "networkManagerId": { - "type": "string", - "description": "Network Manager Id." - }, - "connectionState": { - "x-ms-client-flatten": true, - "$ref": "./networkManagerScopeConnection.json#/definitions/ConnectionState", - "description": "Connection state." - }, - "description": { - "type": "string", - "description": "A description of the scope connection." - } - }, - "description": "Information about the network manager connection." - }, - "NetworkManagerConnectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NetworkManagerConnection" - }, - "description": "List of network manager connections." - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "List of network manager connections." - } - }, - "parameters": { - "ManagementGroupIdParameter": { - "name": "managementGroupId", - "in": "path", - "required": true, - "type": "string", - "description": "The management group Id which uniquely identify the Microsoft Azure management group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerConnectionNameParameter": { - "name": "networkManagerConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "Name for the network manager connection.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnectivityConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnectivityConfiguration.json deleted file mode 100644 index 3b0c6ddf01a6..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerConnectivityConfiguration.json +++ /dev/null @@ -1,453 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ConnectivityConfiguration", - "description": "The Microsoft Azure Virtual Network Manager Connectivity Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ConnectivityConfigurationNameParameter" - } - ], - "get": { - "tags": [ - "ConnectivityConfigurations" - ], - "operationId": "ConnectivityConfigurations_Get", - "description": "Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and connectivity Configuration name", - "responses": { - "200": { - "description": "Get successful. The operation returns the specified Managed Network Connectivity Configuration resource.", - "schema": { - "$ref": "#/definitions/ConnectivityConfiguration" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ConnectivityConfigurationsGet": { - "$ref": "./examples/NetworkManagerConnectivityConfigurationGet.json" - } - } - }, - "put": { - "tags": [ - "ConnectivityConfigurations" - ], - "operationId": "ConnectivityConfigurations_CreateOrUpdate", - "description": "Creates/Updates a new network manager connectivity configuration", - "parameters": [ - { - "name": "connectivityConfiguration", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ConnectivityConfiguration" - }, - "description": "Parameters supplied to create/update a network manager connectivity configuration" - } - ], - "responses": { - "200": { - "description": "Update successful. The operation returns the resulting network manager connectivity configuration.", - "schema": { - "$ref": "#/definitions/ConnectivityConfiguration" - } - }, - "201": { - "description": "Create successful. The operation returns the resulting network manager connectivity configuration.", - "schema": { - "$ref": "#/definitions/ConnectivityConfiguration" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ConnectivityConfigurationsPut": { - "$ref": "./examples/NetworkManagerConnectivityConfigurationPut.json" - } - } - }, - "delete": { - "tags": [ - "ConnectivityConfigurations" - ], - "operationId": "ConnectivityConfigurations_Delete", - "description": "Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and connectivity configuration name", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "Delete successful." - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "ConnectivityConfigurationsDelete": { - "$ref": "./examples/NetworkManagerConnectivityConfigurationDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations": { - "get": { - "tags": [ - "ConnectivityConfigurations" - ], - "operationId": "ConnectivityConfigurations_List", - "description": "Lists all the network manager connectivity configuration in a specified network manager.", - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "Get successful. The operation returns all network manager connectivity configuration resources in the specified network manager, in a paginated format", - "schema": { - "$ref": "#/definitions/ConnectivityConfigurationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "ConnectivityConfigurationsList": { - "$ref": "./examples/NetworkManagerConnectivityConfigurationList.json" - } - } - } - } - }, - "definitions": { - "ConnectivityConfigurationListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectivityConfiguration" - }, - "description": "Gets a page of Connectivity Configurations" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "Result of the request to list network manager connectivity configurations. It contains a list of configurations and a link to get the next set of results." - }, - "ConnectivityConfiguration": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ConnectivityConfigurationProperties", - "description": "Properties of a network manager connectivity configuration" - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "The network manager connectivity configuration resource" - }, - "ConnectivityConfigurationProperties": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the connectivity configuration." - }, - "connectivityTopology": { - "type": "string", - "enum": [ - "HubAndSpoke", - "Mesh" - ], - "x-ms-enum": { - "name": "ConnectivityTopology", - "modelAsString": true - }, - "description": "Connectivity topology type." - }, - "hubs": { - "type": "array", - "x-ms-identifiers": [ - "resourceId" - ], - "items": { - "$ref": "#/definitions/Hub" - }, - "description": "List of hubItems" - }, - "isGlobal": { - "type": "string", - "enum": [ - "False", - "True" - ], - "x-ms-enum": { - "name": "IsGlobal", - "modelAsString": true - }, - "description": "Flag if global mesh is supported." - }, - "appliesToGroups": { - "type": "array", - "x-ms-identifiers": [ - "networkGroupId" - ], - "items": { - "$ref": "#/definitions/connectivityGroupItem" - }, - "description": "Groups for configuration" - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the connectivity configuration resource." - }, - "deleteExistingPeering": { - "type": "string", - "enum": [ - "False", - "True" - ], - "x-ms-enum": { - "name": "DeleteExistingPeering", - "modelAsString": true - }, - "description": "Flag if need to remove current existing peerings." - } - }, - "required": [ - "connectivityTopology", - "appliesToGroups" - ], - "description": "Properties of network manager connectivity configuration" - }, - "Hub": { - "type": "object", - "properties": { - "resourceId": { - "type": "string", - "description": "Resource Id." - }, - "resourceType": { - "type": "string", - "description": "Resource Type." - } - }, - "description": "Hub Item." - }, - "connectivityGroupItem": { - "type": "object", - "properties": { - "networkGroupId": { - "type": "string", - "description": "Network group Id." - }, - "useHubGateway": { - "type": "string", - "enum": [ - "False", - "True" - ], - "x-ms-enum": { - "name": "UseHubGateway", - "modelAsString": true - }, - "description": "Flag if need to use hub gateway." - }, - "isGlobal": { - "type": "string", - "enum": [ - "False", - "True" - ], - "x-ms-enum": { - "name": "IsGlobal", - "modelAsString": true - }, - "description": "Flag if global is supported." - }, - "groupConnectivity": { - "type": "string", - "enum": [ - "None", - "DirectlyConnected" - ], - "x-ms-enum": { - "name": "GroupConnectivity", - "modelAsString": true - }, - "description": "Group connectivity type." - } - }, - "description": "Connectivity group item.", - "required": [ - "networkGroupId", - "groupConnectivity" - ] - } - }, - "parameters": { - "ConnectivityConfigurationNameParameter": { - "name": "configurationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager connectivity configuration.", - "x-ms-parameter-location": "method" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, - "ListTopParameter": { - "name": "$top", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "ListSkipTokenParameter": { - "name": "$skipToken", - "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ForceDeleteParameter": { - "name": "force", - "in": "query", - "required": false, - "type": "boolean", - "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerEffectiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerEffectiveConfiguration.json deleted file mode 100644 index c42cfce61fd6..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerEffectiveConfiguration.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NetworkManagerEffectiveConfiguration", - "description": "The Microsoft Azure Network Manager effective configuration API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/VirtualNetworkNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "post": { - "tags": [ - "NetworkManagerEffectiveConnectivityConfiguration" - ], - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" - }, - "description": "Parameters supplied to list correct page." - } - ], - "operationId": "ListNetworkManagerEffectiveConnectivityConfigurations", - "description": "List all effective connectivity configurations applied on a virtual network.", - "responses": { - "200": { - "description": "OK - Returns information about the configurations.", - "schema": { - "$ref": "#/definitions/NetworkManagerEffectiveConnectivityConfigurationListResult" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List effective connectivity configuration": { - "$ref": "./examples/NetworkManagerEffectiveConnectivityConfigurationsList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/VirtualNetworkNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "post": { - "tags": [ - "NetworkManagerEffectiveSecurityAdminRules" - ], - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" - }, - "description": "Parameters supplied to list correct page." - } - ], - "operationId": "ListNetworkManagerEffectiveSecurityAdminRules", - "description": "List all effective security admin rules applied on a virtual network.", - "responses": { - "200": { - "description": "OK - Returns information about the configurations.", - "schema": { - "$ref": "#/definitions/NetworkManagerEffectiveSecurityAdminRulesListResult" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List effective security admin rules": { - "$ref": "./examples/NetworkManagerEffectiveSecurityAdminRulesList.json" - } - } - } - } - }, - "definitions": { - "NetworkManagerEffectiveConnectivityConfigurationListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/EffectiveConnectivityConfiguration" - }, - "description": "Gets a page of NetworkManagerEffectiveConnectivityConfiguration" - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list networkManagerEffectiveConnectivityConfiguration. It contains a list of groups and a skiptoken to get the next set of results." - }, - "NetworkManagerEffectiveSecurityAdminRulesListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" - }, - "description": "Gets a page of NetworkManagerEffectiveSecurityAdminRules" - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken to get the next set of results." - }, - "EffectiveConnectivityConfiguration": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "./networkManagerConnectivityConfiguration.json#/definitions/ConnectivityConfigurationProperties", - "description": "Properties of a network manager connectivity configuration" - }, - "configurationGroups": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigurationGroup" - }, - "description": "Effective configuration groups." - } - }, - "description": "The network manager effective connectivity configuration" - }, - "EffectiveBaseSecurityAdminRule": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID." - }, - "configurationDescription": { - "type": "string", - "description": "A description of the security admin configuration." - }, - "ruleCollectionDescription": { - "type": "string", - "description": "A description of the rule collection." - }, - "ruleCollectionAppliesToGroups": { - "type": "array", - "x-ms-identifiers": [ - "networkGroupId" - ], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" - }, - "description": "Groups for rule collection" - }, - "ruleGroups": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigurationGroup" - }, - "description": "Effective configuration groups." - }, - "kind": { - "type": "string", - "description": "Whether the rule is custom or default.", - "enum": [ - "Custom", - "Default" - ], - "x-ms-enum": { - "name": "EffectiveAdminRuleKind", - "modelAsString": true - } - } - }, - "required": [ - "kind" - ], - "discriminator": "kind", - "description": "Network base admin rule." - }, - "EffectiveSecurityAdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" - } - ], - "description": "Network admin rule.", - "x-ms-discriminator-value": "Custom" - }, - "EffectiveDefaultSecurityAdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/DefaultAdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the default security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" - } - ], - "description": "Network default admin rule.", - "x-ms-discriminator-value": "Default" - }, - "ConfigurationGroup": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "./networkManagerGroup.json#/definitions/NetworkGroupProperties", - "description": "The network configuration group properties" - } - }, - "description": "The network configuration group resource" - } - }, - "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "VirtualNetworkNameParameter": { - "name": "virtualNetworkName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the virtual network.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroup.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroup.json deleted file mode 100644 index 11c3fd2f9515..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroup.json +++ /dev/null @@ -1,713 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NetworkGroup", - "description": "The Microsoft Azure Network Group API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "NetworkGroups" - ], - "operationId": "NetworkGroups_Get", - "description": "Gets the specified network group.", - "responses": { - "200": { - "description": "OK - Returns information about the network group.", - "schema": { - "$ref": "#/definitions/NetworkGroup" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkGroupsGet": { - "$ref": "./examples/NetworkManagerGroupGet.json" - } - } - }, - "put": { - "tags": [ - "NetworkGroups" - ], - "operationId": "NetworkGroups_CreateOrUpdate", - "description": "Creates or updates a network group.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkGroup" - }, - "description": "Parameters supplied to the specify which network group need to create" - }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the network group.", - "schema": { - "$ref": "#/definitions/NetworkGroup" - }, - "headers": { - "ETag": { - "description": "The current entity tag.", - "type": "string" - } - } - }, - "201": { - "description": "Created - Returns information about the network group.", - "schema": { - "$ref": "#/definitions/NetworkGroup" - }, - "headers": { - "ETag": { - "description": "The current entity tag.", - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkGroupsPut": { - "$ref": "./examples/NetworkManagerGroupPut.json" - } - } - }, - "delete": { - "tags": [ - "NetworkGroups" - ], - "operationId": "NetworkGroups_Delete", - "description": "Deletes a network group.", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "Delete Succeed." - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "NetworkGroupsDelete": { - "$ref": "./examples/NetworkManagerGroupDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups": { - "get": { - "tags": [ - "NetworkGroups" - ], - "operationId": "NetworkGroups_List", - "description": "Lists the specified network group.", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the network group.", - "schema": { - "$ref": "#/definitions/NetworkGroupListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkGroupsList": { - "$ref": "./examples/NetworkManagerGroupList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/listEffectiveVirtualNetworks": { - "post": { - "tags": [ - "NetworkGroups" - ], - "operationId": "ListEffectiveVirtualNetworks_ByNetworkGroup", - "description": "Lists all effective virtual networks by specified network group.", - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/QueryRequestOptions" - }, - "description": "Parameters supplied to list correct page." - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the effective virtual networks.", - "schema": { - "$ref": "#/definitions/EffectiveVirtualNetworksListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NetworkManagerEffectiveVirtualNetworksList": { - "$ref": "./examples/NetworkManagerEffectiveVirtualNetworksList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "#/parameters/StaticMemberNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "StaticMembers" - ], - "operationId": "StaticMembers_Get", - "description": "Gets the specified static member.", - "responses": { - "200": { - "description": "OK - Returns information about the static member.", - "schema": { - "$ref": "#/definitions/StaticMember" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "StaticMembersGet": { - "$ref": "./examples/NetworkManagerStaticMemberGet.json" - } - } - }, - "put": { - "tags": [ - "StaticMembers" - ], - "operationId": "StaticMembers_CreateOrUpdate", - "description": "Creates or updates a static member.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StaticMember" - }, - "description": "Parameters supplied to the specify the static member to create" - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the static member.", - "schema": { - "$ref": "#/definitions/StaticMember" - } - }, - "201": { - "description": "Created - Returns information about the static member.", - "schema": { - "$ref": "#/definitions/StaticMember" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "StaticMemberPut": { - "$ref": "./examples/NetworkManagerStaticMemberPut.json" - } - } - }, - "delete": { - "tags": [ - "StaticMembers" - ], - "operationId": "StaticMembers_Delete", - "description": "Deletes a static member.", - "responses": { - "200": { - "description": "Delete Succeed." - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "StaticMembersDelete": { - "$ref": "./examples/NetworkManagerStaticMemberDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers": { - "get": { - "tags": [ - "StaticMembers" - ], - "operationId": "StaticMembers_List", - "description": "Lists the specified static member.", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the static member.", - "schema": { - "$ref": "#/definitions/StaticMemberListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "StaticMembersList": { - "$ref": "./examples/NetworkManagerStaticMemberList.json" - } - } - } - } - }, - "definitions": { - "NetworkGroup": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkGroupProperties", - "description": "The Network Group properties" - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "The network group resource" - }, - "NetworkGroupListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NetworkGroup" - }, - "description": "Gets a page of NetworkGroup" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next set of results." - } - }, - "description": "Result of the request to list NetworkGroup. It contains a list of groups and a URL link to get the next set of results." - }, - "NetworkGroupProperties": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the network group." - }, - "memberType": { - "type": "string", - "description": "Group member type." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the scope assignment resource." - } - }, - "required": [ - "memberType" - ], - "description": "Properties of network group" - }, - "StaticMember": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StaticMemberProperties", - "description": "The Static Member properties" - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "StaticMember Item." - }, - "StaticMemberListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StaticMember" - }, - "description": "Gets a page of StaticMember" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next set of results." - } - }, - "description": "Result of the request to list StaticMember. It contains a list of groups and a URL link to get the next set of results." - }, - "StaticMemberProperties": { - "type": "object", - "properties": { - "resourceId": { - "type": "string", - "description": "Resource Id." - }, - "region": { - "readOnly": true, - "type": "string", - "description": "Resource region." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the scope assignment resource." - } - }, - "description": "Properties of static member." - }, - "QueryRequestOptions": { - "type": "object", - "properties": { - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Query Request Options" - }, - "EffectiveVirtualNetworksListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/EffectiveVirtualNetwork" - }, - "description": "Gets a page of EffectiveVirtualNetwork" - }, - "skipToken": { - "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", - "type": "string" - } - }, - "description": "Result of the request to list Effective Virtual Network. It contains a list of groups and a URL link to get the next set of results." - }, - "EffectiveVirtualNetwork": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Effective vnet Id." - }, - "location": { - "type": "string", - "description": "Location of vnet." - }, - "membershipType": { - "type": "string", - "description": "Membership Type.", - "enum": [ - "Static", - "Dynamic" - ], - "x-ms-enum": { - "name": "MembershipType", - "modelAsString": true - } - } - }, - "description": "Effective Virtual Network" - } - }, - "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, - "NetworkGroupNameParameter": { - "name": "networkGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network group.", - "x-ms-parameter-location": "method" - }, - "StaticMemberNameParameter": { - "name": "staticMemberName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the static member.", - "x-ms-parameter-location": "method" - }, - "ListTopParameter": { - "name": "$top", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "ListSkipTokenParameter": { - "name": "$skipToken", - "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ForceDeleteParameter": { - "name": "force", - "in": "query", - "required": false, - "type": "boolean", - "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json index d07331b3c07a..b690bf0909c2 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -49,10 +49,10 @@ "$ref": "./network.json#/parameters/ApiVersionParameter" }, { - "$ref": "./network.json#/parameters/FirstIndexParameter" + "$ref": "#/parameters/FirstIndexParameter" }, { - "$ref": "./network.json#/parameters/PageSizeParameter" + "$ref": "#/parameters/PageSizeParameter" }, ], "get": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerScopeConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerScopeConnection.json deleted file mode 100644 index 1b86601ae38b..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerScopeConnection.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ScopeConnections", - "description": "The Microsoft Azure Virtual Network Manager API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ScopeConnectionName" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "put": { - "tags": [ - "ScopeConnections" - ], - "operationId": "ScopeConnections_CreateOrUpdate", - "description": "Creates or updates scope connection from Network Manager", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ScopeConnection" - }, - "description": "Scope connection to be created/updated." - } - ], - "responses": { - "200": { - "description": "Updated - Returns information about the updates scope connection.", - "schema": { - "$ref": "#/definitions/ScopeConnection" - } - }, - "201": { - "description": "Created - Returns information about the new scope connection.", - "schema": { - "$ref": "#/definitions/ScopeConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create or Update Network Manager Scope Connection": { - "$ref": "./examples/NetworkManagerScopeConnectionPut.json" - } - } - }, - "get": { - "tags": [ - "ScopeConnections" - ], - "operationId": "ScopeConnections_Get", - "description": "Get specified scope connection created by this Network Manager.", - "responses": { - "200": { - "description": "OK - Returns the invitation", - "schema": { - "$ref": "#/definitions/ScopeConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get Network Manager Scope Connection": { - "$ref": "./examples/NetworkManagerScopeConnectionGet.json" - } - } - }, - "delete": { - "tags": [ - "ScopeConnections" - ], - "operationId": "ScopeConnections_Delete", - "description": "Delete the pending scope connection created by this network manager.", - "responses": { - "200": { - "description": "Delete Succeed." - }, - "204": { - "description": "Request successful. The resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Delete Network Manager Scope Connection": { - "$ref": "./examples/NetworkManagerScopeConnectionDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections": { - "get": { - "tags": [ - "ScopeConnections" - ], - "operationId": "ScopeConnections_List", - "description": "List all scope connections created by this network manager.", - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListTopParameter" - }, - { - "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the scope connection(s).", - "schema": { - "$ref": "#/definitions/ScopeConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List Network Manager Scope Connection": { - "$ref": "./examples/NetworkManagerScopeConnectionList.json" - } - } - } - } - }, - "definitions": { - "ScopeConnection": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScopeConnectionProperties", - "description": "The scope connection properties" - }, - "etag": { - "readOnly": true, - "type": "string", - "description": "A unique read-only string that changes whenever the resource is updated." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "The Scope Connections resource" - }, - "ScopeConnectionProperties": { - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "description": "Tenant ID." - }, - "resourceId": { - "type": "string", - "description": "Resource ID." - }, - "connectionState": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ConnectionState", - "description": "Connection State" - }, - "description": { - "type": "string", - "description": "A description of the scope connection." - } - }, - "description": "Scope connection." - }, - "ScopeConnectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ScopeConnection" - }, - "description": "List of scope connections." - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "List of scope connections." - }, - "ConnectionState": { - "type": "string", - "readOnly": true, - "description": "The current scope connection state.", - "enum": [ - "Connected", - "Pending", - "Conflict", - "Revoked", - "Rejected" - ], - "x-ms-enum": { - "name": "ScopeConnectionState", - "modelAsString": true - } - } - }, - "parameters": { - "ScopeConnectionName": { - "name": "scopeConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "Name for the cross-tenant connection.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityAdminConfiguration.json deleted file mode 100644 index 2cd35208882c..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityAdminConfiguration.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "SecurityAdminConfiguration", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations": { - "get": { - "tags": [ - "SecurityAdminConfigurations" - ], - "operationId": "SecurityAdminConfigurations_List", - "description": "Lists all the network manager security admin configurations in a network manager, in a paginated format.", - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "Get successful. The operation returns all security admin configuration resources in the specified network manager, in a paginated format", - "schema": { - "$ref": "#/definitions/SecurityAdminConfigurationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List security admin configurations in a network manager": { - "$ref": "./examples/NetworkManagerSecurityAdminConfigurationList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - } - ], - "get": { - "tags": [ - "SecurityAdminConfigurations" - ], - "description": "Retrieves a network manager security admin configuration.", - "operationId": "SecurityAdminConfigurations_Get", - "responses": { - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/SecurityAdminConfiguration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get security admin configurations": { - "$ref": "./examples/NetworkManagerSecurityAdminConfigurationGet.json" - } - } - }, - "put": { - "tags": [ - "SecurityAdminConfigurations" - ], - "description": "Creates or updates a network manager security admin configuration.", - "operationId": "SecurityAdminConfigurations_CreateOrUpdate", - "parameters": [ - { - "name": "securityAdminConfiguration", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SecurityAdminConfiguration" - }, - "description": "The security admin configuration to create or update" - } - ], - "responses": { - "200": { - "description": "Updated Admin Configuration", - "schema": { - "$ref": "#/definitions/SecurityAdminConfiguration" - } - }, - "201": { - "description": "Created Admin Configuration", - "schema": { - "$ref": "#/definitions/SecurityAdminConfiguration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create network manager security admin configuration": { - "$ref": "./examples/NetworkManagerSecurityAdminConfigurationPut.json" - } - } - }, - "delete": { - "tags": [ - "SecurityAdminConfigurations" - ], - "description": "Deletes a network manager security admin configuration.", - "operationId": "SecurityAdminConfigurations_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Delete network manager security admin configuration": { - "$ref": "./examples/NetworkManagerSecurityAdminConfigurationDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections": { - "get": { - "tags": [ - "AdminRuleCollections" - ], - "operationId": "AdminRuleCollections_List", - "description": "Lists all the rule collections in a security admin configuration, in a paginated format.", - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "Get successful. The operation returns all ruleCollections in the specified security configuration, in a paginated format", - "schema": { - "$ref": "#/definitions/AdminRuleCollectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List security admin rule collections": { - "$ref": "./examples/NetworkManagerAdminRuleCollectionList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - } - ], - "get": { - "tags": [ - "AdminRuleCollections" - ], - "description": "Gets a network manager security admin configuration rule collection.", - "operationId": "AdminRuleCollections_Get", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/AdminRuleCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Gets security admin rule collection": { - "$ref": "./examples/NetworkManagerAdminRuleCollectionGet.json" - } - } - }, - "put": { - "tags": [ - "AdminRuleCollections" - ], - "description": "Creates or updates an admin rule collection.", - "operationId": "AdminRuleCollections_CreateOrUpdate", - "parameters": [ - { - "name": "ruleCollection", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminRuleCollection" - }, - "description": "The Rule Collection to create or update" - } - ], - "responses": { - "200": { - "description": "Updated Rule Collection", - "schema": { - "$ref": "#/definitions/AdminRuleCollection" - } - }, - "201": { - "description": "Created Rule Collection", - "schema": { - "$ref": "#/definitions/AdminRuleCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create or Update an admin rule collection": { - "$ref": "./examples/NetworkManagerAdminRuleCollectionPut.json" - } - } - }, - "delete": { - "tags": [ - "AdminRuleCollections" - ], - "description": "Deletes an admin rule collection.", - "operationId": "AdminRuleCollections_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Deletes an admin rule collection": { - "$ref": "./examples/NetworkManagerAdminRuleCollectionDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "get": { - "tags": [ - "AdminRules" - ], - "description": "List all network manager security configuration admin rules.", - "operationId": "AdminRules_List", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/AdminRuleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List security admin rules": { - "$ref": "./examples/NetworkManagerAdminRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationsRuleParameter" - } - ], - "get": { - "tags": [ - "AdminRules" - ], - "description": "Gets a network manager security configuration admin rule.", - "operationId": "AdminRules_Get", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/BaseAdminRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Gets security admin rule": { - "$ref": "./examples/NetworkManagerAdminRuleGet.json" - }, - "Gets security default admin rule": { - "$ref": "./examples/NetworkManagerDefaultAdminRuleGet.json" - } - } - }, - "put": { - "tags": [ - "AdminRules" - ], - "description": "Creates or updates an admin rule.", - "operationId": "AdminRules_CreateOrUpdate", - "parameters": [ - { - "name": "adminRule", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BaseAdminRule" - }, - "description": "The admin rule to create or update" - } - ], - "responses": { - "200": { - "description": "Updated rule", - "schema": { - "$ref": "#/definitions/BaseAdminRule" - } - }, - "201": { - "description": "Created rule", - "schema": { - "$ref": "#/definitions/BaseAdminRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create an admin rule": { - "$ref": "./examples/NetworkManagerAdminRulePut.json" - }, - "Create a default admin rule": { - "$ref": "./examples/NetworkManagerDefaultAdminRulePut.json" - } - } - }, - "delete": { - "tags": [ - "AdminRules" - ], - "description": "Deletes an admin rule.", - "operationId": "AdminRules_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Deletes an admin rule": { - "$ref": "./examples/NetworkManagerAdminRuleDelete.json" - } - } - } - } - }, - "definitions": { - "SecurityAdminConfiguration": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SecurityAdminConfigurationPropertiesFormat", - "description": "Indicates the properties for the network manager security admin configuration." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "Defines the security admin configuration" - }, - "SecurityAdminConfigurationPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the security configuration." - }, - "applyOnNetworkIntentPolicyBasedServices": { - "type": "array", - "items": { - "$ref": "#/definitions/NetworkIntentPolicyBasedService" - }, - "description": "Enum list of network intent policy based services." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "description": "Defines the security admin configuration properties." - }, - "SecurityAdminConfigurationListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityAdminConfiguration" - }, - "description": "Gets a page of security admin configurations" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "A list of network manager security admin configurations" - }, - "AdminRuleListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/BaseAdminRule" - }, - "description": "A list of admin rules" - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of results." - } - }, - "description": "security configuration admin rule list result." - }, - "AdminRuleCollectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AdminRuleCollection" - }, - "description": "A list of network manager security admin configuration rule collections" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next set of results." - } - }, - "description": "Security admin configuration rule collection list result." - }, - "AdminRuleCollection": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AdminRuleCollectionPropertiesFormat", - "description": "Indicates the properties for the network manager admin rule collection." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "Defines the admin rule collection." - }, - "AdminRuleCollectionPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the admin rule collection." - }, - "appliesToGroups": { - "type": "array", - "x-ms-identifiers": [ - "networkGroupId" - ], - "items": { - "$ref": "#/definitions/NetworkManagerSecurityGroupItem" - }, - "description": "Groups for configuration" - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "required": [ - "appliesToGroups" - ], - "description": "Defines the admin rule collection properties." - }, - "BaseAdminRule": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "description": "Whether the rule is custom or default.", - "enum": [ - "Custom", - "Default" - ], - "x-ms-enum": { - "name": "AdminRuleKind", - "modelAsString": true - } - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "required": [ - "kind" - ], - "discriminator": "kind", - "description": "Network base admin rule." - }, - "AdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/AdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseAdminRule" - } - ], - "description": "Network admin rule.", - "x-ms-discriminator-value": "Custom" - }, - "AdminPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description for this rule. Restricted to 140 chars." - }, - "protocol": { - "type": "string", - "$ref": "#/definitions/RuleProtocol", - "description": "Network protocol this rule applies to." - }, - "sources": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "items": { - "$ref": "#/definitions/AddressPrefixItem" - }, - "description": "The CIDR or source IP ranges." - }, - "destinations": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "items": { - "$ref": "#/definitions/AddressPrefixItem" - }, - "description": "The destination address prefixes. CIDR or destination IP ranges." - }, - "sourcePortRanges": { - "type": "array", - "items": { - "type": "string", - "description": "The source port." - }, - "description": "The source port ranges." - }, - "destinationPortRanges": { - "type": "array", - "items": { - "type": "string", - "description": "The destination port." - }, - "description": "The destination port ranges." - }, - "access": { - "$ref": "#/definitions/SecurityConfigurationRuleAccess", - "description": "Indicates the access allowed for this particular rule" - }, - "priority": { - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 4096, - "description": "The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." - }, - "direction": { - "$ref": "#/definitions/SecurityConfigurationRuleDirection", - "description": "Indicates if the traffic matched against the rule in inbound or outbound." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "required": [ - "protocol", - "access", - "direction", - "priority" - ], - "description": "Security admin rule resource." - }, - "DefaultAdminRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DefaultAdminPropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security admin rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseAdminRule" - } - ], - "description": "Network default admin rule.", - "x-ms-discriminator-value": "Default" - }, - "DefaultAdminPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "readOnly": true, - "description": "A description for this rule. Restricted to 140 chars." - }, - "flag": { - "type": "string", - "description": "Default rule flag." - }, - "protocol": { - "type": "string", - "readOnly": true, - "$ref": "#/definitions/RuleProtocol", - "description": "Network protocol this rule applies to." - }, - "sources": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "readOnly": true, - "items": { - "$ref": "#/definitions/AddressPrefixItem" - }, - "description": "The CIDR or source IP ranges." - }, - "destinations": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "readOnly": true, - "items": { - "$ref": "#/definitions/AddressPrefixItem" - }, - "description": "The destination address prefixes. CIDR or destination IP ranges." - }, - "sourcePortRanges": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The source port." - }, - "description": "The source port ranges." - }, - "destinationPortRanges": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The destination port." - }, - "description": "The destination port ranges." - }, - "access": { - "$ref": "#/definitions/SecurityConfigurationRuleAccess", - "readOnly": true, - "description": "Indicates the access allowed for this particular rule" - }, - "priority": { - "type": "integer", - "format": "int32", - "readOnly": true, - "description": "The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." - }, - "direction": { - "$ref": "#/definitions/SecurityConfigurationRuleDirection", - "readOnly": true, - "description": "Indicates if the traffic matched against the rule in inbound or outbound." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "description": "Security default admin rule resource." - }, - "SecurityConfigurationRuleAccess": { - "type": "string", - "description": "Whether network traffic is allowed or denied.", - "enum": [ - "Allow", - "Deny", - "AlwaysAllow" - ], - "x-ms-enum": { - "name": "SecurityConfigurationRuleAccess", - "modelAsString": true - } - }, - "SecurityConfigurationRuleDirection": { - "type": "string", - "description": "The direction of the rule. The direction specifies if the rule will be evaluated on incoming or outgoing traffic.", - "enum": [ - "Inbound", - "Outbound" - ], - "x-ms-enum": { - "name": "SecurityConfigurationRuleDirection", - "modelAsString": true - } - }, - "RuleProtocol": { - "type": "string", - "description": "Network protocol this rule applies to.", - "enum": [ - "Tcp", - "Udp", - "Icmp", - "Esp", - "Any", - "Ah" - ], - "x-ms-enum": { - "name": "SecurityConfigurationRuleProtocol", - "modelAsString": true - } - }, - "NetworkManagerSecurityGroupItem": { - "type": "object", - "properties": { - "networkGroupId": { - "type": "string", - "description": "Network manager group Id." - } - }, - "required": [ - "networkGroupId" - ], - "description": "Network manager security group item." - }, - "AddressPrefixItem": { - "type": "object", - "properties": { - "addressPrefix": { - "type": "string", - "description": "Address prefix." - }, - "addressPrefixType": { - "type": "string", - "description": "Address prefix type.", - "enum": [ - "IPPrefix", - "ServiceTag" - ], - "x-ms-enum": { - "name": "AddressPrefixType", - "modelAsString": true - } - } - }, - "description": "Address prefix item." - }, - "NetworkIntentPolicyBasedService": { - "type": "string", - "description": "Network intent policy based services.", - "enum": [ - "None", - "All" - ], - "x-ms-enum": { - "name": "NetworkIntentPolicyBasedService", - "modelAsString": true - } - } - }, - "parameters": { - "SecurityConfigurationParameter": { - "name": "configurationName", - "in": "path", - "description": "The name of the network manager Security Configuration.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "RuleCollectionParameter": { - "name": "ruleCollectionName", - "in": "path", - "description": "The name of the network manager security Configuration rule collection.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "SecurityConfigurationsRuleParameter": { - "name": "ruleName", - "in": "path", - "description": "The name of the rule.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, - "ListTopParameter": { - "name": "$top", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "ListSkipTokenParameter": { - "name": "$skipToken", - "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ForceDeleteParameter": { - "name": "force", - "in": "query", - "required": false, - "type": "boolean", - "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityUserConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityUserConfiguration.json deleted file mode 100644 index 172249d1126f..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerSecurityUserConfiguration.json +++ /dev/null @@ -1,1030 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "SecurityUserConfiguration", - "version": "2022-06-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations": { - "get": { - "tags": [ - "SecurityUserConfigurations" - ], - "operationId": "SecurityUserConfigurations_List", - "description": "Lists all the network manager security user configurations in a network manager, in a paginated format.", - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "Get successful. The operation returns all security user configurations in the specified network manager, in a paginated format", - "schema": { - "$ref": "#/definitions/SecurityUserConfigurationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List security user configurations in a network manager": { - "$ref": "./examples/NetworkManagerSecurityUserConfigurationList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - } - ], - "get": { - "tags": [ - "SecurityUserConfigurations" - ], - "description": "Retrieves a network manager security user configuration.", - "operationId": "SecurityUserConfigurations_Get", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/SecurityUserConfiguration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get security user configurations": { - "$ref": "./examples/NetworkManagerSecurityUserConfigurationGet.json" - } - } - }, - "put": { - "tags": [ - "SecurityUserConfigurations" - ], - "description": "Creates or updates a network manager security user configuration.", - "operationId": "SecurityUserConfigurations_CreateOrUpdate", - "parameters": [ - { - "name": "securityUserConfiguration", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SecurityUserConfiguration" - }, - "description": "The security user configuration to create or update" - } - ], - "responses": { - "200": { - "description": "Updated Configuration", - "schema": { - "$ref": "#/definitions/SecurityUserConfiguration" - } - }, - "201": { - "description": "Created Configuration", - "schema": { - "$ref": "#/definitions/SecurityUserConfiguration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create network manager security user configuration": { - "$ref": "./examples/NetworkManagerSecurityUserConfigurationPut.json" - } - } - }, - "delete": { - "tags": [ - "SecurityUserConfigurations" - ], - "description": "Deletes a network manager security user configuration.", - "operationId": "SecurityUserConfigurations_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Delete network manager security user configuration": { - "$ref": "./examples/NetworkManagerSecurityUserConfigurationDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections": { - "get": { - "tags": [ - "UserRuleCollections" - ], - "operationId": "UserRuleCollections_List", - "description": "Lists all the user rule collections in a security configuration, in a paginated format.", - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "responses": { - "200": { - "description": "Get successful. The operation returns all ruleCollections in the specified security configuration, in a paginated format", - "schema": { - "$ref": "#/definitions/UserRuleCollectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List rule collections in a security configuration": { - "$ref": "./examples/NetworkManagerUserRuleCollectionList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - } - ], - "get": { - "tags": [ - "RuleCollections" - ], - "description": "Gets a network manager security user configuration rule collection.", - "operationId": "UserRuleCollections_Get", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/UserRuleCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Gets security user rule collection": { - "$ref": "./examples/NetworkManagerUserRuleCollectionGet.json" - } - } - }, - "put": { - "tags": [ - "UserRuleCollections" - ], - "description": "Creates or updates a user rule collection.", - "operationId": "UserRuleCollections_CreateOrUpdate", - "parameters": [ - { - "name": "userRuleCollection", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UserRuleCollection" - }, - "description": "The User Rule Collection to create or update" - } - ], - "responses": { - "200": { - "description": "Updated User Rule Collection", - "schema": { - "$ref": "#/definitions/UserRuleCollection" - } - }, - "201": { - "description": "Created User Rule Collection", - "schema": { - "$ref": "#/definitions/UserRuleCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create or Update a User Rule Collection": { - "$ref": "./examples/NetworkManagerUserRuleCollectionPut.json" - } - } - }, - "delete": { - "tags": [ - "UserRuleCollections" - ], - "description": "Deletes a user rule collection.", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "operationId": "UserRuleCollections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Deletes a user rule collection": { - "$ref": "./examples/NetworkManagerUserRuleCollectionDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/ListTopParameter" - }, - { - "$ref": "#/parameters/ListSkipTokenParameter" - } - ], - "get": { - "tags": [ - "UserRules" - ], - "description": "Lists all user rules in a rule collection.", - "operationId": "UserRules_List", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/UserRuleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List security user rules": { - "$ref": "./examples/NetworkManagerUserRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationsRuleParameter" - } - ], - "get": { - "tags": [ - "UserRules" - ], - "description": "Gets a user rule.", - "operationId": "UserRules_Get", - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/BaseUserRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Gets a user rule": { - "$ref": "./examples/NetworkManagerUserRuleGet.json" - }, - "Gets a default user rule": { - "$ref": "./examples/NetworkManagerDefaultUserRuleGet.json" - } - } - }, - "put": { - "tags": [ - "UserRules" - ], - "description": "Creates or updates a user rule.", - "operationId": "UserRules_CreateOrUpdate", - "parameters": [ - { - "name": "userRule", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BaseUserRule" - }, - "description": "The user rule to create or update" - } - ], - "responses": { - "200": { - "description": "Updated rule", - "schema": { - "$ref": "#/definitions/BaseUserRule" - } - }, - "201": { - "description": "Created rule", - "schema": { - "$ref": "#/definitions/BaseUserRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Create a user rule": { - "$ref": "./examples/NetworkManagerUserRulePut.json" - }, - "Create a default user rule": { - "$ref": "./examples/NetworkManagerDefaultUserRulePut.json" - } - } - }, - "delete": { - "tags": [ - "UserRules" - ], - "description": "Deletes a user rule.", - "operationId": "UserRules_Delete", - "parameters": [ - { - "$ref": "#/parameters/ForceDeleteParameter" - } - ], - "responses": { - "200": { - "description": "Delete Succeed." - }, - "202": { - "description": "Accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } - }, - "204": { - "description": "Request successful. Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Delete a user rule": { - "$ref": "./examples/NetworkManagerUserRuleDelete.json" - } - } - } - } - }, - "definitions": { - "SecurityUserConfiguration": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SecurityUserConfigurationPropertiesFormat", - "description": "Indicates the properties for the network manager security user configuration." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "Defines the security user configuration" - }, - "SecurityUserConfigurationPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the security user configuration." - }, - "deleteExistingNSGs": { - "type": "string", - "enum": [ - "False", - "True" - ], - "x-ms-enum": { - "name": "DeleteExistingNSGs", - "modelAsString": true - }, - "description": "Flag if need to delete existing network security groups." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "description": "Defines the security user configuration properties." - }, - "SecurityUserConfigurationListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityUserConfiguration" - }, - "description": "Gets a page of security user configurations" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next page of results." - } - }, - "description": "A list of network manager security user configurations" - }, - "UserRuleCollectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/UserRuleCollection" - }, - "description": "A list of network manager security user configuration rule collections" - }, - "nextLink": { - "type": "string", - "description": "Gets the URL to get the next set of results." - } - }, - "description": "Security user configuration rule collection list result." - }, - "UserRuleCollection": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/UserRuleCollectionPropertiesFormat", - "description": "Indicates the properties for the network manager user rule collection." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "description": "Defines the user rule collection." - }, - "UserRuleCollectionPropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description of the user rule collection." - }, - "appliesToGroups": { - "type": "array", - "x-ms-identifiers": [ - "networkGroupId" - ], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" - }, - "description": "Groups for configuration" - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the resource." - } - }, - "required": [ - "appliesToGroups" - ], - "description": "Defines the user rule collection properties." - }, - "BaseUserRule": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "description": "Whether the rule is custom or default.", - "enum": [ - "Custom", - "Default" - ], - "x-ms-enum": { - "name": "UserRuleKind", - "modelAsString": true - } - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" - } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/ProxyResource" - } - ], - "required": [ - "kind" - ], - "discriminator": "kind", - "description": "Network base rule." - }, - "UserRuleListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/BaseUserRule" - }, - "description": "A list of user rules" - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of results." - } - }, - "description": "security user rule list result." - }, - "UserRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/UserRulePropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security user rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseUserRule" - } - ], - "description": "Network security user rule.", - "x-ms-discriminator-value": "Custom" - }, - "UserRulePropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "A description for this rule." - }, - "protocol": { - "type": "string", - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/RuleProtocol", - "description": "Network protocol this rule applies to." - }, - "sources": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" - }, - "description": "The CIDR or source IP ranges." - }, - "destinations": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" - }, - "description": "The destination address prefixes. CIDR or destination IP ranges." - }, - "sourcePortRanges": { - "type": "array", - "items": { - "type": "string", - "description": "The source port." - }, - "description": "The source port ranges." - }, - "destinationPortRanges": { - "type": "array", - "items": { - "type": "string", - "description": "The destination port." - }, - "description": "The destination port ranges." - }, - "direction": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/SecurityConfigurationRuleDirection", - "description": "Indicates if the traffic matched against the rule in inbound or outbound." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the security configuration user rule resource." - } - }, - "required": [ - "protocol", - "direction" - ], - "description": "Security rule resource." - }, - "DefaultUserRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DefaultUserRulePropertiesFormat", - "x-ms-client-flatten": true, - "description": "Indicates the properties of the security default user rule" - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseUserRule" - } - ], - "description": "Network security default user rule.", - "x-ms-discriminator-value": "Default" - }, - "DefaultUserRulePropertiesFormat": { - "type": "object", - "properties": { - "description": { - "type": "string", - "readOnly": true, - "description": "A description for this rule. Restricted to 140 chars." - }, - "flag": { - "type": "string", - "description": "Default rule flag." - }, - "protocol": { - "type": "string", - "readOnly": true, - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/RuleProtocol", - "description": "Network protocol this rule applies to." - }, - "sources": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "readOnly": true, - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" - }, - "description": "The CIDR or source IP ranges." - }, - "destinations": { - "type": "array", - "x-ms-identifiers": [ - "addressPrefix" - ], - "readOnly": true, - "items": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" - }, - "description": "The destination address prefixes. CIDR or destination IP ranges." - }, - "sourcePortRanges": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The source port." - }, - "description": "The source port ranges." - }, - "destinationPortRanges": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The destination port." - }, - "description": "The destination port ranges." - }, - "direction": { - "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/SecurityConfigurationRuleDirection", - "readOnly": true, - "description": "Indicates if the traffic matched against the rule in inbound or outbound." - }, - "provisioningState": { - "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", - "description": "The provisioning state of the security configuration user rule resource." - } - }, - "description": "Security default user rule resource." - } - }, - "parameters": { - "SecurityConfigurationParameter": { - "name": "configurationName", - "in": "path", - "description": "The name of the network manager Security Configuration.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "RuleCollectionParameter": { - "name": "ruleCollectionName", - "in": "path", - "description": "The name of the network manager security Configuration rule collection.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "SecurityConfigurationsRuleParameter": { - "name": "ruleName", - "in": "path", - "description": "The name of the rule.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, - "ListTopParameter": { - "name": "$top", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "ListSkipTokenParameter": { - "name": "$skipToken", - "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ForceDeleteParameter": { - "name": "force", - "in": "query", - "required": false, - "type": "boolean", - "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", - "x-ms-parameter-location": "method" - } - } -} From 0d2ee2df4bf4d9d7f46cc62f12fefa11829dea3b Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Thu, 22 Dec 2022 17:29:57 -0800 Subject: [PATCH 5/9] fix format --- .../examples/NetworkGroupMembershipsList.json | 26 +++---- .../networkManagerGroupMembership.json | 78 +++++++++++-------- .../network/resource-manager/readme.md | 3 + 3 files changed, 60 insertions(+), 47 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json index 221bb44bf36e..49f9d10f45ea 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json @@ -12,28 +12,28 @@ { "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/testVirtualNetwork/providers/Microsoft.Network/networkGroupMemberships/Default", "type": "Microsoft.Network/networkGroupMemberships", - "name": "Default", + "name": "Default", "location": "useast", "properties": { - "GroupMemberships": [ + "groupMemberships": [ { - "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng", - "Sources": [ + "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng", + "sources": [ { - "Type": "StaticMembership", - "StaticMemberId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng/staticMembers/testsm" + "kind": "StaticMembership", + "staticMemberId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng/staticMembers/testsm" } ] }, { - "NetworkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng2", - "Sources": [ + "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNM/networkGroups/testng2", + "sources": [ { - "Type": "Policy", - "PolicyAssignmentId": "TestPolicyAssignmentId", - "PolicySetDefinitionId": "TestPolicySetDefinitionId", - "PolicyDefinitionId": "TestPolicyDefinitionId", - "PolicyDefinitionReferenceId": "TestDefinitionReferenceId" + "kind": "Policy", + "policyAssignmentId": "TestPolicyAssignmentId", + "policySetDefinitionId": "TestPolicySetDefinitionId", + "policyDefinitionId": "TestPolicyDefinitionId", + "policyDefinitionReferenceId": "TestDefinitionReferenceId" } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json index b690bf0909c2..e14ed14c0683 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -48,12 +48,12 @@ { "$ref": "./network.json#/parameters/ApiVersionParameter" }, - { + { "$ref": "#/parameters/FirstIndexParameter" }, - { + { "$ref": "#/parameters/PageSizeParameter" - }, + } ], "get": { "tags": [ @@ -94,7 +94,7 @@ }, "description": "Gets a page of NetworkGroupMembership" }, - "nextLink": { + "nextLink": { "type": "string", "description": "Gets the URL to get the next page of results." } @@ -117,7 +117,7 @@ "type": "string", "description": "Resource Location." }, - "name": { + "name": { "readOnly": true, "type": "string", "description": "Resource name." @@ -127,7 +127,7 @@ "type": "string", "description": "Resource type." }, - "systemData": { + "systemData": { "readOnly": true, "description": "The system metadata related to this resource.", "$ref": "./network.json#/definitions/SystemData" @@ -138,7 +138,7 @@ "NetworkGroupMembershipProperties": { "type": "object", "properties": { - "GroupMemberships": { + "groupMemberships": { "type": "array", "items": { "$ref": "#/definitions/NetworkGroupMembershipGroup" @@ -155,7 +155,7 @@ "type": "string", "description": "network Group ID." }, - "Sources": { + "sources": { "type": "array", "items": { "$ref": "#/definitions/BaseNetworkGroupMembershipSource" @@ -190,34 +190,44 @@ "StaticNetworkGroupMembershipSource": { "type": "object", "properties": { - "StaticMemberId": { + "staticMemberId": { "type": "string", "description": "Static Member Id." } }, + "allOf": [ + { + "$ref": "#/definitions/BaseNetworkGroupMembershipSource" + } + ], "description": "Static Network Group Membership Source.", "x-ms-discriminator-value": "StaticMembership" }, "PolicyNetworkGroupMembershipSource": { "type": "object", "properties": { - "PolicyAssignmentId": { + "policyAssignmentId": { "type": "string", "description": "Policy Assignment Id." }, - "PolicySetDefinitionId": { + "policySetDefinitionId": { "type": "string", "description": "Policy Set Definition Id." }, - "PolicyDefinitionId": { + "policyDefinitionId": { "type": "string", "description": "Policy Definition Id." }, - "PolicyDefinitionReferenceId": { + "policyDefinitionReferenceId": { "type": "string", "description": "Policy Definition Reference Id." } }, + "allOf": [ + { + "$ref": "#/definitions/BaseNetworkGroupMembershipSource" + } + ], "description": "Policy Membership Source.", "x-ms-discriminator-value": "Policy" } @@ -239,26 +249,26 @@ "description": "The name of the virtual network.", "x-ms-parameter-location": "method" }, - "PageSizeParameter": { - "name": "pageSize", - "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 20, - "x-ms-parameter-location": "method" - }, - "FirstIndexParameter": { - "name": "firstIndex", - "description": "An optional query parameter which specifies the first index of records to be returned by the server.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 0, - "x-ms-parameter-location": "method" - } + "PageSizeParameter": { + "name": "pageSize", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 20, + "x-ms-parameter-location": "method" + }, + "FirstIndexParameter": { + "name": "firstIndex", + "description": "An optional query parameter which specifies the first index of records to be returned by the server.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 0, + "x-ms-parameter-location": "method" + } } } diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 5d796746f5ea..3a816c6e44a4 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -2678,6 +2678,9 @@ directive: - suppress: RequiredPropertiesMissingInResourceModel from: dscpConfiguration.json reason: name, id and type properties are inherited from the upper level + - suppress: R3023 + from: networkManagerGroupMembership.json + reason: Extension Resource, not new RP. ``` --- From 19d617135fb1ea06e8e946b8e6711f8aa44740c4 Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Tue, 3 Jan 2023 15:30:39 -0800 Subject: [PATCH 6/9] fix error --- ...rActiveConnectivityConfigurationsList.json | 60 --------- ...rkManagerActiveSecurityAdminRulesList.json | 74 ----------- ...orkManagerActiveSecurityUserRulesList.json | 71 ---------- ...tworkManagerAdminRuleCollectionDelete.json | 20 --- .../NetworkManagerAdminRuleCollectionGet.json | 36 ----- ...NetworkManagerAdminRuleCollectionList.json | 40 ------ .../NetworkManagerAdminRuleCollectionPut.json | 70 ---------- .../NetworkManagerAdminRuleDelete.json | 21 --- .../examples/NetworkManagerAdminRuleGet.json | 55 -------- .../examples/NetworkManagerAdminRuleList.json | 59 --------- .../examples/NetworkManagerAdminRulePut.json | 125 ------------------ .../examples/NetworkManagerCommitPost.json | 47 ------- ...anagerConnectionManagementGroupDelete.json | 12 -- ...rkManagerConnectionManagementGroupGet.json | 33 ----- ...kManagerConnectionManagementGroupList.json | 37 ------ ...rkManagerConnectionManagementGroupPut.json | 61 --------- ...rkManagerConnectionSubscriptionDelete.json | 12 -- ...tworkManagerConnectionSubscriptionGet.json | 33 ----- ...workManagerConnectionSubscriptionList.json | 37 ------ ...tworkManagerConnectionSubscriptionPut.json | 61 --------- ...anagerConnectivityConfigurationDelete.json | 20 --- ...rkManagerConnectivityConfigurationGet.json | 48 ------- ...kManagerConnectivityConfigurationList.json | 52 -------- ...rkManagerConnectivityConfigurationPut.json | 106 --------------- .../NetworkManagerDefaultAdminRuleGet.json | 56 -------- .../NetworkManagerDefaultAdminRulePut.json | 105 --------------- .../NetworkManagerDefaultUserRuleGet.json | 54 -------- .../NetworkManagerDefaultUserRulePut.json | 101 -------------- .../examples/NetworkManagerDelete.json | 19 --- .../NetworkManagerDeploymentStatusList.json | 51 ------- ...fectiveConnectivityConfigurationsList.json | 55 -------- ...anagerEffectiveSecurityAdminRulesList.json | 69 ---------- ...rkManagerEffectiveVirtualNetworksList.json | 27 ---- ...veVirtualNetworksListByNetworkManager.json | 27 ---- .../examples/NetworkManagerGet.json | 39 ------ .../examples/NetworkManagerGroupDelete.json | 20 --- .../examples/NetworkManagerGroupGet.json | 32 ----- .../examples/NetworkManagerGroupList.json | 36 ----- .../examples/NetworkManagerGroupPut.json | 64 --------- .../examples/NetworkManagerList.json | 44 ------ .../examples/NetworkManagerListAll.json | 43 ------ .../examples/NetworkManagerPatch.json | 51 ------- .../examples/NetworkManagerPut.json | 89 ------------- .../NetworkManagerScopeConnectionDelete.json | 15 --- .../NetworkManagerScopeConnectionGet.json | 36 ----- .../NetworkManagerScopeConnectionList.json | 40 ------ .../NetworkManagerScopeConnectionPut.json | 66 --------- ...nagerSecurityAdminConfigurationDelete.json | 19 --- ...kManagerSecurityAdminConfigurationGet.json | 33 ----- ...ManagerSecurityAdminConfigurationList.json | 37 ------ ...kManagerSecurityAdminConfigurationPut.json | 63 --------- ...anagerSecurityUserConfigurationDelete.json | 19 --- ...rkManagerSecurityUserConfigurationGet.json | 31 ----- ...kManagerSecurityUserConfigurationList.json | 35 ----- ...rkManagerSecurityUserConfigurationPut.json | 57 -------- .../NetworkManagerStaticMemberDelete.json | 21 --- .../NetworkManagerStaticMemberGet.json | 31 ----- .../NetworkManagerStaticMemberList.json | 37 ------ .../NetworkManagerStaticMemberPut.json | 64 --------- ...etworkManagerUserRuleCollectionDelete.json | 20 --- .../NetworkManagerUserRuleCollectionGet.json | 36 ----- .../NetworkManagerUserRuleCollectionList.json | 40 ------ .../NetworkManagerUserRuleCollectionPut.json | 70 ---------- .../NetworkManagerUserRuleDelete.json | 21 --- .../examples/NetworkManagerUserRuleGet.json | 53 -------- .../examples/NetworkManagerUserRuleList.json | 57 -------- .../examples/NetworkManagerUserRulePut.json | 119 ----------------- .../network/resource-manager/readme.md | 3 + 68 files changed, 3 insertions(+), 3192 deletions(-) delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRulePut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerCommitPost.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRulePut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRuleGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRulePut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDeploymentStatusList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerListAll.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPatch.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionPut.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleDelete.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleList.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRulePut.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json deleted file mode 100644 index cb989b5885f2..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Active Connectivity Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "parameters": { - "regions": [ - "westus" - ], - "skipToken": "fakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "region": "westus", - "commitTime": "2020-07-10T18:03:22.2578238+05:30", - "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "isGlobal": "True", - "deleteExistingPeering": "True", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - }, - "configurationGroups": [ - { - "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "properties": { - "description": "A group for all test Virtual Networks", - "memberType": "Microsoft.Network/virtualNetworks", - "provisioningState": "Succeeded" - } - } - ] - } - ], - "skipToken": "FakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json deleted file mode 100644 index de1ad6c13aef..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Active Security Admin Rules", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "parameters": { - "regions": [ - "westus" - ], - "skipToken": "fakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "region": "westus", - "commitTime": "2020-07-10T18:03:22.2578238+05:30", - "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", - "configurationDescription": "SampleDescription", - "ruleCollectionDescription": "SampleRuleCollectionDescription", - "ruleCollectionAppliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" - } - ], - "kind": "Default", - "properties": { - "description": "Sample Admin Rule", - "flag": "AllowVnetInbound", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "access": "Deny", - "priority": 1, - "provisioningState": "Succeeded" - }, - "ruleGroups": [ - { - "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "properties": { - "description": "A group for all test Virtual Networks", - "memberType": "Microsoft.Network/virtualNetworks", - "provisioningState": "Succeeded" - } - } - ] - } - ], - "skipToken": "FakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json deleted file mode 100644 index d8cfa52cf3a3..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Active Security User Rules", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "parameters": { - "regions": [ - "westus" - ], - "skipToken": "fakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "region": "westus", - "commitTime": "2020-07-10T18:03:22.2578238+05:30", - "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", - "configurationDescription": "SampleDescription", - "ruleCollectionDescription": "SampleRuleCollectionDescription", - "ruleCollectionAppliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" - } - ], - "kind": "Custom", - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - }, - "ruleGroups": [ - { - "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "properties": { - "description": "A group for all test Virtual Networks", - "memberType": "Microsoft.Network/virtualNetworks", - "provisioningState": "Succeeded" - } - } - ] - } - ], - "skipToken": "FakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json deleted file mode 100644 index 9568b6239b27..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json deleted file mode 100644 index 412f7c0915fb..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "testRuleCollection", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample rule collection", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionList.json deleted file mode 100644 index 2942cdfa0c3f..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionList.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "testRuleCollection", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample rule collection", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json deleted file mode 100644 index 2be5f629cff7..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleCollection": { - "properties": { - "description": "A sample policy", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleDelete.json deleted file mode 100644 index 3c5266db86a2..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleDelete.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleGet.json deleted file mode 100644 index adf67d386a12..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleGet.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleAdminRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "This is Sample Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleList.json deleted file mode 100644 index 57a6d03fcaee..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRuleList.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleAdminRule", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "kind": "Custom", - "properties": { - "description": "This is Sample Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRulePut.json deleted file mode 100644 index c3aefd6e5d18..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerAdminRulePut.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule", - "adminRule": { - "kind": "Custom", - "properties": { - "description": "This is Sample Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "ServiceTag", - "addressPrefix": "Internet" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleAdminRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "This is Sample Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "ServiceTag", - "addressPrefix": "Internet" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/rules/SampleAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleAdminRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "This is Sample Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "ServiceTag", - "addressPrefix": "Internet" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerCommitPost.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerCommitPost.json deleted file mode 100644 index ed0ca1cb40b5..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerCommitPost.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "title": "Post Azure Virtual Network Manager Commit", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "resoureGroupSample", - "networkManagerName": "testNetworkManager", - "parameters": { - "targetLocations": [ - "useast" - ], - "configurationIds": [ - "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" - ], - "commitType": "SecurityAdmin" - } - }, - "responses": { - "200": { - "body": { - "commitId": "testCommitId", - "targetLocations": [ - "useast" - ], - "configurationIds": [ - "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" - ], - "commitType": "SecurityAdmin" - } - }, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - }, - "body": { - "commitId": "testCommitId", - "targetLocations": [ - "useast" - ], - "configurationIds": [ - "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" - ], - "commitType": "SecurityAdmin" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json deleted file mode 100644 index 7886c9d04e87..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Delete Management Group Connection to Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "managementGroupId": "managementGroupA", - "networkManagerConnectionName": "TestNMConnection" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json deleted file mode 100644 index f8073f857c11..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "Get Management Group Azure Virtual Network Manager Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "managementGroupId": "managementGroupA", - "networkManagerConnectionName": "TestNMConnection" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupList.json deleted file mode 100644 index efd0b42d18a9..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "List Management Group Azure Virtual Network Manager Connections", - "parameters": { - "api-version": "2022-06-01-preview", - "managementGroupId": "managementGroupA" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - ], - "nextLink": "{baseurl}/managementGroups/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json deleted file mode 100644 index 27b69ebcaf14..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "Create/Update Management Group Azure Virtual Network Manager Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "managementGroupId": "managementGroupA", - "networkManagerConnectionName": "TestNMConnection", - "parameters": { - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" - } - } - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - }, - "201": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json deleted file mode 100644 index 337b9fe1318d..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Delete Subscription Connection to Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "networkManagerConnectionName": "TestNMConnection" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json deleted file mode 100644 index 390936db0452..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "Get Subscription Azure Virtual Network Manager Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "networkManagerConnectionName": "TestNMConnection" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionList.json deleted file mode 100644 index acc406943a45..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "List Subscription Azure Virtual Network Manager Connections", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "value": [ - { - "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json deleted file mode 100644 index c348ce3833ed..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "Create/Update Subscription Azure Virtual Network Manager Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "networkManagerConnectionName": "TestNMConnection", - "parameters": { - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" - } - } - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestNMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - }, - "201": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", - "type": "Microsoft.Network/networkManagerConnections", - "name": "TestMConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "connectionState": "Pending", - "description": "This is a network manager connection to testNetworkManager." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json deleted file mode 100644 index 53c37f43910c..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Connectivity Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestConnectivityConfig", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/connectivityConfigurations/myTestConnectivityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json deleted file mode 100644 index 80d7c6cfeda9..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Connectivity Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestConnectivityConfig" - }, - "responses": { - "200": { - "body": { - "name": "myTestConnectivityConfig", - "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "type": "Microsoft.Network/networkManagers/connectivityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "isGlobal": "True", - "deleteExistingPeering": "True", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationList.json deleted file mode 100644 index 5caabbbdb7ab..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationList.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Connecitivity Configuration List", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myTestConnectivityConfig", - "id": "subscription/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "type": "Microsoft.Network/networkManagers/connectivityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "deleteExistingPeering": "True", - "isGlobal": "True", - "appliesToGroups": [ - { - "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/netwrokGroups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/managedNetworks/testNetworkManager/connectivityConfigurations?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json deleted file mode 100644 index 5dca78b8e95e..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "title": "Create/Update Azure Virtual Network Manager Connectivity Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestConnectivityConfig", - "connectivityConfiguration": { - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "deleteExistingPeering": "True", - "isGlobal": "True", - "appliesToGroups": [ - { - "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "myTestConnectivityConfig", - "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "type": "Microsoft.Network/networkManagers/connectivityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample Connectivity Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "deleteExistingPeering": "True", - "isGlobal": "True", - "appliesToGroups": [ - { - "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "name": "myTestConnectivityConfig", - "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "type": "Microsoft.Network/networkManagers/connectivityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "deleteExistingPeering": "True", - "isGlobal": "True", - "appliesToGroups": [ - { - "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json deleted file mode 100644 index e34e6546bc27..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleDefaultAdminRule" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleDefaultAdminRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "This is Sample Default Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRulePut.json deleted file mode 100644 index 0303cf39e880..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultAdminRulePut.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleDefaultAdminRule", - "adminRule": { - "kind": "Default", - "properties": { - "flag": "AllowVnetInbound" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleDefaultAdminRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "This is Sample Default Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "ServiceTag", - "addressPrefix": "Internet" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/rules/SampleDefaultAdminRule", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleDefaultAdminRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "This is Sample Default Admin Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "ServiceTag", - "addressPrefix": "Internet" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "access": "Deny", - "priority": 1, - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRuleGet.json deleted file mode 100644 index 708075a87b25..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRuleGet.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleName": "SampleDefaultUserRule" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultUserRule", - "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", - "name": "SampleDefaultUserRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "Sample Default User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRulePut.json deleted file mode 100644 index bd84ee3efeb7..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDefaultUserRulePut.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleDefaultUserRule", - "userRule": { - "kind": "Default", - "properties": { - "flag": "AllowVnetInbound" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/Policy1/ruleCollections/testRuleCollection/rules/SampleUserRule", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules", - "name": "SampleDefaultUserRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "Sample Default User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultUserRule", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules", - "name": "SampleDefaultUserRule", - "kind": "Default", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "flag": "AllowVnetInbound", - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDelete.json deleted file mode 100644 index 816ff2ba5a27..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDelete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Delete Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDeploymentStatusList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDeploymentStatusList.json deleted file mode 100644 index f494029127f6..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerDeploymentStatusList.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "title": "Post Azure Virtual Network Manager Deployment Status", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "resoureGroupSample", - "networkManagerName": "testNetworkManager", - "parameters": { - "regions": [ - "eastus", - "westus" - ], - "deploymentTypes": [ - "Connectivity", - "AdminPolicy" - ], - "skipToken": "FakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "deploymentType": "AdminPolicy", - "configurationIds": [ - "SecConfig1", - "SecConfig2" - ], - "commitTime": "2021-01-26T06:58:50.883Z", - "region": "eastus", - "deploymentStatus": "Deploying", - "errorMessage": "" - }, - { - "deploymentType": "Connectivity", - "configurationIds": [ - "ConnConfig1", - "ConnConfig2" - ], - "commitTime": "2021-01-26T06:58:50.883Z", - "region": "eastus", - "deploymentStatus": "Deployed", - "errorMessage": "" - } - ], - "skipToken": "NextFakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json deleted file mode 100644 index da0071acbdb1..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager Effective Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "virtualNetworkName": "testVirtualNetwork", - "parameters": { - "skipToken": "FakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", - "properties": { - "description": "Sample Configuration", - "connectivityTopology": "HubAndSpoke", - "hubs": [ - { - "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", - "resourceType": "Microsoft.Network/virtualNetworks" - } - ], - "isGlobal": "True", - "deleteExistingPeering": "True", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", - "useHubGateway": "True", - "groupConnectivity": "None", - "isGlobal": "False" - } - ], - "provisioningState": "Succeeded" - }, - "configurationGroups": [ - { - "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "properties": { - "description": "A group for all test Virtual Networks", - "memberType": "Microsoft.Network/virtualNetworks", - "provisioningState": "Succeeded" - } - } - ] - } - ], - "skipToken": "FakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json deleted file mode 100644 index b2f0df4a24d9..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager Effective Configuration", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionA", - "resourceGroupName": "myResourceGroup", - "virtualNetworkName": "testVirtualNetwork", - "parameters": { - "skipToken": "FakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", - "configurationDescription": "SampleDescription", - "ruleCollectionDescription": "SampleRuleCollectionDescription", - "ruleCollectionAppliesToGroups": [ - { - "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" - } - ], - "kind": "Default", - "properties": { - "description": "Sample Admin Rule", - "flag": "AllowVnetInbound", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "access": "Deny", - "priority": 1, - "provisioningState": "Succeeded" - }, - "ruleGroups": [ - { - "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", - "properties": { - "description": "A group for all test Virtual Networks", - "memberType": "VirtualNetwork", - "provisioningState": "Succeeded" - } - } - ] - } - ], - "skipToken": "FakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json deleted file mode 100644 index 0de498372aad..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "List Effective Virtual Networks List By Network Groups", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "TestNetworkGroup", - "parameters": { - "skipToken": "FakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subscriptionC/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testNetworkManager", - "location": "useast2", - "membershipType": "Static" - } - ], - "skipToken": "NextFakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json deleted file mode 100644 index df72e001eead..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "List Effective Virtual Networks List By Network Groups", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "parameters": { - "conditionalMembers": "location='useast2'", - "skipToken": "FakeSkipTokenCode" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subscriptionC/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testNetworkManager", - "location": "useast2", - "membershipType": "Static" - } - ], - "skipToken": "NextFakeSkipTokenCode" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGet.json deleted file mode 100644 index e3145ff97d1d..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGet.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "body": { - "name": "testNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "type": "Microsoft.Network/networkManagers", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "SecurityUser" - ], - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupDelete.json deleted file mode 100644 index b286e68a47a0..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Delete Azure Virtual Network Manager Group", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupGet.json deleted file mode 100644 index 76593805178e..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupGet.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Network Group", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup" - }, - "responses": { - "200": { - "body": { - "name": "testNetworkGroup", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", - "type": "Microsoft.Network/networkManagers/networkGroups", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample group", - "memberType": "VirtualNetwork", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupList.json deleted file mode 100644 index a89bb15273d1..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupList.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager Network Groups", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "testNetworkGroup", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", - "type": "Microsoft.Network/networkManagers/networkGroups", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample group", - "memberType": "VirtualNetwork", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupPut.json deleted file mode 100644 index 8eb9eef586f8..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerGroupPut.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "title": "Create/Update Azure Virtual Network Manager Network Group", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "parameters": { - "properties": { - "description": "A sample group", - "memberType": "VirtualNetwork" - } - } - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "name": "testNetworkGroup", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", - "type": "Microsoft.Network/networkManagers/networkGroups", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample group", - "memberType": "VirtualNetwork", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "name": "testNetworkGroup", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", - "type": "Microsoft.Network/networkManagers/networkGroups", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample group", - "memberType": "VirtualNetwork", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerList.json deleted file mode 100644 index 51e694a514c4..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerList.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "testNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "type": "Microsoft.Network/networkManagers", - "etag": "sadf-asdf-asdf-asdf", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "Connectivity" - ], - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerListAll.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerListAll.json deleted file mode 100644 index 053b6efd482b..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerListAll.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager in Subscription", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "testNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "type": "Microsoft.Network/networkManagers", - "etag": "sadf-asdf-asdf-asdf", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "SecurityUser" - ], - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/providers/Microsoft.Network/networkManagers?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPatch.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPatch.json deleted file mode 100644 index 876d02275816..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPatch.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "title": "Patch Managed Network Tags", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "parameters": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "200": { - "body": { - "name": "testNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", - "type": "Microsoft.Network/networkManager", - "etag": "W/\"00000000-0000-0000-0000-000000000000\"", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000001" - ] - }, - "networkManagerScopeAccesses": [ - "Connectivity" - ], - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPut.json deleted file mode 100644 index 6f5b1d0d2c0e..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerPut.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "title": "Create/Update Azure Virtual Network Manager", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "TestNetworkManager", - "parameters": { - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [ - "/Microsoft.Management/testmg" - ], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "Connectivity" - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "TestNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager", - "type": "Microsoft.Network/networkManagers", - "etag": "sadf-asdf-asdf-asdf", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [ - "Microsoft.Management/managementGroups/testMg" - ], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "Connectivity" - ], - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "name": "TestNetworkManager", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager", - "type": "Microsoft.Network/networkManagers", - "etag": "sadf-asdf-asdf-asdf", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "My Test Network Manager", - "networkManagerScopes": { - "managementGroups": [ - "Microsoft.Management/managementGroups/testMg" - ], - "subscriptions": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - }, - "networkManagerScopeAccesses": [ - "Connectivity" - ], - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionDelete.json deleted file mode 100644 index c3582030e0b0..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionDelete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "Delete Azure Virtual Network Manager Scope Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "scopeConnectionName": "TestScopeConnection", - "force": false - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionGet.json deleted file mode 100644 index 53dabee038b1..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionGet.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Scope Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "scopeConnectionName": "TestScopeConnection" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", - "type": "Microsoft.Network/networkManagers/scopeConnections", - "name": "TestScopeConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", - "connectionState": "Pending", - "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", - "description": "This is a scope connection to a cross tenant subscription." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionList.json deleted file mode 100644 index 8ed037707d3c..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionList.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager Scope Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "value": [ - { - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", - "type": "Microsoft.Network/networkManagers/scopeConnections", - "name": "TestScopeConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", - "connectionState": "Pending", - "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", - "description": "This is a scope connection to a cross tenant subscription." - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections?api-version=2021-02-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionPut.json deleted file mode 100644 index bad8735c3bac..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerScopeConnectionPut.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "title": "Create/Update Azure Virtual Network Manager Scope Connection", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "scopeConnectionName": "TestScopeConnection", - "parameters": { - "properties": { - "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", - "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", - "description": "This is a scope connection to a cross tenant subscription." - } - } - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", - "type": "Microsoft.Network/networkManagers/scopeConnections", - "name": "TestScopeConnection", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", - "connectionState": "Pending", - "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", - "description": "This is a scope connection to a cross tenant subscription." - } - } - }, - "201": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", - "type": "Microsoft.Network/networkManagers/scopeConnections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", - "connectionState": "Pending", - "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", - "description": "This is a scope connection to a cross tenant subscription." - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json deleted file mode 100644 index fedae988fb80..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json deleted file mode 100644 index 87d62d589b48..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "applyOnNetworkIntentPolicyBasedServices": [ - "None" - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json deleted file mode 100644 index 6d73cc873563..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "applyOnNetworkIntentPolicyBasedServices": [ - "None" - ] - } - } - ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json deleted file mode 100644 index 2919af38237b..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "securityAdminConfiguration": { - "properties": { - "description": "A sample policy", - "applyOnNetworkIntentPolicyBasedServices": [ - "None" - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "applyOnNetworkIntentPolicyBasedServices": [ - "None" - ] - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "applyOnNetworkIntentPolicyBasedServices": [ - "None" - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json deleted file mode 100644 index fcbdf6be78e1..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json deleted file mode 100644 index 8a9687ae49cd..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "deleteExistingNSGs": "True" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json deleted file mode 100644 index 294512dbdf83..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "deleteExistingNSGs": "True" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json deleted file mode 100644 index 53b341708c17..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "securityUserConfiguration": { - "properties": { - "description": "A sample policy", - "deleteExistingNSGs": "True" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "deleteExistingNSGs": "True" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityConfigurations", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "deleteExistingNSGs": "True" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberDelete.json deleted file mode 100644 index cb9cebc62f9a..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberDelete.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Delete Azure Virtual Network Manager Static Member", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "SampleRG", - "networkManagerName": "TestNM", - "networkGroupName": "testNetworkGroup", - "staticMemberName": "testStaticMember", - "force": false - }, - "responses": { - "200": {}, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/staticMembers/testStaticMember/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberGet.json deleted file mode 100644 index 74e8e8b4c107..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Static Member", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "staticMemberName": "testStaticMember" - }, - "responses": { - "200": { - "body": { - "name": "testStaticMember", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", - "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberList.json deleted file mode 100644 index 8271480c24d9..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberList.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "List Azure Virtual Network Manager Static Members", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "testStaticMember", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", - "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", - "region": "useast2", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberPut.json deleted file mode 100644 index 8d1129d53b43..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerStaticMemberPut.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "title": "Create/Update Azure Virtual Network Manager Static Member", - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "staticMemberName": "testStaticMember", - "parameters": { - "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" - } - } - }, - "responses": { - "200": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "name": "testStaticMember", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", - "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", - "region": "useast2", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "headers": { - "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" - }, - "body": { - "name": "testStaticMember", - "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", - "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", - "region": "useast2", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json deleted file mode 100644 index 36b1afdee907..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionGet.json deleted file mode 100644 index f4a2cb0b2c4e..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionGet.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "testRuleCollection", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample rule collection", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionList.json deleted file mode 100644 index e2daa2bd1424..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionList.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "testRuleCollection", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample rule collection", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionPut.json deleted file mode 100644 index 7b5366c80f42..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleCollectionPut.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "userRuleCollection": { - "properties": { - "description": "A sample policy", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", - "name": "myTestSecurityConfig", - "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "A sample policy", - "provisioningState": "Succeeded", - "appliesToGroups": [ - { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" - } - ] - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleDelete.json deleted file mode 100644 index feb0fe9a2419..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleDelete.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleUserRule", - "force": false - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01-preview" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleGet.json deleted file mode 100644 index cb383a9d4d12..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleGet.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig", - "networkManagerName": "testNetworkManager", - "ruleName": "SampleUserRule" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", - "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", - "name": "SampleUserRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleList.json deleted file mode 100644 index 73fc864016f4..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRuleList.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "ruleCollectionName": "testRuleCollection", - "configurationName": "myTestSecurityConfig" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", - "type": "Microsoft.Network/networkManagers/securityConfigurations/ruleCollections/rules", - "name": "SampleUserRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2022-06-01-preview&$skipToken=10" - } - } - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRulePut.json deleted file mode 100644 index d624531b1f34..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkManagerUserRulePut.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleUserRule", - "userRule": { - "kind": "Custom", - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/Policy1/ruleCollections/testRuleCollection/rules/SampleUserRule", - "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", - "name": "SampleUserRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", - "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", - "name": "SampleUserRule", - "kind": "Custom", - "systemData": { - "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "createdByType": "User", - "createdAt": "2021-01-11T18:52:27Z", - "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-11T18:52:27Z" - }, - "properties": { - "description": "Sample User Rule", - "protocol": "Tcp", - "sources": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "destinations": [ - { - "addressPrefixType": "IPPrefix", - "addressPrefix": "*" - } - ], - "sourcePortRanges": [ - "0-65535" - ], - "destinationPortRanges": [ - "22" - ], - "direction": "Inbound", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 3a816c6e44a4..2a83ba54d4df 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -2681,6 +2681,9 @@ directive: - suppress: R3023 from: networkManagerGroupMembership.json reason: Extension Resource, not new RP. + - suppress: XmsIdentifierValidation + from: networkManagerGroupMembership.json + reason: By design, no id is needed for groupmembership resources. ``` --- From e1f6f0e1dd5aa386f4daa16e2a7a5020ea3e53f3 Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Wed, 4 Jan 2023 17:10:57 -0800 Subject: [PATCH 7/9] fix --- .../networkManagerGroupMembership.json | 34 ++++--------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json index e14ed14c0683..786f65821fc4 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -40,7 +40,7 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/VirtualNetworkNameParameter" @@ -109,30 +109,16 @@ "$ref": "#/definitions/NetworkGroupMembershipProperties", "description": "The network group membership properties" }, - "id": { - "type": "string", - "description": "Resource ID." - }, "location": { "type": "string", "description": "Resource Location." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata related to this resource.", - "$ref": "./network.json#/definitions/SystemData" } }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + } + ], "description": "Resource of networkGroupMembership." }, "NetworkGroupMembershipProperties": { @@ -233,14 +219,6 @@ } }, "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "VirtualNetworkNameParameter": { "name": "virtualNetworkName", "in": "path", From 30d62e4bac186c8226f6ccd81a45bcac1844b8ad Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Thu, 5 Jan 2023 15:59:32 -0800 Subject: [PATCH 8/9] fix as comments --- .../examples/NetworkGroupMembershipsList.json | 8 ++++---- .../2022-06-01-preview/networkManagerGroupMembership.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json index 49f9d10f45ea..1a734d84f78e 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/examples/NetworkGroupMembershipsList.json @@ -30,10 +30,10 @@ "sources": [ { "kind": "Policy", - "policyAssignmentId": "TestPolicyAssignmentId", - "policySetDefinitionId": "TestPolicySetDefinitionId", - "policyDefinitionId": "TestPolicyDefinitionId", - "policyDefinitionReferenceId": "TestDefinitionReferenceId" + "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.Authorization/policyAssignments/TestPolicy", + "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.Authorization/policySetDefinitions/TestPolicy", + "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.Authorization/policyDefinitions/TestPolicy", + "policyDefinitionReferenceId": "1111111111111111111" } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json index 786f65821fc4..3366aec7bae2 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-06-01-preview/networkManagerGroupMembership.json @@ -63,7 +63,7 @@ "description": "List networkGroupMemberships applied on a virtual network.", "responses": { "200": { - "description": "OK - Returns information about the configurations.", + "description": "OK - Returns information about the group membership.", "schema": { "$ref": "#/definitions/NetworkGroupMembershipsListResult" } @@ -111,7 +111,7 @@ }, "location": { "type": "string", - "description": "Resource Location." + "description": "Parent Resource Virtual Network Location." } }, "allOf": [ @@ -149,7 +149,7 @@ "description": "Source list" } }, - "description": "The network manager effective connectivity configuration" + "description": "The network manager Network Group Membership Group" }, "BaseNetworkGroupMembershipSource": { "type": "object", @@ -214,7 +214,7 @@ "$ref": "#/definitions/BaseNetworkGroupMembershipSource" } ], - "description": "Policy Membership Source.", + "description": "Policy Network Group Membership Source.", "x-ms-discriminator-value": "Policy" } }, From 5aebe1bd1fc76e6e890b4c74061aa6ba47052ca8 Mon Sep 17 00:00:00 2001 From: "Fan Yang (AZURE)" Date: Mon, 9 Jan 2023 19:30:51 -0800 Subject: [PATCH 9/9] fix --- specification/network/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 2a83ba54d4df..613b8df7ec9b 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the Network API. title: NetworkManagementClient description: Network Client openapi-type: arm -tag: package-preview-2022-06 +tag: package-2022-07 ``` ### Tag: package-2022-06-preview