Share via


Post Rules - get Counters

Get counters

POST https://management.azure.com/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/getCounters?api-version=2025-05-23
POST https://management.azure.com/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/getCounters?api-version=2025-05-23&firewallName={firewallName}

URI Parameters

Name In Required Type Description
globalRulestackName
path True

string

GlobalRulestack resource name

priority
path True

string

Post Rule priority

api-version
query True

string

minLength: 1

The API version to use for this operation.

firewallName
query

string

Responses

Name Type Description
200 OK

RuleCounter

The request has succeeded.

Other Status Codes

ErrorResponse

Common error response for all Azure Resource Manager APIs to return error details for failed operations.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

PostRules_getCounters_MaximumSet_Gen
PostRules_getCounters_MinimumSet_Gen

PostRules_getCounters_MaximumSet_Gen

Sample request

POST https://management.azure.com/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/postRules/1/getCounters?api-version=2025-05-23&firewallName=firewall1

Sample response

{
  "appSeen": {
    "appSeenList": [
      {
        "category": "aaaaaaaaaaaaaaaaaaa",
        "risk": "aaaaaaaaaaaaaaaaaaaaaaaaaa",
        "standardPorts": "aaaaaaaaaaaaaaaaaa",
        "subCategory": "aaaaaaaaaaaaaaaaa",
        "tag": "aaaaaaaaaa",
        "technology": "aaaaaaaaaaaaaaaaaaaa",
        "title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      }
    ],
    "count": 13
  },
  "firewallName": "aaaaaaaaaaaaaaaaaa",
  "hitCount": 20,
  "lastUpdatedTimestamp": "2022-09-09T05:08:24.229Z",
  "priority": "aaaaaaaaaaaaaaaaaaaa",
  "requestTimestamp": "2022-09-09T05:08:24.229Z",
  "ruleListName": "aaaaaaaaaaaaaaaaaaa",
  "ruleName": "aaaa",
  "ruleStackName": "aaaaaaaaaaaaaaaaa",
  "timestamp": "2022-09-09T05:08:24.229Z"
}

PostRules_getCounters_MinimumSet_Gen

Sample request

POST https://management.azure.com/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/postRules/1/getCounters?api-version=2025-05-23

Sample response

{
  "priority": "aaaaaaaaaaaaaaaaaaaa",
  "ruleName": "aaaa"
}

Definitions

Name Description
AppSeenData

Data Type for App Seen

AppSeenInfo

Definition for App Seen

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

RuleCounter

Rule counter

AppSeenData

Data Type for App Seen

Name Type Description
appSeenList

AppSeenInfo[]

array of appSeen

count

integer (int32)

number of rows

AppSeenInfo

Definition for App Seen

Name Type Description
category

string

category

risk

string

risk

standardPorts

string

standardPorts

subCategory

string

subCategory

tag

string

tag

technology

string

technology

title

string

title

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

RuleCounter

Rule counter

Name Type Description
appSeen

AppSeenData

apps seen

firewallName

string

firewall name

hitCount

integer (int32)

hit count

lastUpdatedTimestamp

string (date-time)

last updated timestamp

priority

string

priority number

requestTimestamp

string (date-time)

timestamp of request

ruleListName

string

rule list name

ruleName

string

rule name

ruleStackName

string

rule Stack Name

timestamp

string (date-time)

timestamp of response