-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from ashutmi/get_inbound_sec_rule_operation
[Network - Virtual Appliance] Support of GET operation for NVA Inbound Security Rule
- Loading branch information
Showing
6 changed files
with
360 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Commands/network/virtual-appliance/inbound-security-rule/_show.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _network virtual-appliance inbound-security-rule show_ | ||
|
||
Get the available specified Network Virtual Appliance Inbound Security Rules Collection. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt2aXJ0dWFsYXBwbGlhbmNlcy97fS9pbmJvdW5kc2VjdXJpdHlydWxlcy97fQ==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkvirtualappliances/{}/inboundsecurityrules/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Get Inbound Security Rule | ||
```bash | ||
network virtual-appliance inbound-security-rule show --nva-name "MyName" -g "MyRG" --subscription {subID} --name "InboundRuleCollection" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...rL25ldHdvcmt2aXJ0dWFsYXBwbGlhbmNlcy97fS9pbmJvdW5kc2VjdXJpdHlydWxlcy97fQ==/2024-01-01.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkvirtualappliances/{}/inboundsecurityrules/{}", "version": "2024-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrVmlydHVhbEFwcGxpYW5jZXMve25ldHdvcmtWaXJ0dWFsQXBwbGlhbmNlTmFtZX0vaW5ib3VuZFNlY3VyaXR5UnVsZXMve3J1bGVDb2xsZWN0aW9uTmFtZX0=/V/MjAyNC0wMS0wMQ=="}], "commandGroups": [{"name": "network virtual-appliance inbound-security-rule", "commands": [{"name": "create", "version": "2024-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkvirtualappliances/{}/inboundsecurityrules/{}", "version": "2024-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrVmlydHVhbEFwcGxpYW5jZXMve25ldHdvcmtWaXJ0dWFsQXBwbGlhbmNlTmFtZX0vaW5ib3VuZFNlY3VyaXR5UnVsZXMve3J1bGVDb2xsZWN0aW9uTmFtZX0=/V/MjAyNC0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.networkVirtualApplianceName", "options": ["nva-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Virtual Appliance."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleCollectionName", "options": ["n", "name", "rule-collection-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of security rule collection."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"type": "ResourceId", "var": "$parameters.id", "options": ["id"], "group": "Parameters", "help": {"short": "Resource ID."}, "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/inboundSecurityRules/{}"}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.ruleType", "options": ["rule-type"], "group": "Properties", "help": {"short": "Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule."}, "enum": {"items": [{"name": "AutoExpire", "value": "AutoExpire"}, {"name": "Permanent", "value": "Permanent"}]}}, {"type": "array<object>", "var": "$parameters.properties.rules", "options": ["rules"], "group": "Properties", "help": {"short": "List of allowed rules."}, "item": {"type": "object", "args": [{"type": "array<string>", "var": "$parameters.properties.rules[].appliesOn", "options": ["applies-on"], "help": {"short": "Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule type"}, "item": {"type": "string"}}, {"type": "integer32", "var": "$parameters.properties.rules[].destinationPortRange", "options": ["destination-port-range"], "help": {"short": "NVA port ranges to be opened up. One needs to provide specific ports."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "array<string>", "var": "$parameters.properties.rules[].destinationPortRanges", "options": ["destination-port-ranges"], "help": {"short": "NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 and 65535."}, "item": {"type": "string"}}, {"type": "string", "var": "$parameters.properties.rules[].name", "options": ["name"], "help": {"short": "Name of the rule."}}, {"type": "string", "var": "$parameters.properties.rules[].protocol", "options": ["protocol"], "help": {"short": "Protocol. This should be either TCP or UDP."}, "enum": {"items": [{"name": "TCP", "value": "TCP"}, {"name": "UDP", "value": "UDP"}]}}, {"type": "string", "var": "$parameters.properties.rules[].sourceAddressPrefix", "options": ["source-address-prefix"], "help": {"short": "The CIDR or source IP range."}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "InboundSecurityRule_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "networkVirtualApplianceName", "arg": "$Path.networkVirtualApplianceName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "ruleCollectionName", "arg": "$Path.ruleCollectionName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "ResourceId", "name": "id", "arg": "$parameters.id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/inboundSecurityRules/{}"}}, {"type": "string", "name": "name", "arg": "$Path.ruleCollectionName"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "ruleType", "arg": "$parameters.properties.ruleType", "enum": {"items": [{"value": "AutoExpire"}, {"value": "Permanent"}]}}, {"type": "array<object>", "name": "rules", "arg": "$parameters.properties.rules", "item": {"type": "object", "props": [{"type": "array<string>", "name": "appliesOn", "arg": "$parameters.properties.rules[].appliesOn", "item": {"type": "string"}}, {"type": "integer32", "name": "destinationPortRange", "arg": "$parameters.properties.rules[].destinationPortRange", "format": {"maximum": 65535, "minimum": 0}}, {"type": "array<string>", "name": "destinationPortRanges", "arg": "$parameters.properties.rules[].destinationPortRanges", "item": {"type": "string"}}, {"type": "string", "name": "name", "arg": "$parameters.properties.rules[].name"}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.rules[].protocol", "enum": {"items": [{"value": "TCP"}, {"value": "UDP"}]}}, {"type": "string", "name": "sourceAddressPrefix", "arg": "$parameters.properties.rules[].sourceAddressPrefix"}]}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/inboundSecurityRules/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "ruleType", "enum": {"items": [{"value": "AutoExpire"}, {"value": "Permanent"}]}}, {"type": "array<object>", "name": "rules", "item": {"type": "object", "props": [{"type": "array<string>", "name": "appliesOn", "item": {"type": "string"}}, {"type": "integer32", "name": "destinationPortRange", "format": {"maximum": 65535, "minimum": 0}}, {"type": "array<string>", "name": "destinationPortRanges", "item": {"type": "string"}}, {"type": "string", "name": "name"}, {"type": "string", "name": "protocol", "enum": {"items": [{"value": "TCP"}, {"value": "UDP"}]}}, {"type": "string", "name": "sourceAddressPrefix"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "show", "version": "2024-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkvirtualappliances/{}/inboundsecurityrules/{}", "version": "2024-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrVmlydHVhbEFwcGxpYW5jZXMve25ldHdvcmtWaXJ0dWFsQXBwbGlhbmNlTmFtZX0vaW5ib3VuZFNlY3VyaXR5UnVsZXMve3J1bGVDb2xsZWN0aW9uTmFtZX0=/V/MjAyNC0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.networkVirtualApplianceName", "options": ["nva-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Virtual Appliance."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleCollectionName", "options": ["n", "name", "rule-collection-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of security rule collection."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "InboundSecurityRule_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "networkVirtualApplianceName", "arg": "$Path.networkVirtualApplianceName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "ruleCollectionName", "arg": "$Path.ruleCollectionName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/inboundSecurityRules/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "ruleType", "enum": {"items": [{"value": "AutoExpire"}, {"value": "Permanent"}]}}, {"type": "array<object>", "name": "rules", "item": {"type": "object", "props": [{"type": "array<string>", "name": "appliesOn", "item": {"type": "string"}}, {"type": "integer32", "name": "destinationPortRange", "format": {"maximum": 65535, "minimum": 0}}, {"type": "array<string>", "name": "destinationPortRanges", "item": {"type": "string"}}, {"type": "string", "name": "name"}, {"type": "string", "name": "protocol", "enum": {"items": [{"value": "TCP"}, {"value": "UDP"}]}}, {"type": "string", "name": "sourceAddressPrefix"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} |
Oops, something went wrong.