Skip to main content

FirewallRule

Provides a FirewallRule from the DBforPostgreSQL group

Examples

FirewallRuleCreate

exports.createResources = () => [
{
type: "FirewallRule",
group: "DBforPostgreSQL",
name: "myFirewallRule",
properties: () => ({
properties: {
startIpAddress: "0.0.0.0",
endIpAddress: "255.255.255.255",
},
}),
dependencies: ({}) => ({
resourceGroup: "myResourceGroup",
server: "myFlexibleServer",
}),
},
];

Dependencies

Swagger Schema

{
properties: {
properties: {
'x-ms-client-flatten': true,
description: 'The properties of a firewall rule.',
properties: {
startIpAddress: {
type: 'string',
pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$',
description: 'The start IP address of the server firewall rule. Must be IPv4 format.'
},
endIpAddress: {
type: 'string',
pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$',
description: 'The end IP address of the server firewall rule. Must be IPv4 format.'
}
},
required: [ 'startIpAddress', 'endIpAddress' ]
},
systemData: {
readOnly: true,
description: 'The system metadata relating to this resource.',
type: 'object',
properties: {
createdBy: {
type: 'string',
description: 'The identity that created the resource.'
},
createdByType: {
type: 'string',
description: 'The type of identity that created the resource.',
enum: [ 'User', 'Application', 'ManagedIdentity', 'Key' ],
'x-ms-enum': { name: 'createdByType', modelAsString: true }
},
createdAt: {
type: 'string',
format: 'date-time',
description: 'The timestamp of resource creation (UTC).'
},
lastModifiedBy: {
type: 'string',
description: 'The identity that last modified the resource.'
},
lastModifiedByType: {
type: 'string',
description: 'The type of identity that last modified the resource.',
enum: [ 'User', 'Application', 'ManagedIdentity', 'Key' ],
'x-ms-enum': { name: 'createdByType', modelAsString: true }
},
lastModifiedAt: {
type: 'string',
format: 'date-time',
description: 'The timestamp of resource last modification (UTC)'
}
}
}
},
allOf: [
{
title: 'Proxy Resource',
description: 'The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location',
type: 'object',
allOf: [
{
title: 'Resource',
description: 'Common fields that are returned in the response for all Azure Resource Manager resources',
type: 'object',
properties: {
id: {
readOnly: true,
type: 'string',
description: 'Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
},
name: {
readOnly: true,
type: 'string',
description: 'The name of the resource'
},
type: {
readOnly: true,
type: 'string',
description: 'The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"'
}
},
'x-ms-azure-resource': true
}
]
}
],
required: [ 'properties' ],
description: 'Represents a server firewall rule.'
}

Misc

The resource version is 2021-06-01.

The Swagger schema used to generate this documentation can be found here.