PostgreSqlServerCollection Class

Definition

A class representing a collection of PostgreSqlServerResource and their operations. Each PostgreSqlServerResource in the collection will belong to the same instance of ResourceGroupResource. To get a PostgreSqlServerCollection instance call the GetPostgreSqlServers method from an instance of ResourceGroupResource.

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

Constructors

PostgreSqlServerCollection()

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

Creates a new server, or will overwrite an existing server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}
  • Operation Id: Servers_Create
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource
CreateOrUpdateAsync(WaitUntil, String, PostgreSqlServerCreateOrUpdateContent, CancellationToken)

Creates a new server, or will overwrite an existing server.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

Gets information about a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource
GetAll(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource
GetAllAsync(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource
GetAsync(String, CancellationToken)

Gets information about a server.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource
GetReplicas(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2017-12-01
GetReplicasAsync(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2017-12-01
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<PostgreSqlServerResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PostgreSqlServerResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to