Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit599accd

Browse files
MC-19920: rename some network policy properties
1 parentdfd638e commit599accd

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

‎source/includes/stackpath/_network_policy_rules.md‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ curl -X GET \
2424
"id":"f89e80ed-1208-4607-82b2-df2779d90f21/701825869",
2525
"description":"Allow ICMP packets",
2626
"type":"INBOUND",
27-
"sources": ["0.0.0.0/0"],
27+
"sourceIps": ["0.0.0.0/0"],
2828
"action":"INBOUND",
2929
"protocol":"ICMP",
30-
"portRanges": ["80"]
30+
"ports": ["80"]
3131
},
3232
{
3333
"stackId":"bcc60174-50e6-44e4-bd45-463845124d87",
@@ -36,10 +36,10 @@ curl -X GET \
3636
"id":"2ac958f2-0976-4de9-95f6-3546fc10f8d0/INBOUND/-812331665/0",
3737
"description":"custom-inbound",
3838
"type":"INBOUND",
39-
"sources": ["192.168.0.1/32"],
39+
"sourceIps": ["192.168.0.1/32"],
4040
"action":"ALLOW",
4141
"protocol":"TCP",
42-
"portRanges": ["80"]
42+
"ports": ["80"]
4343
}
4444
],
4545
"metadata": {
@@ -65,10 +65,10 @@ Attributes |  
6565
`networkPolicyId`<br/>*UUID* | The UUID of the network policy to which the network policy rule belongs.
6666
`description`<br/>*string* | A summary of what this rule does or a name of this rule. It is highly recommended to give a unique description to easily identify a rule.
6767
`type`<br/>*string* | The type of network policy rule, either`INBOUND` or`OUTBOUND`.
68-
`sources`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
68+
`sourceIps`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
6969
`action`<br/>*string* | The network policy rule action:`ALLOW` (allow traffic) or`BLOCK` (deny traffic).
7070
`protocol`<br/>*string* | Supported protocols are:`TCP`,`UDP`,`TCP_UDP`,`ESP`,`AH`,`ICMP` or`GRE`.
71-
`portRanges`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
71+
`ports`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
7272

7373
<!-------------------- GET A NETWORK POLICY RULE -------------------->
7474

@@ -91,10 +91,10 @@ curl -X GET \
9191
"id":"2ac958f2-0976-4de9-95f6-3546fc10f8d0/INBOUND/-812331665/0",
9292
"description":"custom-inbound",
9393
"type":"INBOUND",
94-
"sources": ["192.168.0.1/32"],
94+
"sourceIps": ["192.168.0.1/32"],
9595
"action":"ALLOW",
9696
"protocol":"TCP",
97-
"portRanges": ["80"]
97+
"ports": ["80"]
9898
}
9999
}
100100
```
@@ -111,10 +111,10 @@ Attributes | &nbsp;
111111
`networkPolicyId`<br/>*UUID* | The UUID of the network policy to which the network policy rule belongs.
112112
`description`<br/>*string* | A summary of what this rule does or a name of this rule. It is highly recommended to give a unique description to easily identify a rule.
113113
`type`<br/>*string* | The type of network policy rule, either`INBOUND` or`OUTBOUND`.
114-
`sources`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
114+
`sourceIps`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
115115
`action`<br/>*string* | The network policy rule action:`ALLOW` (allow traffic) or`BLOCK` (deny traffic).
116116
`protocol`<br/>*string* | Supported protocols are:`TCP`,`UDP`,`TCP_UDP`,`ESP`,`AH`,`ICMP` or`GRE`.
117-
`portRanges`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
117+
`ports`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
118118

119119
<!-------------------- CREATE A NETWORK POLICY RULE -------------------->
120120

@@ -135,8 +135,8 @@ curl -X POST \
135135
"protocol":"TCP",
136136
"type":"INBOUND",
137137
"action":"ALLOW",
138-
"sources": ["0.0.0.0/0"],
139-
"portRanges": ["8080"]
138+
"sourceIps": ["0.0.0.0/0"],
139+
"ports": ["8080"]
140140
}
141141
```
142142

@@ -151,8 +151,8 @@ Required | &nbsp;
151151
`protocol`<br/>*string* | Supported protocols are:`TCP`,`UDP`,`TCP_UDP`,`ESP` and`AH`.
152152
`type`<br/>*string* | The type of network policy rule. Supported types are:`INBOUND` (Ingress) and`OUTBOUND` (Egress).
153153
`action`<br/>*string* | The network policy rule action:`ALLOW` (allow traffic) or`BLOCK` (block traffic).
154-
`sources`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
155-
`portRanges`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
154+
`sourceIps`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
155+
`ports`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
156156

157157
<!-------------------- DELETE A NETWORK POLICY RULE -------------------->
158158

@@ -185,10 +185,10 @@ curl -X PUT \
185185
"description":"npr_cloudmc_isk",
186186
"workloadId":"6ca53aff-8930-46d6-ba86-afbeb0b46bb7",
187187
"type":"INBOUND",
188-
"sources": ["192.168.0.1/32"],
188+
"sourceIps": ["192.168.0.1/32"],
189189
"action":"ALLOW",
190190
"protocol":"TCP",
191-
"portRanges": ["80"]
191+
"ports": ["80"]
192192
}
193193
```
194194

@@ -201,7 +201,7 @@ Required | &nbsp;
201201
`description`<br/>*string* | A summary of what this rule does or a name of this rule. It is highly recommended to give a unique description to easily identify a rule.
202202
`workloadId`<br/>*UUID* | The UUID of the workload to which the network policy rule is applied. Corresponds to the first workload ID in the network policy's list of instance selectors.
203203
`type`<br/>*string* | The type of network policy rule. Supported types are:`INBOUND` (Ingress) and`OUTBOUND` (Egress).
204-
`sources`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
204+
`sourceIps`<br/>*Array[string]* | The list of subnets that will define all the IPs allowed or denied by this rule.
205205
`action`<br/>*string* | The network policy rule action:`ALLOW` (allow traffic) or`BLOCK` (deny traffic).
206206
`protocol`<br/>*string* | Supported protocols are:`TCP`,`UDP`,`TCP_UDP`,`ESP` or`AH`.
207-
`portRanges`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.
207+
`ports`<br/>*Array[string]* | The list of port ranges on which traffic will be allowed or denied by this rule. It can be a range of ports separated by a hyphen. Not required for protocol for`ESP` or`AH`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp