From 16dbc24941849c96bae9f540603c843e9dc8c6d8 Mon Sep 17 00:00:00 2001 From: william051200 Date: Wed, 21 Jan 2026 11:31:26 +0800 Subject: [PATCH] Export network ddos-custom-policy from swagger --- .../network/ddos-custom-policy/_create.md | 16 + .../network/ddos-custom-policy/_delete.md | 16 + Commands/network/ddos-custom-policy/_show.md | 16 + .../network/ddos-custom-policy/_update.md | 16 + Commands/network/ddos-custom-policy/readme.md | 17 + Commands/network/readme.md | 3 + .../2025-03-01.json | 1 + .../2025-03-01.xml | 587 ++++++++++++++++++ 8 files changed, 672 insertions(+) create mode 100644 Commands/network/ddos-custom-policy/_create.md create mode 100644 Commands/network/ddos-custom-policy/_delete.md create mode 100644 Commands/network/ddos-custom-policy/_show.md create mode 100644 Commands/network/ddos-custom-policy/_update.md create mode 100644 Commands/network/ddos-custom-policy/readme.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml diff --git a/Commands/network/ddos-custom-policy/_create.md b/Commands/network/ddos-custom-policy/_create.md new file mode 100644 index 000000000..573248bd5 --- /dev/null +++ b/Commands/network/ddos-custom-policy/_create.md @@ -0,0 +1,16 @@ +# [Command] _network ddos-custom-policy create_ + +Create a DDoS custom policy. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml) **Stable** + + + +#### examples + +- Create DDoS custom policy + ```bash + network ddos-custom-policy create --resource-group rg1 --ddos-custom-policy-name test-ddos-custom-policy --location centraluseuap --detection-rules "[{name:detectionRuleTcp,detection-mode:TrafficThreshold,traffic-detection-rule:{traffic-type:Tcp,packets-per-second:1000000}}]" + ``` diff --git a/Commands/network/ddos-custom-policy/_delete.md b/Commands/network/ddos-custom-policy/_delete.md new file mode 100644 index 000000000..2f992cf84 --- /dev/null +++ b/Commands/network/ddos-custom-policy/_delete.md @@ -0,0 +1,16 @@ +# [Command] _network ddos-custom-policy delete_ + +Delete the specified DDoS custom policy. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml) **Stable** + + + +#### examples + +- Delete DDoS custom policy + ```bash + network ddos-custom-policy delete --resource-group rg1 --ddos-custom-policy-name test-ddos-custom-policy + ``` diff --git a/Commands/network/ddos-custom-policy/_show.md b/Commands/network/ddos-custom-policy/_show.md new file mode 100644 index 000000000..3051fe445 --- /dev/null +++ b/Commands/network/ddos-custom-policy/_show.md @@ -0,0 +1,16 @@ +# [Command] _network ddos-custom-policy show_ + +Get information about the specified DDoS custom policy. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml) **Stable** + + + +#### examples + +- Get DDoS custom policy + ```bash + network ddos-custom-policy show --resource-group rg1 --ddos-custom-policy-name test-ddos-custom-policy + ``` diff --git a/Commands/network/ddos-custom-policy/_update.md b/Commands/network/ddos-custom-policy/_update.md new file mode 100644 index 000000000..667ac0080 --- /dev/null +++ b/Commands/network/ddos-custom-policy/_update.md @@ -0,0 +1,16 @@ +# [Command] _network ddos-custom-policy update_ + +Update a DDoS custom policy. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml) **Stable** + + + +#### examples + +- Create DDoS custom policy + ```bash + network ddos-custom-policy update --resource-group rg1 --ddos-custom-policy-name test-ddos-custom-policy --location centraluseuap --detection-rules "[{name:detectionRuleTcp,detection-mode:TrafficThreshold,traffic-detection-rule:{traffic-type:Tcp,packets-per-second:1000000}}]" + ``` diff --git a/Commands/network/ddos-custom-policy/readme.md b/Commands/network/ddos-custom-policy/readme.md new file mode 100644 index 000000000..f8888b096 --- /dev/null +++ b/Commands/network/ddos-custom-policy/readme.md @@ -0,0 +1,17 @@ +# [Group] _network ddos-custom-policy_ + +Manage Ddos Custom Policy + +## Commands + +- [create](/Commands/network/ddos-custom-policy/_create.md) +: Create a DDoS custom policy. + +- [delete](/Commands/network/ddos-custom-policy/_delete.md) +: Delete the specified DDoS custom policy. + +- [show](/Commands/network/ddos-custom-policy/_show.md) +: Get information about the specified DDoS custom policy. + +- [update](/Commands/network/ddos-custom-policy/_update.md) +: Update a DDoS custom policy. diff --git a/Commands/network/readme.md b/Commands/network/readme.md index a601c0515..a516b5a22 100644 --- a/Commands/network/readme.md +++ b/Commands/network/readme.md @@ -22,6 +22,9 @@ Manage Azure Network resources. - [custom-ip](/Commands/network/custom-ip/readme.md) : Manage custom IP. +- [ddos-custom-policy](/Commands/network/ddos-custom-policy/readme.md) +: Manage Ddos Custom Policy + - [ddos-protection](/Commands/network/ddos-protection/readme.md) : Manage DDoS Protection Plans. diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.json new file mode 100644 index 000000000..89a181f0a --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9kZG9zQ3VzdG9tUG9saWNpZXMve2Rkb3NDdXN0b21Qb2xpY3lOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "commandGroups": [{"name": "network ddos-custom-policy", "commands": [{"name": "show", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9kZG9zQ3VzdG9tUG9saWNpZXMve2Rkb3NDdXN0b21Qb2xpY3lOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.ddosCustomPolicyName", "options": ["n", "name", "ddos-custom-policy-name"], "required": true, "idPart": "name", "help": {"short": "The name of the DDoS custom policy."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "DdosCustomPolicies_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "ddosCustomPolicyName", "arg": "$Path.ddosCustomPolicyName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-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/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "array", "name": "detectionRules", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "detectionMode", "enum": {"items": [{"value": "TrafficThreshold"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "trafficDetectionRule", "props": [{"type": "integer32", "name": "packetsPerSecond"}, {"type": "string", "name": "trafficType", "enum": {"items": [{"value": "Tcp"}, {"value": "TcpSyn"}, {"value": "Udp"}]}}]}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}, {"type": "array", "name": "frontEndIpConfiguration", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "string", "name": "resourceGuid"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9kZG9zQ3VzdG9tUG9saWNpZXMve2Rkb3NDdXN0b21Qb2xpY3lOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.ddosCustomPolicyName", "options": ["n", "name", "ddos-custom-policy-name"], "required": true, "idPart": "name", "help": {"short": "The name of the DDoS custom policy."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "DdosCustomPolicies_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "ddosCustomPolicyName", "arg": "$Path.ddosCustomPolicyName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [202], "header": {"items": [{"name": "Location"}]}}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9kZG9zQ3VzdG9tUG9saWNpZXMve2Rkb3NDdXN0b21Qb2xpY3lOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.ddosCustomPolicyName", "options": ["n", "name", "ddos-custom-policy-name"], "required": true, "idPart": "name", "help": {"short": "The name of the DDoS custom policy."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"type": "ResourceId", "var": "$parameters.id", "options": ["id"], "hide": true, "group": "Parameters", "help": {"short": "Resource ID."}, "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "Parameters", "help": {"short": "Resource location."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "Parameters", "help": {"short": "Resource tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "array", "var": "$parameters.properties.detectionRules", "options": ["detection-rules"], "group": "Properties", "help": {"short": "The list of DDoS detection rules associated with the custom policy."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.detectionRules[].name", "options": ["name"], "help": {"short": "The name of the DDoS detection rule."}}, {"type": "string", "var": "$parameters.properties.detectionRules[].properties.detectionMode", "options": ["detection-mode"], "group": "Properties", "help": {"short": "The detection mode for the DDoS detection rule."}, "enum": {"items": [{"name": "TrafficThreshold", "value": "TrafficThreshold"}]}}, {"type": "object", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule", "options": ["traffic-detection-rule"], "group": "Properties", "help": {"short": "The traffic detection rule details."}, "args": [{"type": "integer32", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.packetsPerSecond", "options": ["packets-per-second"], "help": {"short": "The customized packets per second threshold."}}, {"type": "string", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.trafficType", "options": ["traffic-type"], "help": {"short": "The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon."}, "enum": {"items": [{"name": "Tcp", "value": "Tcp"}, {"name": "TcpSyn", "value": "TcpSyn"}, {"name": "Udp", "value": "Udp"}]}}]}]}, "singularOptions": ["detection-rule"]}, {"type": "array", "var": "$parameters.properties.frontEndIpConfiguration", "options": ["front-end-ip-configuration"], "hide": true, "group": "Properties", "help": {"short": "The list of frontend IP configurations associated with the custom policy."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.frontEndIpConfiguration[].id", "options": ["id"], "help": {"short": "Resource ID."}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "DdosCustomPolicies_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "ddosCustomPolicyName", "arg": "$Path.ddosCustomPolicyName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-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/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "array", "name": "detectionRules", "arg": "$parameters.properties.detectionRules", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.detectionRules[].name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "detectionMode", "arg": "$parameters.properties.detectionRules[].properties.detectionMode", "enum": {"items": [{"value": "TrafficThreshold"}]}}, {"type": "object", "name": "trafficDetectionRule", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule", "props": [{"type": "integer32", "name": "packetsPerSecond", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.packetsPerSecond"}, {"type": "string", "name": "trafficType", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.trafficType", "enum": {"items": [{"value": "Tcp"}, {"value": "TcpSyn"}, {"value": "Udp"}]}}]}], "clientFlatten": true}]}}, {"type": "array", "name": "frontEndIpConfiguration", "arg": "$parameters.properties.frontEndIpConfiguration", "item": {"type": "object", "props": [{"type": "string", "name": "id", "arg": "$parameters.properties.frontEndIpConfiguration[].id"}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "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/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "array", "name": "detectionRules", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "detectionMode", "enum": {"items": [{"value": "TrafficThreshold"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "trafficDetectionRule", "props": [{"type": "integer32", "name": "packetsPerSecond"}, {"type": "string", "name": "trafficType", "enum": {"items": [{"value": "Tcp"}, {"value": "TcpSyn"}, {"value": "Udp"}]}}]}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}, {"type": "array", "name": "frontEndIpConfiguration", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "string", "name": "resourceGuid"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9kZG9zQ3VzdG9tUG9saWNpZXMve2Rkb3NDdXN0b21Qb2xpY3lOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.ddosCustomPolicyName", "options": ["n", "name", "ddos-custom-policy-name"], "required": true, "idPart": "name", "help": {"short": "The name of the DDoS custom policy."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"nullable": true, "type": "ResourceId", "var": "$parameters.id", "options": ["id"], "hide": true, "group": "Parameters", "help": {"short": "Resource ID."}, "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/ddosCustomPolicies/{}"}}, {"nullable": true, "type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "Parameters", "help": {"short": "Resource location."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "Parameters", "help": {"short": "Resource tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.detectionRules", "options": ["detection-rules"], "group": "Properties", "help": {"short": "The list of DDoS detection rules associated with the custom policy."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.detectionRules[].name", "options": ["name"], "help": {"short": "The name of the DDoS detection rule."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.detectionRules[].properties.detectionMode", "options": ["detection-mode"], "group": "Properties", "help": {"short": "The detection mode for the DDoS detection rule."}, "enum": {"items": [{"name": "TrafficThreshold", "value": "TrafficThreshold"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule", "options": ["traffic-detection-rule"], "group": "Properties", "help": {"short": "The traffic detection rule details."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.packetsPerSecond", "options": ["packets-per-second"], "help": {"short": "The customized packets per second threshold."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.trafficType", "options": ["traffic-type"], "help": {"short": "The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon."}, "enum": {"items": [{"name": "Tcp", "value": "Tcp"}, {"name": "TcpSyn", "value": "TcpSyn"}, {"name": "Udp", "value": "Udp"}]}}]}]}, "singularOptions": ["detection-rule"]}, {"nullable": true, "type": "array", "var": "$parameters.properties.frontEndIpConfiguration", "options": ["front-end-ip-configuration"], "hide": true, "group": "Properties", "help": {"short": "The list of frontend IP configurations associated with the custom policy."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.frontEndIpConfiguration[].id", "options": ["id"], "help": {"short": "Resource ID."}}]}}]}], "operations": [{"operationId": "DdosCustomPolicies_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "ddosCustomPolicyName", "arg": "$Path.ddosCustomPolicyName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-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/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "array", "name": "detectionRules", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "detectionMode", "enum": {"items": [{"value": "TrafficThreshold"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "trafficDetectionRule", "props": [{"type": "integer32", "name": "packetsPerSecond"}, {"type": "string", "name": "trafficType", "enum": {"items": [{"value": "Tcp"}, {"value": "TcpSyn"}, {"value": "Udp"}]}}]}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}, {"type": "array", "name": "frontEndIpConfiguration", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "string", "name": "resourceGuid"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "DdosCustomPolicy_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "ResourceId", "name": "id", "arg": "$parameters.id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/ddosCustomPolicies/{}"}}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "array", "name": "detectionRules", "arg": "$parameters.properties.detectionRules", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.detectionRules[].name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "detectionMode", "arg": "$parameters.properties.detectionRules[].properties.detectionMode", "enum": {"items": [{"value": "TrafficThreshold"}]}}, {"type": "object", "name": "trafficDetectionRule", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule", "props": [{"type": "integer32", "name": "packetsPerSecond", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.packetsPerSecond"}, {"type": "string", "name": "trafficType", "arg": "$parameters.properties.detectionRules[].properties.trafficDetectionRule.trafficType", "enum": {"items": [{"value": "Tcp"}, {"value": "TcpSyn"}, {"value": "Udp"}]}}]}], "clientFlatten": true}]}}, {"type": "array", "name": "frontEndIpConfiguration", "arg": "$parameters.properties.frontEndIpConfiguration", "item": {"type": "object", "props": [{"type": "string", "name": "id", "arg": "$parameters.properties.frontEndIpConfiguration[].id"}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "DdosCustomPolicies_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "ddosCustomPolicyName", "arg": "$Path.ddosCustomPolicyName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@DdosCustomPolicy_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml new file mode 100644 index 000000000..809ab3420 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2Rkb3NjdXN0b21wb2xpY2llcy97fQ==/2025-03-01.xml @@ -0,0 +1,587 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+