Firewall Rules - Update

Updates the specified firewall rule.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}?api-version=2016-11-01

URI Parameters

Name In Required Type Description
accountName
path True

string

The name of the Data Lake Analytics account.

firewallRuleName
path True

string

The name of the firewall rule to update.

resourceGroupName
path True

string

The name of the Azure resource group.

subscriptionId
path True

string

Get subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Request Body

Name Type Description
properties.endIpAddress

string

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

properties.startIpAddress

string

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

Responses

Name Type Description
200 OK

FirewallRule

Successfully updated the specified firewall rule

Other Status Codes

ErrorResponse

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Updates the specified firewall rule

Sample Request

PATCH https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/firewallRules/test_rule?api-version=2016-11-01

{
  "properties": {
    "startIpAddress": "1.1.1.1",
    "endIpAddress": "2.2.2.2"
  }
}

Sample Response

{
  "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
  "name": "test_rule",
  "type": "test_type",
  "properties": {
    "startIpAddress": "1.1.1.1",
    "endIpAddress": "2.2.2.2"
  }
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

FirewallRule

Data Lake Analytics firewall rule information.

UpdateFirewallRuleParameters

The parameters used to update a firewall rule.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

FirewallRule

Data Lake Analytics firewall rule information.

Name Type Description
id

string

The resource identifier.

name

string

The resource name.

properties.endIpAddress

string

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

properties.startIpAddress

string

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

type

string

The resource type.

UpdateFirewallRuleParameters

The parameters used to update a firewall rule.

Name Type Description
properties.endIpAddress

string

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

properties.startIpAddress

string

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.