共用方式為


MySqlFirewallRuleCollection Class

Definition

A class representing a collection of MySqlFirewallRuleResource and their operations. Each MySqlFirewallRuleResource in the collection will belong to the same instance of MySqlServerResource. To get a MySqlFirewallRuleCollection instance call the GetMySqlFirewallRules method from an instance of MySqlServerResource.

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

Constructors

MySqlFirewallRuleCollection()

Initializes a new instance of the MySqlFirewallRuleCollection 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, MySqlFirewallRuleData, CancellationToken)

Creates a new firewall rule or updates an existing firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
CreateOrUpdateAsync(WaitUntil, String, MySqlFirewallRuleData, CancellationToken)

Creates a new firewall rule or updates an existing firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
Get(String, CancellationToken)

Gets information about a server firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
GetAll(CancellationToken)

List all the firewall rules in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
GetAllAsync(CancellationToken)

List all the firewall rules in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
GetAsync(String, CancellationToken)

Gets information about a server firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlFirewallRuleResource
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<MySqlFirewallRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MySqlFirewallRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to