Skip to content

Commit

Permalink
[ACR] Add IP rules (Azure#4895)
Browse files Browse the repository at this point in the history
* Add IP rules

* Remove chart actions

* Add x-ms-client-name
  • Loading branch information
djyou authored and AnuTalluri committed Feb 6, 2019
1 parent 7fdd680 commit 66f7410
Showing 1 changed file with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1565,19 +1565,65 @@
"items": {
"$ref": "#/definitions/VirtualNetworkRule"
}
},
"ipRules": {
"description": "The IP ACL rules.",
"type": "array",
"items": {
"$ref": "#/definitions/IPRule"
}
}
}
},
"VirtualNetworkRule": {
"description": "The virtual network rule for a container registry.",
"description": "Virtual network rule.",
"required": [
"id"
],
"type": "object",
"properties": {
"action": {
"description": "The action of virtual network rule.",
"default": "Allow",
"enum": [
"Allow"
],
"type": "string",
"x-ms-enum": {
"name": "Action",
"modelAsString": true
}
},
"id": {
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.",
"type": "string"
"type": "string",
"x-ms-client-name": "VirtualNetworkResourceId"
}
}
},
"IPRule": {
"description": "IP rule with specific IP or IP range in CIDR format.",
"required": [
"value"
],
"type": "object",
"properties": {
"action": {
"description": "The action of IP ACL rule.",
"default": "Allow",
"enum": [
"Allow"
],
"type": "string",
"x-ms-enum": {
"name": "Action",
"modelAsString": true
}
},
"value": {
"description": "Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.",
"type": "string",
"x-ms-client-name": "IPAddressOrRange"
}
}
},
Expand Down

0 comments on commit 66f7410

Please sign in to comment.