Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3
modulepackage
3.1.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Database for PostgreSQL Module for Go

PkgGoDev

The armpostgresqlflexibleservers module provides operations for working with Azure Database for PostgreSQL.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Database for PostgreSQL module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Database for PostgreSQL module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armpostgresqlflexibleservers.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armpostgresqlflexibleservers.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewServersClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Database for PostgreSQL label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewAdministratorsClient creates a new instance of AdministratorsClient with the specified values.
NewBackupsClient creates a new instance of BackupsClient with the specified values.
NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient with the specified values.
NewCheckNameAvailabilityWithLocationClient creates a new instance of CheckNameAvailabilityWithLocationClient with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
NewConfigurationsClient creates a new instance of ConfigurationsClient with the specified values.
NewDatabasesClient creates a new instance of DatabasesClient with the specified values.
NewFirewallRulesClient creates a new instance of FirewallRulesClient with the specified values.
NewGetPrivateDNSZoneSuffixClient creates a new instance of GetPrivateDNSZoneSuffixClient with the specified values.
NewLocationBasedCapabilitiesClient creates a new instance of LocationBasedCapabilitiesClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewReplicasClient creates a new instance of ReplicasClient with the specified values.
NewServersClient creates a new instance of ServersClient with the specified values.
NewVirtualNetworkSubnetUsageClient creates a new instance of VirtualNetworkSubnetUsageClient with the specified values.
PossibleActiveDirectoryAuthEnumValues returns the possible values for the ActiveDirectoryAuthEnum const type.
PossibleArmServerKeyTypeValues returns the possible values for the ArmServerKeyType const type.
PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleCreateModeForUpdateValues returns the possible values for the CreateModeForUpdate const type.
PossibleCreateModeValues returns the possible values for the CreateMode const type.
PossibleFailoverModeValues returns the possible values for the FailoverMode const type.
PossibleGeoRedundantBackupEnumValues returns the possible values for the GeoRedundantBackupEnum const type.
PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type.
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
PossibleOriginValues returns the possible values for the Origin const type.
PossiblePasswordAuthEnumValues returns the possible values for the PasswordAuthEnum const type.
PossiblePrincipalTypeValues returns the possible values for the PrincipalType const type.
PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
PossibleServerHAStateValues returns the possible values for the ServerHAState const type.
PossibleServerPublicNetworkAccessStateValues returns the possible values for the ServerPublicNetworkAccessState const type.
PossibleServerStateValues returns the possible values for the ServerState const type.
PossibleServerVersionValues returns the possible values for the ServerVersion const type.
PossibleSKUTierValues returns the possible values for the SKUTier const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ActiveDirectoryAdministrator - Represents an Active Directory administrator.
ActiveDirectoryAdministratorAdd - Represents an Active Directory administrator.
AdministratorListResult - A list of active directory administrators.
AdministratorProperties - The properties of an Active Directory administrator.
AdministratorPropertiesForAdd - The properties of an Active Directory administrator.
AdministratorsClient contains the methods for the Administrators group.
AdministratorsClientBeginCreateOptions contains the optional parameters for the AdministratorsClient.BeginCreate method.
AdministratorsClientBeginDeleteOptions contains the optional parameters for the AdministratorsClient.BeginDelete method.
AdministratorsClientCreateResponse contains the response from method AdministratorsClient.BeginCreate.
AdministratorsClientDeleteResponse contains the response from method AdministratorsClient.BeginDelete.
AdministratorsClientGetOptions contains the optional parameters for the AdministratorsClient.Get method.
AdministratorsClientGetResponse contains the response from method AdministratorsClient.Get.
AdministratorsClientListByServerOptions contains the optional parameters for the AdministratorsClient.NewListByServerPager method.
AdministratorsClientListByServerResponse contains the response from method AdministratorsClient.NewListByServerPager.
AuthConfig - Authentication configuration properties of a server.
Backup properties of a server.
BackupsClient contains the methods for the Backups group.
BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
BackupsClientGetResponse contains the response from method BackupsClient.Get.
BackupsClientListByServerOptions contains the optional parameters for the BackupsClient.NewListByServerPager method.
BackupsClientListByServerResponse contains the response from method BackupsClient.NewListByServerPager.
CapabilitiesListResult - location capability.
CapabilityProperties - Location capabilities.
CheckNameAvailabilityClient contains the methods for the CheckNameAvailability group.
CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute method.
CheckNameAvailabilityClientExecuteResponse contains the response from method CheckNameAvailabilityClient.Execute.
CheckNameAvailabilityRequest - The check availability request body.
CheckNameAvailabilityWithLocationClient contains the methods for the CheckNameAvailabilityWithLocation group.
CheckNameAvailabilityWithLocationClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityWithLocationClient.Execute method.
CheckNameAvailabilityWithLocationClientExecuteResponse contains the response from method CheckNameAvailabilityWithLocationClient.Execute.
ClientFactory is a client factory used to create any client in this module.
Configuration - Represents a Configuration.
ConfigurationForUpdate - Represents a Configuration.
ConfigurationListResult - A list of server configurations.
ConfigurationProperties - The properties of a configuration.
ConfigurationsClient contains the methods for the Configurations group.
ConfigurationsClientBeginPutOptions contains the optional parameters for the ConfigurationsClient.BeginPut method.
ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
ConfigurationsClientGetResponse contains the response from method ConfigurationsClient.Get.
ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
ConfigurationsClientListByServerResponse contains the response from method ConfigurationsClient.NewListByServerPager.
ConfigurationsClientPutResponse contains the response from method ConfigurationsClient.BeginPut.
ConfigurationsClientUpdateResponse contains the response from method ConfigurationsClient.BeginUpdate.
Database - Represents a Database.
DatabaseListResult - A List of databases.
DatabaseProperties - The properties of a database.
DatabasesClient contains the methods for the Databases group.
DatabasesClientBeginCreateOptions contains the optional parameters for the DatabasesClient.BeginCreate method.
DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method.
DatabasesClientCreateResponse contains the response from method DatabasesClient.BeginCreate.
DatabasesClientDeleteResponse contains the response from method DatabasesClient.BeginDelete.
DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method.
DatabasesClientGetResponse contains the response from method DatabasesClient.Get.
DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.NewListByServerPager method.
DatabasesClientListByServerResponse contains the response from method DatabasesClient.NewListByServerPager.
DataEncryption - Data encryption properties of a server.
DelegatedSubnetUsage - Delegated subnet usage data.
No description provided by the author
FirewallRule - Represents a server firewall rule.
FirewallRuleListResult - A list of firewall rules.
FirewallRuleProperties - The properties of a server firewall rule.
FirewallRulesClient contains the methods for the FirewallRules group.
FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
FirewallRulesClientCreateOrUpdateResponse contains the response from method FirewallRulesClient.BeginCreateOrUpdate.
FirewallRulesClientDeleteResponse contains the response from method FirewallRulesClient.BeginDelete.
FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
FirewallRulesClientGetResponse contains the response from method FirewallRulesClient.Get.
FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.NewListByServerPager method.
FirewallRulesClientListByServerResponse contains the response from method FirewallRulesClient.NewListByServerPager.
FlexibleServerEditionCapability - Flexible server edition capabilities.
GetPrivateDNSZoneSuffixClient contains the methods for the GetPrivateDNSZoneSuffix group.
GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute method.
GetPrivateDNSZoneSuffixClientExecuteResponse contains the response from method GetPrivateDNSZoneSuffixClient.Execute.
HighAvailability - High availability properties of a server.
HyperscaleNodeEditionCapability - Hyperscale node edition capabilities.
LocationBasedCapabilitiesClient contains the methods for the LocationBasedCapabilities group.
LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager method.
LocationBasedCapabilitiesClientExecuteResponse contains the response from method LocationBasedCapabilitiesClient.NewExecutePager.
MaintenanceWindow - Maintenance window properties of a server.
NameAvailability - Represents a resource name availability.
Network properties of a server.
NodeTypeCapability - node type capability.
Operation - REST API operation definition.
OperationDisplay - Display metadata associated with the operation.
OperationListResult - A list of resource provider operations.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
OperationsClientListResponse contains the response from method OperationsClient.List.
ReplicasClient contains the methods for the Replicas group.
ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager method.
ReplicasClientListByServerResponse contains the response from method ReplicasClient.NewListByServerPager.
RestartParameter - Represents server restart parameters.
Server - Represents a server.
ServerBackup - Server backup properties.
ServerBackupListResult - A list of server backups.
ServerBackupProperties - The properties of a server backup.
ServerForUpdate - Represents a server to be updated.
ServerListResult - A list of servers.
ServerProperties - The properties of a server.
No description provided by the author
ServersClient contains the methods for the Servers group.
ServersClientBeginCreateOptions contains the optional parameters for the ServersClient.BeginCreate method.
ServersClientBeginDeleteOptions contains the optional parameters for the ServersClient.BeginDelete method.
ServersClientBeginRestartOptions contains the optional parameters for the ServersClient.BeginRestart method.
ServersClientBeginStartOptions contains the optional parameters for the ServersClient.BeginStart method.
ServersClientBeginStopOptions contains the optional parameters for the ServersClient.BeginStop method.
ServersClientBeginUpdateOptions contains the optional parameters for the ServersClient.BeginUpdate method.
ServersClientCreateResponse contains the response from method ServersClient.BeginCreate.
ServersClientDeleteResponse contains the response from method ServersClient.BeginDelete.
ServersClientGetOptions contains the optional parameters for the ServersClient.Get method.
ServersClientGetResponse contains the response from method ServersClient.Get.
ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager method.
ServersClientListByResourceGroupResponse contains the response from method ServersClient.NewListByResourceGroupPager.
ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method.
ServersClientListResponse contains the response from method ServersClient.NewListPager.
ServersClientRestartResponse contains the response from method ServersClient.BeginRestart.
ServersClientStartResponse contains the response from method ServersClient.BeginStart.
ServersClientStopResponse contains the response from method ServersClient.BeginStop.
ServersClientUpdateResponse contains the response from method ServersClient.BeginUpdate.
ServerVersionCapability - Server version capabilities.
SKU - Sku information related properties of a server.
Storage properties of a server.
StorageEditionCapability - storage edition capability.
StorageMBCapability - storage size in MB capability.
No description provided by the author
SystemData - Metadata pertaining to creation and last modification of the resource.
UserAssignedIdentity - Information describing the identities associated with this application.
UserIdentity - Describes a single user-assigned identity associated with the application.
VcoreCapability - Vcores capability.
VirtualNetworkSubnetUsageClient contains the methods for the VirtualNetworkSubnetUsage group.
VirtualNetworkSubnetUsageClientExecuteOptions contains the optional parameters for the VirtualNetworkSubnetUsageClient.Execute method.
VirtualNetworkSubnetUsageClientExecuteResponse contains the response from method VirtualNetworkSubnetUsageClient.Execute.
VirtualNetworkSubnetUsageParameter - Virtual network subnet usage parameter.
VirtualNetworkSubnetUsageResult - Virtual network subnet usage data.

# Type aliases

ActiveDirectoryAuthEnum - If Enabled, Azure Active Directory authentication is enabled.
ArmServerKeyType - Data encryption type to depict if it is System Managed vs Azure Key vault.
CheckNameAvailabilityReason - The reason why the given name is not available.
ConfigurationDataType - Data type of the configuration.
CreatedByType - The type of identity that created the resource.
CreateMode - The mode to create a new PostgreSQL server.
CreateModeForUpdate - The mode to update a new PostgreSQL server.
FailoverMode - Failover mode.
GeoRedundantBackupEnum - A value indicating whether Geo-Redundant backup is enabled on the server.
HighAvailabilityMode - The HA mode for the server.
IdentityType - the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'.
OperationOrigin - The intended executor of the operation.
Origin - Backup type.
PasswordAuthEnum - If Enabled, Password authentication is enabled.
PrincipalType - The principal type used to represent the type of Active Directory Administrator.
ReplicationRole - Used to indicate role of the server in replication set.
ServerHAState - A state of a HA server that is visible to user.
ServerPublicNetworkAccessState - public network access is enabled or not.
ServerState - A state of a server that is visible to user.
ServerVersion - The version of a server.
SKUTier - The tier of the particular SKU, e.g.