Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating specs for PAN #23435

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
{
"name": "Firewalls"
},
{
"name": "FirewallStatus"
},
{
"name": "GlobalRulestack"
},
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
]
}
}
}
}