DnsSecurityRules Interface

public interface DnsSecurityRules

Resource collection API of DnsSecurityRules.

Method Summary

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

Begins definition for a new DnsSecurityRule resource.

abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName)

Deletes a DNS security rule for a DNS resolver policy.

abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName, String ifMatch, Context context)

Deletes a DNS security rule for a DNS resolver policy.

abstract void deleteById(String id)

Deletes a DNS security rule for a DNS resolver policy.

abstract void deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a DNS security rule for a DNS resolver policy.

abstract DnsSecurityRule get(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName)

Gets properties of a DNS security rule for a DNS resolver policy.

abstract DnsSecurityRule getById(String id)

Gets properties of a DNS security rule for a DNS resolver policy.

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

Gets properties of a DNS security rule for a DNS resolver policy.

abstract Response<DnsSecurityRule> getWithResponse(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName, Context context)

Gets properties of a DNS security rule for a DNS resolver policy.

abstract PagedIterable<DnsSecurityRule> list(String resourceGroupName, String dnsResolverPolicyName)

Lists DNS security rules for a DNS resolver policy.

abstract PagedIterable<DnsSecurityRule> list(String resourceGroupName, String dnsResolverPolicyName, Integer top, Context context)

Lists DNS security rules for a DNS resolver policy.

Method Details

define

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

Begins definition for a new DnsSecurityRule resource.

Parameters:

name - resource name.

Returns:

the first stage of the new DnsSecurityRule definition.

delete

public abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName)

Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
dnsSecurityRuleName - The name of the DNS security rule.

delete

public abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName, String ifMatch, Context context)

Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
dnsSecurityRuleName - The name of the DNS security 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.

deleteById

public abstract void deleteById(String id)

Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a DNS security rule for a DNS resolver policy. 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.

get

public abstract DnsSecurityRule get(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName)

Gets properties of a DNS security rule for a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
dnsSecurityRuleName - The name of the DNS security rule.

Returns:

properties of a DNS security rule for a DNS resolver policy.

getById

public abstract DnsSecurityRule getById(String id)

Gets properties of a DNS security rule for a DNS resolver policy.

Parameters:

id - the resource ID.

Returns:

properties of a DNS security rule for a DNS resolver policy along with Response<T>.

getByIdWithResponse

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

Gets properties of a DNS security rule for a DNS resolver policy.

Parameters:

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

Returns:

properties of a DNS security rule for a DNS resolver policy along with Response<T>.

getWithResponse

public abstract Response<DnsSecurityRule> getWithResponse(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName, Context context)

Gets properties of a DNS security rule for a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
dnsSecurityRuleName - The name of the DNS security rule.
context - The context to associate with this operation.

Returns:

properties of a DNS security rule for a DNS resolver policy along with Response<T>.

list

public abstract PagedIterable<DnsSecurityRule> list(String resourceGroupName, String dnsResolverPolicyName)

Lists DNS security rules for a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.

Returns:

the response to an enumeration operation on DNS security rules within a DNS resolver policy as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<DnsSecurityRule> list(String resourceGroupName, String dnsResolverPolicyName, Integer top, Context context)

Lists DNS security rules for a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
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 DNS security rules within a DNS resolver policy as paginated response with PagedIterable<T>.

Applies to