Skip to content

Commit

Permalink
TOWER-14815 Add security group information for security policy
Browse files Browse the repository at this point in the history
  • Loading branch information
yongquan-yuan authored and netweng committed Aug 30, 2024
1 parent f1b5758 commit 37c1636
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cloudtower-api-doc/static/specs/4.4.0-swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -74899,6 +74899,22 @@
],
"type": "object"
},
"NestedSecurityGroup": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object",
"additionalProperties": false
},
"NestedSecurityPolicyApply": {
"properties": {
"communicable": {
Expand All @@ -74915,6 +74931,16 @@
"type": "string"
},
"type": "array"
},
"security_group": {
"allOf": [
{
"$ref": "#/components/schemas/NestedSecurityGroup"
}
]
},
"security_group_id": {
"type": "string"
}
},
"required": [
Expand Down Expand Up @@ -74987,6 +75013,16 @@
"type": "array",
"nullable": true
},
"security_group": {
"allOf": [
{
"$ref": "#/components/schemas/NestedSecurityGroup"
}
]
},
"security_group_id": {
"type": "string"
},
"type": {
"$ref": "#/components/schemas/NetworkPolicyRuleType"
}
Expand Down
20 changes: 20 additions & 0 deletions cloudtower-api-doc/swagger/locales/zh/4.4.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,26 @@
"vm_templates_every": "返回关联资源全都符合相关筛选条件的资源",
"vm_templates_none": "返回关联资源不符合相关筛选条件的资源",
"vm_templates_some": "返回关联资源一项或多项符合相关筛选条件的资源"
},
"NestedSecurityGroup": {
"id": "唯一标识",
"name": "名称"
},
"NestedSecurityPolicyApply": {
"communicable": "",
"selector": "",
"selector_ids": "",
"security_group_id": "安全组 id",
"security_group": "安全组"
},
"NestedNetworkPolicyRule": {
"ip_block": "",
"ports": "",
"selector": "",
"selector_ids": "",
"type": "",
"security_group_id": "安全组 id",
"security_group": "安全组"
}
},
"tags": [
Expand Down

0 comments on commit 37c1636

Please sign in to comment.