ForwardingRules Interface

public interface ForwardingRules

Resource collection API of ForwardingRules.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new ForwardingRule resource.

abstract void delete(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName)

Deletes a forwarding rule in a DNS forwarding ruleset.

abstract void deleteById(String id)

Deletes a forwarding rule in a DNS forwarding ruleset.

abstract Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a forwarding rule in a DNS forwarding ruleset.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, String ifMatch, Context context)

Deletes a forwarding rule in a DNS forwarding ruleset.

abstract ForwardingRule get(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

abstract ForwardingRule getById(String id)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

abstract Response<ForwardingRule> getByIdWithResponse(String id, Context context)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

abstract Response<ForwardingRule> getWithResponse(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, Context context)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

abstract PagedIterable<ForwardingRule> list(String resourceGroupName, String dnsForwardingRulesetName)

Lists forwarding rules in a DNS forwarding ruleset.

abstract PagedIterable<ForwardingRule> list(String resourceGroupName, String dnsForwardingRulesetName, Integer top, Context context)

Lists forwarding rules in a DNS forwarding ruleset.

Method Details

define

public abstract ForwardingRule.DefinitionStages.Blank define(String name)

Begins definition for a new ForwardingRule resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ForwardingRule definition.

delete

public abstract void delete(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName)

Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
forwardingRuleName - The name of the forwarding rule.

deleteById

public abstract void deleteById(String id)

Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.

Parameters:

id - the resource ID.
ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, String ifMatch, Context context)

Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
forwardingRuleName - The name of the forwarding rule.
ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
context - The context to associate with this operation.

Returns:

get

public abstract ForwardingRule get(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
forwardingRuleName - The name of the forwarding rule.

Returns:

properties of a forwarding rule in a DNS forwarding ruleset.

getById

public abstract ForwardingRule getById(String id)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

Parameters:

id - the resource ID.

Returns:

properties of a forwarding rule in a DNS forwarding ruleset along with Response<T>.

getByIdWithResponse

public abstract Response<ForwardingRule> getByIdWithResponse(String id, Context context)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

properties of a forwarding rule in a DNS forwarding ruleset along with Response<T>.

getWithResponse

public abstract Response<ForwardingRule> getWithResponse(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, Context context)

Gets properties of a forwarding rule in a DNS forwarding ruleset.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
forwardingRuleName - The name of the forwarding rule.
context - The context to associate with this operation.

Returns:

properties of a forwarding rule in a DNS forwarding ruleset along with Response<T>.

list

public abstract PagedIterable<ForwardingRule> list(String resourceGroupName, String dnsForwardingRulesetName)

Lists forwarding rules in a DNS forwarding ruleset.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.

Returns:

the response to an enumeration operation on forwarding rules within a DNS forwarding ruleset as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<ForwardingRule> list(String resourceGroupName, String dnsForwardingRulesetName, Integer top, Context context)

Lists forwarding rules in a DNS forwarding ruleset.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
top - The maximum number of results to return. If not specified, returns up to 100 results.
context - The context to associate with this operation.

Returns:

the response to an enumeration operation on forwarding rules within a DNS forwarding ruleset as paginated response with PagedIterable<T>.

Applies to