共用方式為


SqlFirewallRuleCollection Class

Definition

A class representing a collection of SqlFirewallRuleResource and their operations. Each SqlFirewallRuleResource in the collection will belong to the same instance of SqlServerResource. To get a SqlFirewallRuleCollection instance call the GetSqlFirewallRules method from an instance of SqlServerResource.

public class SqlFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Sql.SqlFirewallRuleResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.SqlFirewallRuleResource>
type SqlFirewallRuleCollection = class
    inherit ArmCollection
    interface seq<SqlFirewallRuleResource>
    interface IEnumerable
    interface IAsyncEnumerable<SqlFirewallRuleResource>
Public Class SqlFirewallRuleCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SqlFirewallRuleResource), IEnumerable(Of SqlFirewallRuleResource)
Inheritance
SqlFirewallRuleCollection
Implements

Constructors

SqlFirewallRuleCollection()

Initializes a new instance of the SqlFirewallRuleCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, SqlFirewallRuleData, CancellationToken)

Creates or updates a firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
CreateOrUpdateAsync(WaitUntil, String, SqlFirewallRuleData, CancellationToken)

Creates or updates a firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
Get(String, CancellationToken)

Gets a firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
GetAll(CancellationToken)

Gets a list of firewall rules.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
GetAllAsync(CancellationToken)

Gets a list of firewall rules.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
GetAsync(String, CancellationToken)

Gets a firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlFirewallRuleResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<SqlFirewallRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlFirewallRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to