From c92232563a3877012561a6103831dd0f3b1ae42f Mon Sep 17 00:00:00 2001 From: Vibhuti Sharma Date: Wed, 5 Apr 2023 12:07:49 +0530 Subject: [PATCH] updated specs --- .../PaloAltoNetworks.Cloudngfw.json | 231 ++++++++++++++++++ .../FirewallStatus_Get_MaximumSet_Gen.json | 35 +++ .../FirewallStatus_Get_MinimumSet_Gen.json | 16 ++ ...Status_ListByFirewalls_MaximumSet_Gen.json | 40 +++ ...Status_ListByFirewalls_MinimumSet_Gen.json | 20 ++ 5 files changed, 342 insertions(+) create mode 100644 specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MaximumSet_Gen.json create mode 100644 specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MinimumSet_Gen.json create mode 100644 specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json create mode 100644 specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json diff --git a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/PaloAltoNetworks.Cloudngfw.json b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/PaloAltoNetworks.Cloudngfw.json index d5c376f1f2e5..6bbcce532216 100644 --- a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/PaloAltoNetworks.Cloudngfw.json +++ b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/PaloAltoNetworks.Cloudngfw.json @@ -36,6 +36,9 @@ { "name": "Firewalls" }, + { + "name": "FirewallStatus" + }, { "name": "GlobalRulestack" }, @@ -2557,6 +2560,99 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses": { + "get": { + "tags": [ + "FirewallStatus" + ], + "operationId": "FirewallStatus_ListByFirewalls", + "description": "List FirewallStatusResource resources by Firewalls", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FirewallResource.firewallName" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FirewallStatusResourceListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "FirewallStatus_ListByFirewalls_MaximumSet_Gen": { + "$ref": "./examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json" + }, + "FirewallStatus_ListByFirewalls_MinimumSet_Gen": { + "$ref": "./examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses/default": { + "get": { + "tags": [ + "FirewallStatus" + ], + "operationId": "FirewallStatus_Get", + "description": "Get a FirewallStatusResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FirewallResource.firewallName" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FirewallStatusResource" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FirewallStatus_Get_MaximumSet_Gen": { + "$ref": "./examples/FirewallStatus_Get_MaximumSet_Gen.json" + }, + "FirewallStatus_Get_MinimumSet_Gen": { + "$ref": "./examples/FirewallStatus_Get_MinimumSet_Gen.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks": { "get": { "tags": [ @@ -5173,6 +5269,86 @@ }, "description": "The updatable properties of the FirewallResource." }, + "FirewallStatusProperty": { + "type": "object", + "properties": { + "isPanoramaManaged": { + "$ref": "#/definitions/BooleanEnum", + "description": "Panorama Managed: Default is False. Default will be CloudSec managed", + "readOnly": true + }, + "healthStatus": { + "$ref": "#/definitions/HealthStatus", + "description": "Current status of the Firewall", + "readOnly": true + }, + "healthReason": { + "type": "string", + "description": "Detail description of current health of the Firewall", + "readOnly": true + }, + "panoramaStatus": { + "$ref": "#/definitions/PanoramaStatus", + "description": "Panorama Status", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ReadOnlyProvisioningState", + "description": "Provisioning state of the resource.", + "readOnly": true + } + }, + "description": "Firewall Status" + }, + "FirewallStatusResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FirewallStatusProperty", + "description": "The resource-specific properties for this resource.", + "x-ms-mutability": [ + "read", + "create" + ], + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "System metadata for this resource.", + "readOnly": true + } + }, + "description": "Firewall Status", + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "FirewallStatusResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallStatusResource" + }, + "x-cadl-name": "FirewallStatusResource[]", + "description": "The items on this page" + }, + "nextLink": { + "type": "string", + "description": "The link to the next page of items" + } + }, + "description": "The response of a FirewallStatusResource list operation.", + "required": [ + "value" + ] + }, "FqdnListGlobalRulestackResource": { "type": "object", "properties": { @@ -5463,6 +5639,20 @@ }, "description": "The updatable properties of the GlobalRulestackResource." }, + "HealthStatus": { + "type": "string", + "description": "Status Codes for the Firewall", + "enum": [ + "GREEN", + "YELLOW", + "RED", + "INITIALIZING" + ], + "x-ms-enum": { + "name": "HealthStatus", + "modelAsString": true + } + }, "IPAddress": { "type": "object", "properties": { @@ -5967,6 +6157,22 @@ "configString" ] }, + "PanoramaStatus": { + "type": "object", + "properties": { + "panoramaServerStatus": { + "$ref": "#/definitions/ServerStatus", + "description": "Primary Panorama connection status", + "readOnly": true + }, + "panoramaServer2Status": { + "$ref": "#/definitions/ServerStatus", + "description": "Secondary Panorama connection status", + "readOnly": true + } + }, + "description": "Panorama connectivity information" + }, "PlanData": { "type": "object", "properties": { @@ -6295,6 +6501,19 @@ "modelAsString": true } }, + "ReadOnlyProvisioningState": { + "type": "string", + "description": "Provisioning state of the firewall resource.", + "enum": [ + "Succeeded", + "Failed", + "Deleted" + ], + "x-ms-enum": { + "name": "ReadOnlyProvisioningState", + "modelAsString": true + } + }, "RuleCounter": { "type": "object", "properties": { @@ -6573,6 +6792,18 @@ "modelAsString": true } }, + "ServerStatus": { + "type": "string", + "description": "Connectivity Status for Panorama Server", + "enum": [ + "UP", + "DOWN" + ], + "x-ms-enum": { + "name": "ServerStatus", + "modelAsString": true + } + }, "SourceAddr": { "type": "object", "properties": { diff --git a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MaximumSet_Gen.json b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..3c9d45b972b8 --- /dev/null +++ b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MaximumSet_Gen.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2022-08-29-preview", + "firewallName": "firewall1", + "resourceGroupName": "rgopenapi", + "subscriptionId": "2bf4a339-294d-4c25-b0b2-ef649e9f5c27" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default", + "name": "default", + "properties": { + "healthReason": "aaaaaaaaaaaa", + "healthStatus": "GREEN", + "isPanoramaManaged": "TRUE", + "panoramaStatus": { + "panoramaServer2Status": "UP", + "panoramaServerStatus": "UP" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2022-09-09T05:08:24.229Z", + "createdBy": "praval", + "createdByType": "User", + "lastModifiedAt": "2022-09-09T05:08:24.229Z", + "lastModifiedBy": "praval", + "lastModifiedByType": "User" + }, + "type": "aaaa" + } + } + } +} diff --git a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MinimumSet_Gen.json b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MinimumSet_Gen.json new file mode 100644 index 000000000000..a0325c732970 --- /dev/null +++ b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_Get_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2022-08-29-preview", + "firewallName": "firewall1", + "resourceGroupName": "rgopenapi", + "subscriptionId": "2bf4a339-294d-4c25-b0b2-ef649e9f5c27" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default", + "properties": {} + } + } + } +} diff --git a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json new file mode 100644 index 000000000000..f5285fe50c59 --- /dev/null +++ b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-08-29-preview", + "firewallName": "firewall1", + "resourceGroupName": "rgopenapi", + "subscriptionId": "2bf4a339-294d-4c25-b0b2-ef649e9f5c27" + }, + "responses": { + "200": { + "body": { + "nextLink": "aaaa", + "value": [ + { + "id": "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default", + "name": "default", + "properties": { + "healthReason": "aaaaaaaaaaaaaaaaaaaaaaaaaaa", + "healthStatus": "GREEN", + "isPanoramaManaged": "TRUE", + "panoramaStatus": { + "panoramaServer2Status": "UP", + "panoramaServerStatus": "UP" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2022-09-09T05:08:24.229Z", + "createdBy": "praval", + "createdByType": "User", + "lastModifiedAt": "2022-09-09T05:08:24.229Z", + "lastModifiedBy": "praval", + "lastModifiedByType": "User" + }, + "type": "aaaaaaa" + } + ] + } + } + } +} diff --git a/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json new file mode 100644 index 000000000000..050cffc6c6ec --- /dev/null +++ b/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2022-08-29-preview/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-08-29-preview", + "firewallName": "firewall1", + "resourceGroupName": "rgopenapi", + "subscriptionId": "2bf4a339-294d-4c25-b0b2-ef649e9f5c27" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default", + "properties": {} + } + ] + } + } + } +}