你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
可以使用目标操作部署 localRulestacks/localRules 资源类型:
- 资源组 - 参见 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 PaloAltoNetworks.Cloudngfw/localRulestacks/localRules 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'PaloAltoNetworks.Cloudngfw/localRulestacks/localRules@2024-02-07-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
actionType: 'string'
applications: [
'string'
]
auditComment: 'string'
category: {
feeds: [
'string'
]
urlCustom: [
'string'
]
}
decryptionRuleType: 'string'
description: 'string'
destination: {
cidrs: [
'string'
]
countries: [
'string'
]
feeds: [
'string'
]
fqdnLists: [
'string'
]
prefixLists: [
'string'
]
}
enableLogging: 'string'
etag: 'string'
inboundInspectionCertificate: 'string'
negateDestination: 'string'
negateSource: 'string'
protocol: 'string'
protocolPortList: [
'string'
]
ruleName: 'string'
ruleState: 'string'
source: {
cidrs: [
'string'
]
countries: [
'string'
]
feeds: [
'string'
]
prefixLists: [
'string'
]
}
tags: [
{
key: 'string'
value: 'string'
}
]
}
}
属性值
PaloAltoNetworks.Cloudngfw/localRulestacks/localRules
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| 父级 | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 更多信息请参见Child 资源 outside parent resource。 |
类型资源的符号名称:localRulestacks |
| 性能 | 此资源的资源特定属性。 | RuleEntry (必需) |
类别
| 名字 | 描述 | 价值 |
|---|---|---|
| 饲料 | 源列表 | string[] (必需) |
| url自定义 | 自定义 URL | string[] (必需) |
DestinationAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| fqdn 列表 | fqdn 列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
规则条目
| 名字 | 描述 | 价值 |
|---|---|---|
| 动作类型 | 规则操作 | “允许” “DenyResetBoth” “DenyResetServer” “DenySilent” |
| 应用 | 规则应用程序的数组 | 字符串[] |
| auditComment 审核 | 规则注释 | 字符串 |
| 分类 | 规则类别 | 类别 |
| decryptionRuleType | 启用或禁用解密 | “None” “SSLInboundInspection” “SSLOutboundInspection” |
| 描述 | 规则说明 | 字符串 |
| 目标 | 目标地址 | DestinationAddr |
| enableLogging | 启用或禁用日志记录 | “DISABLED” “ENABLED” |
| ETAG | etag 信息 | 字符串 |
| inboundInspectionCertificate (入站检验证书) | 入站检查证书 | 字符串 |
| negateDestination | cidr 不应为“any” | “FALSE” “TRUE” |
| negateSource | cidr 不应为“any” | “FALSE” “TRUE” |
| 协议 | any, application-default, TCP:number, UDP:number | 字符串 |
| protocolPortList 协议端口列表 | prot 端口列表 | 字符串[] |
| 规则名称 | 规则名称 | string (必需) |
| 规则状态 | 此规则的状态 | “DISABLED” “ENABLED” |
| 源 | 源地址 | SourceAddr |
| 标签 | 规则标记 | 标签信息[] |
SourceAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
标签信息
| 名字 | 描述 | 价值 |
|---|---|---|
| 关键值 | 标记名称 | string (必需) |
| 价值 | 标记值 | string (必需) |
ARM 模板资源定义
可以使用目标操作部署 localRulestacks/localRules 资源类型:
用法示例
资源格式
若要创建 PaloAltoNetworks.Cloudngfw/localRulestacks/localRules 资源,请将以下 JSON 添加到模板。
{
"type": "PaloAltoNetworks.Cloudngfw/localRulestacks/localRules",
"apiVersion": "2024-02-07-preview",
"name": "string",
"properties": {
"actionType": "string",
"applications": [ "string" ],
"auditComment": "string",
"category": {
"feeds": [ "string" ],
"urlCustom": [ "string" ]
},
"decryptionRuleType": "string",
"description": "string",
"destination": {
"cidrs": [ "string" ],
"countries": [ "string" ],
"feeds": [ "string" ],
"fqdnLists": [ "string" ],
"prefixLists": [ "string" ]
},
"enableLogging": "string",
"etag": "string",
"inboundInspectionCertificate": "string",
"negateDestination": "string",
"negateSource": "string",
"protocol": "string",
"protocolPortList": [ "string" ],
"ruleName": "string",
"ruleState": "string",
"source": {
"cidrs": [ "string" ],
"countries": [ "string" ],
"feeds": [ "string" ],
"prefixLists": [ "string" ]
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}
属性值
PaloAltoNetworks.Cloudngfw/localRulestacks/localRules
| 名字 | 描述 | 价值 |
|---|---|---|
| apiVersion | API 版本 | “2024-02-07-预览版” |
| 名字 | 资源名称 | string (必需) |
| 性能 | 此资源的资源特定属性。 | RuleEntry (必需) |
| 类型 | 资源类型 | “PaloAltoNetworks.Cloudngfw/localRulestacks/localRules” |
类别
| 名字 | 描述 | 价值 |
|---|---|---|
| 饲料 | 源列表 | string[] (必需) |
| url自定义 | 自定义 URL | string[] (必需) |
DestinationAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| fqdn 列表 | fqdn 列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
规则条目
| 名字 | 描述 | 价值 |
|---|---|---|
| 动作类型 | 规则操作 | “允许” “DenyResetBoth” “DenyResetServer” “DenySilent” |
| 应用 | 规则应用程序的数组 | 字符串[] |
| auditComment 审核 | 规则注释 | 字符串 |
| 分类 | 规则类别 | 类别 |
| decryptionRuleType | 启用或禁用解密 | “None” “SSLInboundInspection” “SSLOutboundInspection” |
| 描述 | 规则说明 | 字符串 |
| 目标 | 目标地址 | DestinationAddr |
| enableLogging | 启用或禁用日志记录 | “DISABLED” “ENABLED” |
| ETAG | etag 信息 | 字符串 |
| inboundInspectionCertificate (入站检验证书) | 入站检查证书 | 字符串 |
| negateDestination | cidr 不应为“any” | “FALSE” “TRUE” |
| negateSource | cidr 不应为“any” | “FALSE” “TRUE” |
| 协议 | any, application-default, TCP:number, UDP:number | 字符串 |
| protocolPortList 协议端口列表 | prot 端口列表 | 字符串[] |
| 规则名称 | 规则名称 | string (必需) |
| 规则状态 | 此规则的状态 | “DISABLED” “ENABLED” |
| 源 | 源地址 | SourceAddr |
| 标签 | 规则标记 | 标签信息[] |
SourceAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
标签信息
| 名字 | 描述 | 价值 |
|---|---|---|
| 关键值 | 标记名称 | string (必需) |
| 价值 | 标记值 | string (必需) |
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 localRulestacks/localRules 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
若要创建 PaloAltoNetworks.Cloudngfw/localRulestacks/localRules 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "PaloAltoNetworks.Cloudngfw/localRulestacks/localRules@2024-02-07-preview"
name = "string"
parent_id = "string"
body = {
properties = {
actionType = "string"
applications = [
"string"
]
auditComment = "string"
category = {
feeds = [
"string"
]
urlCustom = [
"string"
]
}
decryptionRuleType = "string"
description = "string"
destination = {
cidrs = [
"string"
]
countries = [
"string"
]
feeds = [
"string"
]
fqdnLists = [
"string"
]
prefixLists = [
"string"
]
}
enableLogging = "string"
etag = "string"
inboundInspectionCertificate = "string"
negateDestination = "string"
negateSource = "string"
protocol = "string"
protocolPortList = [
"string"
]
ruleName = "string"
ruleState = "string"
source = {
cidrs = [
"string"
]
countries = [
"string"
]
feeds = [
"string"
]
prefixLists = [
"string"
]
}
tags = [
{
key = "string"
value = "string"
}
]
}
}
}
属性值
PaloAltoNetworks.Cloudngfw/localRulestacks/localRules
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| parent_id | 此资源的父资源的 ID。 | 类型资源的 ID:localRulestacks |
| 性能 | 此资源的资源特定属性。 | RuleEntry (必需) |
| 类型 | 资源类型 | “PaloAltoNetworks.Cloudngfw/localRulestacks/localRules@2024-02-07-preview” |
类别
| 名字 | 描述 | 价值 |
|---|---|---|
| 饲料 | 源列表 | string[] (必需) |
| url自定义 | 自定义 URL | string[] (必需) |
DestinationAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| fqdn 列表 | fqdn 列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
规则条目
| 名字 | 描述 | 价值 |
|---|---|---|
| 动作类型 | 规则操作 | “允许” “DenyResetBoth” “DenyResetServer” “DenySilent” |
| 应用 | 规则应用程序的数组 | 字符串[] |
| auditComment 审核 | 规则注释 | 字符串 |
| 分类 | 规则类别 | 类别 |
| decryptionRuleType | 启用或禁用解密 | “None” “SSLInboundInspection” “SSLOutboundInspection” |
| 描述 | 规则说明 | 字符串 |
| 目标 | 目标地址 | DestinationAddr |
| enableLogging | 启用或禁用日志记录 | “DISABLED” “ENABLED” |
| ETAG | etag 信息 | 字符串 |
| inboundInspectionCertificate (入站检验证书) | 入站检查证书 | 字符串 |
| negateDestination | cidr 不应为“any” | “FALSE” “TRUE” |
| negateSource | cidr 不应为“any” | “FALSE” “TRUE” |
| 协议 | any, application-default, TCP:number, UDP:number | 字符串 |
| protocolPortList 协议端口列表 | prot 端口列表 | 字符串[] |
| 规则名称 | 规则名称 | string (必需) |
| 规则状态 | 此规则的状态 | “DISABLED” “ENABLED” |
| 源 | 源地址 | SourceAddr |
| 标签 | 规则标记 | 标签信息[] |
SourceAddr
| 名字 | 描述 | 价值 |
|---|---|---|
| CIDR 系统 | 特殊值“any” | 字符串[] |
| 国家 | 国家/地区列表 | 字符串[] |
| 饲料 | 源列表 | 字符串[] |
| 前缀列表 | 前缀列表 | 字符串[] |
标签信息
| 名字 | 描述 | 价值 |
|---|---|---|
| 关键值 | 标记名称 | string (必需) |
| 价值 | 标记值 | string (必需) |