Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtzZWN1cml0eXBlcmltZXRlcnMve30vcHJvZmlsZXMve30vYWNjZXNzcnVsZXMve30=/2021-02-01-preview.xml (585 lines of code) (raw):
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networksecurityperimeters/{}/profiles/{}/accessrules/{}" version="2021-02-01-preview" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJzL3tuZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJOYW1lfS9wcm9maWxlcy97cHJvZmlsZU5hbWV9L2FjY2Vzc1J1bGVzL3thY2Nlc3NSdWxlTmFtZX0=/V/MjAyMS0wMi0wMS1wcmV2aWV3"/>
<commandGroup name="network perimeter profile access-rule">
<command name="show" version="2021-02-01-preview">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networksecurityperimeters/{}/profiles/{}/accessrules/{}" version="2021-02-01-preview" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJzL3tuZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJOYW1lfS9wcm9maWxlcy97cHJvZmlsZU5hbWV9L2FjY2Vzc1J1bGVzL3thY2Nlc3NSdWxlTmFtZX0=/V/MjAyMS0wMi0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.accessRuleName" options="access-rule-name name n" required="True" idPart="child_name_2">
<help short="The name of the NSP access rule."/>
</arg>
<arg type="string" var="$Path.networkSecurityPerimeterName" options="perimeter-name" required="True" idPart="name">
<help short="The name of the network security perimeter."/>
</arg>
<arg type="string" var="$Path.profileName" options="profile-name" required="True" idPart="child_name_1">
<help short="The name of the NSP profile."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="NspAccessRules_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}">
<request method="get">
<path>
<param type="string" name="accessRuleName" arg="$Path.accessRuleName" required="True"/>
<param type="string" name="networkSecurityPerimeterName" arg="$Path.networkSecurityPerimeterName" required="True"/>
<param type="string" name="profileName" arg="$Path.profileName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2021-02-01-preview""/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkSecurityPerimeters/{}/profiles/{}/accessRules/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop type="string" name="name"/>
<prop type="object" name="properties">
<prop type="array<string>" name="addressPrefixes">
<item type="string"/>
</prop>
<prop type="string" name="direction">
<enum>
<item value=""Inbound""/>
<item value=""Outbound""/>
</enum>
</prop>
<prop type="array<string>" name="emailAddresses">
<item type="string"/>
</prop>
<prop type="array<string>" name="fullyQualifiedDomainNames">
<item type="string"/>
</prop>
<prop type="array<object>" name="networkSecurityPerimeters">
<item type="object">
<prop type="string" name="id"/>
<prop readOnly="True" type="string" name="location"/>
<prop readOnly="True" type="string" name="perimeterGuid"/>
</item>
</prop>
<prop type="array<string>" name="phoneNumbers">
<item type="string"/>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Creating""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="array<object>" name="subscriptions">
<item type="object">
<prop type="string" name="id"/>
</item>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2021-02-01-preview" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networksecurityperimeters/{}/profiles/{}/accessrules/{}" version="2021-02-01-preview" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJzL3tuZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJOYW1lfS9wcm9maWxlcy97cHJvZmlsZU5hbWV9L2FjY2Vzc1J1bGVzL3thY2Nlc3NSdWxlTmFtZX0=/V/MjAyMS0wMi0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.accessRuleName" options="access-rule-name name n" required="True" idPart="child_name_2">
<help short="The name of the NSP access rule."/>
</arg>
<arg type="string" var="$Path.networkSecurityPerimeterName" options="perimeter-name" required="True" idPart="name">
<help short="The name of the network security perimeter."/>
</arg>
<arg type="string" var="$Path.profileName" options="profile-name" required="True" idPart="child_name_1">
<help short="The name of the NSP profile."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="NspAccessRules_Delete">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}">
<request method="delete">
<path>
<param type="string" name="accessRuleName" arg="$Path.accessRuleName" required="True"/>
<param type="string" name="networkSecurityPerimeterName" arg="$Path.networkSecurityPerimeterName" required="True"/>
<param type="string" name="profileName" arg="$Path.profileName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2021-02-01-preview""/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2021-02-01-preview">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networksecurityperimeters/{}/profiles/{}/accessrules/{}" version="2021-02-01-preview" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJzL3tuZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJOYW1lfS9wcm9maWxlcy97cHJvZmlsZU5hbWV9L2FjY2Vzc1J1bGVzL3thY2Nlc3NSdWxlTmFtZX0=/V/MjAyMS0wMi0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.accessRuleName" options="access-rule-name name n" required="True" idPart="child_name_2">
<help short="The name of the NSP access rule."/>
</arg>
<arg type="string" var="$Path.networkSecurityPerimeterName" options="perimeter-name" required="True" idPart="name">
<help short="The name of the network security perimeter."/>
</arg>
<arg type="string" var="$Path.profileName" options="profile-name" required="True" idPart="child_name_1">
<help short="The name of the NSP profile."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Parameters">
<arg type="ResourceLocation" var="$parameters.location" options="location l" group="Parameters">
<help short="Resource location."/>
</arg>
<arg type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Resource tags."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="array<string>" var="$parameters.properties.addressPrefixes" options="address-prefixes" group="Properties">
<help short="Inbound address prefixes (IPv4/IPv6)"/>
<item type="string"/>
</arg>
<arg type="string" var="$parameters.properties.direction" options="direction" group="Properties">
<help short="Direction that specifies whether the access rules is inbound/outbound."/>
<enum>
<item name="Inbound" value=""Inbound""/>
<item name="Outbound" value=""Outbound""/>
</enum>
</arg>
<arg type="array<string>" var="$parameters.properties.emailAddresses" options="email-addresses" group="Properties">
<help short="Outbound rules email address format."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.properties.fullyQualifiedDomainNames" options="fqdn" group="Properties">
<help short="Outbound rules fully qualified domain name format."/>
<item type="string"/>
</arg>
<arg type="array<object>" var="$parameters.properties.networkSecurityPerimeters" options="nsp" group="Properties">
<help short="Inbound rule specified by the perimeter id."/>
<item type="object">
<arg type="string" var="$parameters.properties.networkSecurityPerimeters[].id" options="id">
<help short="NSP id in the ARM id format."/>
</arg>
</item>
</arg>
<arg type="array<string>" var="$parameters.properties.phoneNumbers" options="phone-numbers" group="Properties">
<help short="Outbound rules phone number format."/>
<item type="string"/>
</arg>
<arg type="array<object>" var="$parameters.properties.subscriptions" options="subscriptions" group="Properties">
<help short="Subscription id in the ARM id format."/>
<item type="object">
<arg type="string" var="$parameters.properties.subscriptions[].id" options="id">
<help short="Subscription ID in the ARM ID fromat."/>
</arg>
</item>
</arg>
</argGroup>
<operation operationId="NspAccessRules_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}">
<request method="put">
<path>
<param type="string" name="accessRuleName" arg="$Path.accessRuleName" required="True"/>
<param type="string" name="networkSecurityPerimeterName" arg="$Path.networkSecurityPerimeterName" required="True"/>
<param type="string" name="profileName" arg="$Path.profileName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2021-02-01-preview""/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="ResourceLocation" name="location" arg="$parameters.location"/>
<prop type="string" name="name" arg="$Path.accessRuleName"/>
<prop type="object" name="properties">
<prop type="array<string>" name="addressPrefixes" arg="$parameters.properties.addressPrefixes">
<item type="string"/>
</prop>
<prop type="string" name="direction" arg="$parameters.properties.direction">
<enum>
<item value=""Inbound""/>
<item value=""Outbound""/>
</enum>
</prop>
<prop type="array<string>" name="emailAddresses" arg="$parameters.properties.emailAddresses">
<item type="string"/>
</prop>
<prop type="array<string>" name="fullyQualifiedDomainNames" arg="$parameters.properties.fullyQualifiedDomainNames">
<item type="string"/>
</prop>
<prop type="array<object>" name="networkSecurityPerimeters" arg="$parameters.properties.networkSecurityPerimeters">
<item type="object">
<prop type="string" name="id" arg="$parameters.properties.networkSecurityPerimeters[].id"/>
</item>
</prop>
<prop type="array<string>" name="phoneNumbers" arg="$parameters.properties.phoneNumbers">
<item type="string"/>
</prop>
<prop type="array<object>" name="subscriptions" arg="$parameters.properties.subscriptions">
<item type="object">
<prop type="string" name="id" arg="$parameters.properties.subscriptions[].id"/>
</item>
</prop>
</prop>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkSecurityPerimeters/{}/profiles/{}/accessRules/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop type="string" name="name"/>
<prop type="object" name="properties">
<prop type="array<string>" name="addressPrefixes">
<item type="string"/>
</prop>
<prop type="string" name="direction">
<enum>
<item value=""Inbound""/>
<item value=""Outbound""/>
</enum>
</prop>
<prop type="array<string>" name="emailAddresses">
<item type="string"/>
</prop>
<prop type="array<string>" name="fullyQualifiedDomainNames">
<item type="string"/>
</prop>
<prop type="array<object>" name="networkSecurityPerimeters">
<item type="object">
<prop type="string" name="id"/>
<prop readOnly="True" type="string" name="location"/>
<prop readOnly="True" type="string" name="perimeterGuid"/>
</item>
</prop>
<prop type="array<string>" name="phoneNumbers">
<item type="string"/>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Creating""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="array<object>" name="subscriptions">
<item type="object">
<prop type="string" name="id"/>
</item>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2021-02-01-preview">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networksecurityperimeters/{}/profiles/{}/accessrules/{}" version="2021-02-01-preview" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJzL3tuZXR3b3JrU2VjdXJpdHlQZXJpbWV0ZXJOYW1lfS9wcm9maWxlcy97cHJvZmlsZU5hbWV9L2FjY2Vzc1J1bGVzL3thY2Nlc3NSdWxlTmFtZX0=/V/MjAyMS0wMi0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.accessRuleName" options="access-rule-name name n" required="True" idPart="child_name_2">
<help short="The name of the NSP access rule."/>
</arg>
<arg type="string" var="$Path.networkSecurityPerimeterName" options="perimeter-name" required="True" idPart="name">
<help short="The name of the network security perimeter."/>
</arg>
<arg type="string" var="$Path.profileName" options="profile-name" required="True" idPart="child_name_1">
<help short="The name of the NSP profile."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Parameters">
<arg nullable="True" type="ResourceLocation" var="$parameters.location" options="location l" group="Parameters">
<help short="Resource location."/>
</arg>
<arg nullable="True" type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Resource tags."/>
<additionalProp>
<item nullable="True" type="string"/>
</additionalProp>
</arg>
</argGroup>
<argGroup name="Properties">
<arg nullable="True" type="array<string>" var="$parameters.properties.addressPrefixes" options="address-prefixes" group="Properties">
<help short="Inbound address prefixes (IPv4/IPv6)"/>
<item nullable="True" type="string"/>
</arg>
<arg nullable="True" type="string" var="$parameters.properties.direction" options="direction" group="Properties">
<help short="Direction that specifies whether the access rules is inbound/outbound."/>
<enum>
<item name="Inbound" value=""Inbound""/>
<item name="Outbound" value=""Outbound""/>
</enum>
</arg>
<arg nullable="True" type="array<string>" var="$parameters.properties.emailAddresses" options="email-addresses" group="Properties">
<help short="Outbound rules email address format."/>
<item nullable="True" type="string"/>
</arg>
<arg nullable="True" type="array<string>" var="$parameters.properties.fullyQualifiedDomainNames" options="fqdn" group="Properties">
<help short="Outbound rules fully qualified domain name format."/>
<item nullable="True" type="string"/>
</arg>
<arg nullable="True" type="array<object>" var="$parameters.properties.networkSecurityPerimeters" options="nsp" group="Properties">
<help short="Inbound rule specified by the perimeter id."/>
<item nullable="True" type="object">
<arg nullable="True" type="string" var="$parameters.properties.networkSecurityPerimeters[].id" options="id">
<help short="NSP id in the ARM id format."/>
</arg>
</item>
</arg>
<arg nullable="True" type="array<string>" var="$parameters.properties.phoneNumbers" options="phone-numbers" group="Properties">
<help short="Outbound rules phone number format."/>
<item nullable="True" type="string"/>
</arg>
<arg nullable="True" type="array<object>" var="$parameters.properties.subscriptions" options="subscriptions" group="Properties">
<help short="Subscription id in the ARM id format."/>
<item nullable="True" type="object">
<arg nullable="True" type="string" var="$parameters.properties.subscriptions[].id" options="id">
<help short="Subscription ID in the ARM ID fromat."/>
</arg>
</item>
</arg>
</argGroup>
<operation operationId="NspAccessRules_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}">
<request method="get">
<path>
<param type="string" name="accessRuleName" arg="$Path.accessRuleName" required="True"/>
<param type="string" name="networkSecurityPerimeterName" arg="$Path.networkSecurityPerimeterName" required="True"/>
<param type="string" name="profileName" arg="$Path.profileName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2021-02-01-preview""/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object" cls="NspAccessRule_read">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkSecurityPerimeters/{}/profiles/{}/accessRules/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop type="string" name="name"/>
<prop type="object" name="properties">
<prop type="array<string>" name="addressPrefixes">
<item type="string"/>
</prop>
<prop type="string" name="direction">
<enum>
<item value=""Inbound""/>
<item value=""Outbound""/>
</enum>
</prop>
<prop type="array<string>" name="emailAddresses">
<item type="string"/>
</prop>
<prop type="array<string>" name="fullyQualifiedDomainNames">
<item type="string"/>
</prop>
<prop type="array<object>" name="networkSecurityPerimeters">
<item type="object">
<prop type="string" name="id"/>
<prop readOnly="True" type="string" name="location"/>
<prop readOnly="True" type="string" name="perimeterGuid"/>
</item>
</prop>
<prop type="array<string>" name="phoneNumbers">
<item type="string"/>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Creating""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="array<object>" name="subscriptions">
<item type="object">
<prop type="string" name="id"/>
</item>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<operation>
<instanceUpdate ref="$Instance">
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="ResourceLocation" name="location" arg="$parameters.location"/>
<prop type="string" name="name" arg="$Path.accessRuleName"/>
<prop type="object" name="properties">
<prop type="array<string>" name="addressPrefixes" arg="$parameters.properties.addressPrefixes">
<item type="string"/>
</prop>
<prop type="string" name="direction" arg="$parameters.properties.direction">
<enum>
<item value=""Inbound""/>
<item value=""Outbound""/>
</enum>
</prop>
<prop type="array<string>" name="emailAddresses" arg="$parameters.properties.emailAddresses">
<item type="string"/>
</prop>
<prop type="array<string>" name="fullyQualifiedDomainNames" arg="$parameters.properties.fullyQualifiedDomainNames">
<item type="string"/>
</prop>
<prop type="array<object>" name="networkSecurityPerimeters" arg="$parameters.properties.networkSecurityPerimeters">
<item type="object">
<prop type="string" name="id" arg="$parameters.properties.networkSecurityPerimeters[].id"/>
</item>
</prop>
<prop type="array<string>" name="phoneNumbers" arg="$parameters.properties.phoneNumbers">
<item type="string"/>
</prop>
<prop type="array<object>" name="subscriptions" arg="$parameters.properties.subscriptions">
<item type="object">
<prop type="string" name="id" arg="$parameters.properties.subscriptions[].id"/>
</item>
</prop>
</prop>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</instanceUpdate>
</operation>
<operation operationId="NspAccessRules_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}">
<request method="put">
<path>
<param type="string" name="accessRuleName" arg="$Path.accessRuleName" required="True"/>
<param type="string" name="networkSecurityPerimeterName" arg="$Path.networkSecurityPerimeterName" required="True"/>
<param type="string" name="profileName" arg="$Path.profileName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2021-02-01-preview""/>
</const>
</query>
<body>
<json ref="$Instance"/>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="@NspAccessRule_read"/>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>