Documentation
¶
Index ¶
- type ActiveDirectoryAdministrator
- type ActiveDirectoryAdministratorAdd
- type ActiveDirectoryAuthEnum
- type AdminCredentials
- type AdministratorListResult
- type AdministratorProperties
- type AdministratorPropertiesForAdd
- type AdministratorsClient
- func (client *AdministratorsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[AdministratorsClientCreateResponse], error)
- func (client *AdministratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[AdministratorsClientDeleteResponse], error)
- func (client *AdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (AdministratorsClientGetResponse, error)
- func (client *AdministratorsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[AdministratorsClientListByServerResponse]
- type AdministratorsClientBeginCreateOptions
- type AdministratorsClientBeginDeleteOptions
- type AdministratorsClientCreateResponse
- type AdministratorsClientDeleteResponse
- type AdministratorsClientGetOptions
- type AdministratorsClientGetResponse
- type AdministratorsClientListByServerOptions
- type AdministratorsClientListByServerResponse
- type ArmServerKeyType
- type AuthConfig
- type AzureManagedDiskPerformanceTiers
- type Backup
- type BackupSettings
- type BackupStoreDetails
- type BackupsClient
- func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[BackupsClientCreateResponse], error)
- func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[BackupsClientDeleteResponse], error)
- func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (BackupsClientGetResponse, error)
- func (client *BackupsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[BackupsClientListByServerResponse]
- type BackupsClientBeginCreateOptions
- type BackupsClientBeginDeleteOptions
- type BackupsClientCreateResponse
- type BackupsClientDeleteResponse
- type BackupsClientGetOptions
- type BackupsClientGetResponse
- type BackupsClientListByServerOptions
- type BackupsClientListByServerResponse
- type CancelEnum
- type CapabilitiesListResult
- type CapabilityStatus
- type CheckNameAvailabilityClient
- type CheckNameAvailabilityClientExecuteOptions
- type CheckNameAvailabilityClientExecuteResponse
- type CheckNameAvailabilityReason
- type CheckNameAvailabilityRequest
- type CheckNameAvailabilityWithLocationClient
- type CheckNameAvailabilityWithLocationClientExecuteOptions
- type CheckNameAvailabilityWithLocationClientExecuteResponse
- type ClientFactory
- func (c *ClientFactory) NewAdministratorsClient() *AdministratorsClient
- func (c *ClientFactory) NewBackupsClient() *BackupsClient
- func (c *ClientFactory) NewCheckNameAvailabilityClient() *CheckNameAvailabilityClient
- func (c *ClientFactory) NewCheckNameAvailabilityWithLocationClient() *CheckNameAvailabilityWithLocationClient
- func (c *ClientFactory) NewConfigurationsClient() *ConfigurationsClient
- func (c *ClientFactory) NewDatabasesClient() *DatabasesClient
- func (c *ClientFactory) NewFirewallRulesClient() *FirewallRulesClient
- func (c *ClientFactory) NewFlexibleServerClient() *FlexibleServerClient
- func (c *ClientFactory) NewGetPrivateDNSZoneSuffixClient() *GetPrivateDNSZoneSuffixClient
- func (c *ClientFactory) NewLocationBasedCapabilitiesClient() *LocationBasedCapabilitiesClient
- func (c *ClientFactory) NewLogFilesClient() *LogFilesClient
- func (c *ClientFactory) NewLtrBackupOperationsClient() *LtrBackupOperationsClient
- func (c *ClientFactory) NewMigrationsClient() *MigrationsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPostgreSQLManagementClient() *PostgreSQLManagementClient
- func (c *ClientFactory) NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
- func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
- func (c *ClientFactory) NewQuotaUsagesClient() *QuotaUsagesClient
- func (c *ClientFactory) NewReplicasClient() *ReplicasClient
- func (c *ClientFactory) NewServerCapabilitiesClient() *ServerCapabilitiesClient
- func (c *ClientFactory) NewServerThreatProtectionSettingsClient() *ServerThreatProtectionSettingsClient
- func (c *ClientFactory) NewServersClient() *ServersClient
- func (c *ClientFactory) NewTuningConfigurationClient() *TuningConfigurationClient
- func (c *ClientFactory) NewTuningIndexClient() *TuningIndexClient
- func (c *ClientFactory) NewTuningOptionsClient() *TuningOptionsClient
- func (c *ClientFactory) NewVirtualEndpointsClient() *VirtualEndpointsClient
- func (c *ClientFactory) NewVirtualNetworkSubnetUsageClient() *VirtualNetworkSubnetUsageClient
- type Cluster
- type ConfigTuningRequestParameter
- type Configuration
- type ConfigurationDataType
- type ConfigurationForUpdate
- type ConfigurationListResult
- type ConfigurationProperties
- type ConfigurationsClient
- func (client *ConfigurationsClient) BeginPut(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ConfigurationsClientPutResponse], error)
- func (client *ConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ConfigurationsClientUpdateResponse], error)
- func (client *ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (ConfigurationsClientGetResponse, error)
- func (client *ConfigurationsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[ConfigurationsClientListByServerResponse]
- type ConfigurationsClientBeginPutOptions
- type ConfigurationsClientBeginUpdateOptions
- type ConfigurationsClientGetOptions
- type ConfigurationsClientGetResponse
- type ConfigurationsClientListByServerOptions
- type ConfigurationsClientListByServerResponse
- type ConfigurationsClientPutResponse
- type ConfigurationsClientUpdateResponse
- type CreateMode
- type CreateModeForUpdate
- type CreatedByType
- type DataEncryption
- type Database
- type DatabaseListResult
- type DatabaseProperties
- type DatabasesClient
- func (client *DatabasesClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[DatabasesClientCreateResponse], error)
- func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[DatabasesClientDeleteResponse], error)
- func (client *DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (DatabasesClientGetResponse, error)
- func (client *DatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[DatabasesClientListByServerResponse]
- type DatabasesClientBeginCreateOptions
- type DatabasesClientBeginDeleteOptions
- type DatabasesClientCreateResponse
- type DatabasesClientDeleteResponse
- type DatabasesClientGetOptions
- type DatabasesClientGetResponse
- type DatabasesClientListByServerOptions
- type DatabasesClientListByServerResponse
- type DbLevelValidationStatus
- type DbMigrationStatus
- type DbServerMetadata
- type DelegatedSubnetUsage
- type ExecutionStatus
- type FailoverMode
- type FastProvisioningEditionCapability
- type FastProvisioningSupportedEnum
- type FirewallRule
- type FirewallRuleListResult
- type FirewallRuleProperties
- type FirewallRulesClient
- func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[FirewallRulesClientCreateOrUpdateResponse], error)
- func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[FirewallRulesClientDeleteResponse], error)
- func (client *FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (FirewallRulesClientGetResponse, error)
- func (client *FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[FirewallRulesClientListByServerResponse]
- type FirewallRulesClientBeginCreateOrUpdateOptions
- type FirewallRulesClientBeginDeleteOptions
- type FirewallRulesClientCreateOrUpdateResponse
- type FirewallRulesClientDeleteResponse
- type FirewallRulesClientGetOptions
- type FirewallRulesClientGetResponse
- type FirewallRulesClientListByServerOptions
- type FirewallRulesClientListByServerResponse
- type FlexibleServerCapability
- type FlexibleServerClient
- func (client *FlexibleServerClient) BeginStartLtrBackup(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[FlexibleServerClientStartLtrBackupResponse], error)
- func (client *FlexibleServerClient) TriggerLtrPreBackup(ctx context.Context, resourceGroupName string, serverName string, ...) (FlexibleServerClientTriggerLtrPreBackupResponse, error)
- type FlexibleServerClientBeginStartLtrBackupOptions
- type FlexibleServerClientStartLtrBackupResponse
- type FlexibleServerClientTriggerLtrPreBackupOptions
- type FlexibleServerClientTriggerLtrPreBackupResponse
- type FlexibleServerEditionCapability
- type GeoBackupSupportedEnum
- type GeoRedundantBackupEnum
- type GetPrivateDNSZoneSuffixClient
- type GetPrivateDNSZoneSuffixClientExecuteOptions
- type GetPrivateDNSZoneSuffixClientExecuteResponse
- type HaMode
- type HighAvailability
- type HighAvailabilityMode
- type IdentityType
- type ImpactRecord
- type IndexRecommendationDetails
- type IndexRecommendationListResult
- type IndexRecommendationResource
- type IndexRecommendationResourceProperties
- type IndexRecommendationResourcePropertiesAnalyzedWorkload
- type IndexRecommendationResourcePropertiesImplementationDetails
- type KeyStatusEnum
- type LocationBasedCapabilitiesClient
- type LocationBasedCapabilitiesClientExecuteOptions
- type LocationBasedCapabilitiesClientExecuteResponse
- type LogFile
- type LogFileListResult
- type LogFileProperties
- type LogFilesClient
- type LogFilesClientListByServerOptions
- type LogFilesClientListByServerResponse
- type LogicalReplicationOnSourceDbEnum
- type LtrBackupOperationResponseProperties
- type LtrBackupOperationsClient
- func (client *LtrBackupOperationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (LtrBackupOperationsClientGetResponse, error)
- func (client *LtrBackupOperationsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[LtrBackupOperationsClientListByServerResponse]
- type LtrBackupOperationsClientGetOptions
- type LtrBackupOperationsClientGetResponse
- type LtrBackupOperationsClientListByServerOptions
- type LtrBackupOperationsClientListByServerResponse
- type LtrBackupRequest
- type LtrBackupResponse
- type LtrPreBackupRequest
- type LtrPreBackupResponse
- type LtrPreBackupResponseProperties
- type LtrServerBackupOperation
- type LtrServerBackupOperationList
- type MaintenanceWindow
- type MigrateRolesEnum
- type MigrationDbState
- type MigrationListFilter
- type MigrationMode
- type MigrationNameAvailabilityReason
- type MigrationNameAvailabilityResource
- type MigrationOption
- type MigrationResource
- type MigrationResourceForPatch
- type MigrationResourceListResult
- type MigrationResourceProperties
- type MigrationResourcePropertiesForPatch
- type MigrationSecretParameters
- type MigrationState
- type MigrationStatus
- type MigrationSubState
- type MigrationSubStateDetails
- type MigrationsClient
- func (client *MigrationsClient) Create(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (MigrationsClientCreateResponse, error)
- func (client *MigrationsClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (MigrationsClientDeleteResponse, error)
- func (client *MigrationsClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (MigrationsClientGetResponse, error)
- func (client *MigrationsClient) NewListByTargetServerPager(subscriptionID string, resourceGroupName string, targetDbServerName string, ...) *runtime.Pager[MigrationsClientListByTargetServerResponse]
- func (client *MigrationsClient) Update(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (MigrationsClientUpdateResponse, error)
- type MigrationsClientCreateOptions
- type MigrationsClientCreateResponse
- type MigrationsClientDeleteOptions
- type MigrationsClientDeleteResponse
- type MigrationsClientGetOptions
- type MigrationsClientGetResponse
- type MigrationsClientListByTargetServerOptions
- type MigrationsClientListByTargetServerResponse
- type MigrationsClientUpdateOptions
- type MigrationsClientUpdateResponse
- type NameAvailability
- type NameProperty
- type Network
- type OnlineResizeSupportedEnum
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationOrigin
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type OverwriteDbsInTargetEnum
- type PasswordAuthEnum
- type PostgreSQLManagementClient
- type PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions
- type PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse
- type PrincipalType
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionClient
- func (client *PrivateEndpointConnectionClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[PrivateEndpointConnectionClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[PrivateEndpointConnectionClientUpdateResponse], error)
- type PrivateEndpointConnectionClientBeginDeleteOptions
- type PrivateEndpointConnectionClientBeginUpdateOptions
- type PrivateEndpointConnectionClientDeleteResponse
- type PrivateEndpointConnectionClientUpdateResponse
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse]
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListByServerOptions
- type PrivateEndpointConnectionsClientListByServerResponse
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse]
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListByServerOptions
- type PrivateLinkResourcesClientListByServerResponse
- type PrivateLinkServiceConnectionState
- type QuotaUsage
- type QuotaUsagesClient
- type QuotaUsagesClientListOptions
- type QuotaUsagesClientListResponse
- type QuotaUsagesListResult
- type ReadReplicaPromoteMode
- type RecommendationType
- type RecommendationTypeEnum
- type Replica
- type ReplicasClient
- type ReplicasClientListByServerOptions
- type ReplicasClientListByServerResponse
- type ReplicationPromoteOption
- type ReplicationRole
- type ReplicationState
- type RestartParameter
- type RestrictedEnum
- type SKU
- type SKUTier
- type SSLMode
- type Server
- type ServerBackup
- type ServerBackupListResult
- type ServerBackupProperties
- type ServerCapabilitiesClient
- type ServerCapabilitiesClientListOptions
- type ServerCapabilitiesClientListResponse
- type ServerForUpdate
- type ServerHAState
- type ServerListResult
- type ServerProperties
- type ServerPropertiesForUpdate
- type ServerPublicNetworkAccessState
- type ServerSKU
- type ServerSKUCapability
- type ServerState
- type ServerThreatProtectionListResult
- type ServerThreatProtectionProperties
- type ServerThreatProtectionSettingsClient
- func (client *ServerThreatProtectionSettingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServerThreatProtectionSettingsClientCreateOrUpdateResponse], ...)
- func (client *ServerThreatProtectionSettingsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (ServerThreatProtectionSettingsClientGetResponse, error)
- func (client *ServerThreatProtectionSettingsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[ServerThreatProtectionSettingsClientListByServerResponse]
- type ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions
- type ServerThreatProtectionSettingsClientCreateOrUpdateResponse
- type ServerThreatProtectionSettingsClientGetOptions
- type ServerThreatProtectionSettingsClientGetResponse
- type ServerThreatProtectionSettingsClientListByServerOptions
- type ServerThreatProtectionSettingsClientListByServerResponse
- type ServerThreatProtectionSettingsModel
- type ServerVersion
- type ServerVersionCapability
- type ServersClient
- func (client *ServersClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientCreateResponse], error)
- func (client *ServersClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientDeleteResponse], error)
- func (client *ServersClient) BeginRestart(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientRestartResponse], error)
- func (client *ServersClient) BeginStart(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientStartResponse], error)
- func (client *ServersClient) BeginStop(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientStopResponse], error)
- func (client *ServersClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientUpdateResponse], error)
- func (client *ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (ServersClientGetResponse, error)
- func (client *ServersClient) NewListByResourceGroupPager(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse]
- func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse]
- type ServersClientBeginCreateOptions
- type ServersClientBeginDeleteOptions
- type ServersClientBeginRestartOptions
- type ServersClientBeginStartOptions
- type ServersClientBeginStopOptions
- type ServersClientBeginUpdateOptions
- type ServersClientCreateResponse
- type ServersClientDeleteResponse
- type ServersClientGetOptions
- type ServersClientGetResponse
- type ServersClientListByResourceGroupOptions
- type ServersClientListByResourceGroupResponse
- type ServersClientListOptions
- type ServersClientListResponse
- type ServersClientRestartResponse
- type ServersClientStartResponse
- type ServersClientStopResponse
- type ServersClientUpdateResponse
- type SessionDetailsListResult
- type SessionDetailsResource
- type SessionResource
- type SessionsListResult
- type SourceType
- type StartDataMigrationEnum
- type Storage
- type StorageAutoGrow
- type StorageAutoGrowthSupportedEnum
- type StorageEditionCapability
- type StorageMbCapability
- type StorageTierCapability
- type StorageType
- type SupportedFeature
- type SupportedFeatureStatusEnum
- type SystemData
- type ThreatProtectionName
- type ThreatProtectionState
- type TriggerCutoverEnum
- type TuningConfigurationClient
- func (client *TuningConfigurationClient) BeginDisable(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[TuningConfigurationClientDisableResponse], error)
- func (client *TuningConfigurationClient) BeginEnable(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[TuningConfigurationClientEnableResponse], error)
- func (client *TuningConfigurationClient) BeginStartSession(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[TuningConfigurationClientStartSessionResponse], error)
- func (client *TuningConfigurationClient) BeginStopSession(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[TuningConfigurationClientStopSessionResponse], error)
- func (client *TuningConfigurationClient) NewListSessionDetailsPager(resourceGroupName string, serverName string, tuningOption TuningOptionEnum, ...) *runtime.Pager[TuningConfigurationClientListSessionDetailsResponse]
- func (client *TuningConfigurationClient) NewListSessionsPager(resourceGroupName string, serverName string, tuningOption TuningOptionEnum, ...) *runtime.Pager[TuningConfigurationClientListSessionsResponse]
- type TuningConfigurationClientBeginDisableOptions
- type TuningConfigurationClientBeginEnableOptions
- type TuningConfigurationClientBeginStartSessionOptions
- type TuningConfigurationClientBeginStopSessionOptions
- type TuningConfigurationClientDisableResponse
- type TuningConfigurationClientEnableResponse
- type TuningConfigurationClientListSessionDetailsOptions
- type TuningConfigurationClientListSessionDetailsResponse
- type TuningConfigurationClientListSessionsOptions
- type TuningConfigurationClientListSessionsResponse
- type TuningConfigurationClientStartSessionResponse
- type TuningConfigurationClientStopSessionResponse
- type TuningIndexClient
- type TuningIndexClientListRecommendationsOptions
- type TuningIndexClientListRecommendationsResponse
- type TuningOptionEnum
- type TuningOptionsClient
- func (client *TuningOptionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (TuningOptionsClientGetResponse, error)
- func (client *TuningOptionsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[TuningOptionsClientListByServerResponse]
- type TuningOptionsClientGetOptions
- type TuningOptionsClientGetResponse
- type TuningOptionsClientListByServerOptions
- type TuningOptionsClientListByServerResponse
- type TuningOptionsListResult
- type TuningOptionsResource
- type UserAssignedIdentity
- type UserIdentity
- type ValidationDetails
- type ValidationMessage
- type ValidationState
- type ValidationSummaryItem
- type VirtualEndpointResource
- type VirtualEndpointResourceForPatch
- type VirtualEndpointResourceProperties
- type VirtualEndpointType
- type VirtualEndpointsClient
- func (client *VirtualEndpointsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[VirtualEndpointsClientCreateResponse], error)
- func (client *VirtualEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[VirtualEndpointsClientDeleteResponse], error)
- func (client *VirtualEndpointsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[VirtualEndpointsClientUpdateResponse], error)
- func (client *VirtualEndpointsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (VirtualEndpointsClientGetResponse, error)
- func (client *VirtualEndpointsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[VirtualEndpointsClientListByServerResponse]
- type VirtualEndpointsClientBeginCreateOptions
- type VirtualEndpointsClientBeginDeleteOptions
- type VirtualEndpointsClientBeginUpdateOptions
- type VirtualEndpointsClientCreateResponse
- type VirtualEndpointsClientDeleteResponse
- type VirtualEndpointsClientGetOptions
- type VirtualEndpointsClientGetResponse
- type VirtualEndpointsClientListByServerOptions
- type VirtualEndpointsClientListByServerResponse
- type VirtualEndpointsClientUpdateResponse
- type VirtualEndpointsListResult
- type VirtualNetworkSubnetUsageClient
- type VirtualNetworkSubnetUsageClientExecuteOptions
- type VirtualNetworkSubnetUsageClientExecuteResponse
- type VirtualNetworkSubnetUsageParameter
- type VirtualNetworkSubnetUsageResult
- type ZoneRedundantHaAndGeoBackupSupportedEnum
- type ZoneRedundantHaSupportedEnum
Examples ¶
- AdministratorsClient.BeginCreate
- AdministratorsClient.BeginDelete
- AdministratorsClient.Get
- AdministratorsClient.NewListByServerPager
- BackupsClient.BeginCreate
- BackupsClient.BeginDelete
- BackupsClient.Get
- BackupsClient.NewListByServerPager
- CheckNameAvailabilityClient.Execute
- CheckNameAvailabilityWithLocationClient.Execute
- ConfigurationsClient.BeginPut
- ConfigurationsClient.BeginUpdate
- ConfigurationsClient.Get
- ConfigurationsClient.NewListByServerPager
- DatabasesClient.BeginCreate
- DatabasesClient.BeginDelete
- DatabasesClient.Get
- DatabasesClient.NewListByServerPager
- FirewallRulesClient.BeginCreateOrUpdate
- FirewallRulesClient.BeginDelete
- FirewallRulesClient.Get
- FirewallRulesClient.NewListByServerPager
- FlexibleServerClient.BeginStartLtrBackup
- FlexibleServerClient.TriggerLtrPreBackup
- GetPrivateDNSZoneSuffixClient.Execute
- LocationBasedCapabilitiesClient.NewExecutePager
- LogFilesClient.NewListByServerPager
- LtrBackupOperationsClient.Get
- LtrBackupOperationsClient.NewListByServerPager
- MigrationsClient.Create (CreateMigrationWithOtherSourceTypesForValidateAndMigrate)
- MigrationsClient.Create (CreatePreMigrationValidation)
- MigrationsClient.Create (MigrationsCreate)
- MigrationsClient.Create (MigrationsCreateByPassingUserNames)
- MigrationsClient.Create (MigrationsCreateWithFullyQualifiedDomainName)
- MigrationsClient.Create (MigrationsCreateWithPrivateEndpoint)
- MigrationsClient.Create (MigrationsCreateWithRoles)
- MigrationsClient.Delete
- MigrationsClient.Get (MigrationsGet)
- MigrationsClient.Get (MigrationsGetMigrationWithSuccessfulValidationAndMigration)
- MigrationsClient.Get (MigrationsGetMigrationWithSuccessfulValidationButMigrationFailure)
- MigrationsClient.Get (MigrationsGetMigrationWithSuccessfulValidationOnly)
- MigrationsClient.Get (MigrationsGetMigrationWithValidationFailures)
- MigrationsClient.NewListByTargetServerPager
- MigrationsClient.Update (CancelMigration)
- MigrationsClient.Update (MigrationsUpdate)
- OperationsClient.NewListPager
- PostgreSQLManagementClient.CheckMigrationNameAvailability
- PrivateEndpointConnectionClient.BeginDelete
- PrivateEndpointConnectionClient.BeginUpdate
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.NewListByServerPager
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.NewListByServerPager
- QuotaUsagesClient.NewListPager
- ReplicasClient.NewListByServerPager
- ServerCapabilitiesClient.NewListPager
- ServerThreatProtectionSettingsClient.BeginCreateOrUpdate
- ServerThreatProtectionSettingsClient.Get
- ServerThreatProtectionSettingsClient.NewListByServerPager
- ServersClient.BeginCreate (ClusterCreate)
- ServersClient.BeginCreate (CreateADatabaseAsAGeoRestoreInGeoPairedLocation)
- ServersClient.BeginCreate (CreateADatabaseAsAPointInTimeRestore)
- ServersClient.BeginCreate (CreateANewServer)
- ServersClient.BeginCreate (CreateANewServerWithMicrosoftEntraAuthenticationEnabled)
- ServersClient.BeginCreate (ServerCreateReplica)
- ServersClient.BeginCreate (ServerCreateReviveDropped)
- ServersClient.BeginCreate (ServerCreateWithDataEncryptionEnabled)
- ServersClient.BeginDelete
- ServersClient.BeginRestart (ServerRestart)
- ServersClient.BeginRestart (ServerRestartWithFailover)
- ServersClient.BeginStart
- ServersClient.BeginStop
- ServersClient.BeginUpdate (PromoteAReplicaServerAsAStandaloneServerAsForcedIEItWillPromoteAReplicaServerImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync)
- ServersClient.BeginUpdate (PromoteAReplicaServerAsAStandaloneServerAsPlannedIEItWillWaitForReplicationToComplete)
- ServersClient.BeginUpdate (ServerUpdate)
- ServersClient.BeginUpdate (ServerUpdateWithCustomerMaintenanceWindow)
- ServersClient.BeginUpdate (ServerUpdateWithDataEncryptionEnabled)
- ServersClient.BeginUpdate (ServerUpdateWithMajorVersionUpgrade)
- ServersClient.BeginUpdate (ServerUpdateWithMicrosoftEntraEnabled)
- ServersClient.BeginUpdate (SwitchOverAReplicaServerAsForcedIEItWillReplicaAsPrimaryAndOriginalPrimaryAsReplicaImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync)
- ServersClient.BeginUpdate (SwitchOverAReplicaServerAsPlannedIEItWillWaitForReplicationToCompleteBeforePromotingReplicaAsPrimaryAndOriginalPrimaryAsReplica)
- ServersClient.Get (ServerGet)
- ServersClient.Get (ServerGetWithPrivateEndpoints)
- ServersClient.Get (ServerGetWithVnet)
- ServersClient.NewListByResourceGroupPager
- ServersClient.NewListPager
- TuningConfigurationClient.BeginDisable
- TuningConfigurationClient.BeginEnable
- TuningConfigurationClient.BeginStartSession
- TuningConfigurationClient.BeginStopSession
- TuningConfigurationClient.NewListSessionDetailsPager
- TuningConfigurationClient.NewListSessionsPager
- TuningIndexClient.NewListRecommendationsPager (TuningIndexListFilteredRecommendations)
- TuningIndexClient.NewListRecommendationsPager (TuningIndexListRecommendations)
- TuningOptionsClient.Get
- TuningOptionsClient.NewListByServerPager
- VirtualEndpointsClient.BeginCreate
- VirtualEndpointsClient.BeginDelete
- VirtualEndpointsClient.BeginUpdate
- VirtualEndpointsClient.Get
- VirtualEndpointsClient.NewListByServerPager
- VirtualNetworkSubnetUsageClient.Execute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveDirectoryAdministrator ¶
type ActiveDirectoryAdministrator struct { // REQUIRED; Properties of the Microsoft Entra Administrator. Properties *AdministratorProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ActiveDirectoryAdministrator - Represents an Microsoft Entra Administrator.
func (ActiveDirectoryAdministrator) MarshalJSON ¶
func (a ActiveDirectoryAdministrator) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectoryAdministrator.
func (*ActiveDirectoryAdministrator) UnmarshalJSON ¶
func (a *ActiveDirectoryAdministrator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDirectoryAdministrator.
type ActiveDirectoryAdministratorAdd ¶
type ActiveDirectoryAdministratorAdd struct { // Properties of the Microsoft Entra Administrator. Properties *AdministratorPropertiesForAdd }
ActiveDirectoryAdministratorAdd - Represents an Microsoft Entra Administrator.
func (ActiveDirectoryAdministratorAdd) MarshalJSON ¶
func (a ActiveDirectoryAdministratorAdd) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectoryAdministratorAdd.
func (*ActiveDirectoryAdministratorAdd) UnmarshalJSON ¶
func (a *ActiveDirectoryAdministratorAdd) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDirectoryAdministratorAdd.
type ActiveDirectoryAuthEnum ¶
type ActiveDirectoryAuthEnum string
ActiveDirectoryAuthEnum - If Enabled, Microsoft Entra authentication is enabled.
const ( ActiveDirectoryAuthEnumDisabled ActiveDirectoryAuthEnum = "Disabled" ActiveDirectoryAuthEnumEnabled ActiveDirectoryAuthEnum = "Enabled" )
func PossibleActiveDirectoryAuthEnumValues ¶
func PossibleActiveDirectoryAuthEnumValues() []ActiveDirectoryAuthEnum
PossibleActiveDirectoryAuthEnumValues returns the possible values for the ActiveDirectoryAuthEnum const type.
type AdminCredentials ¶
type AdminCredentials struct { // REQUIRED; Password for source server. SourceServerPassword *string // REQUIRED; Password for target server. TargetServerPassword *string }
AdminCredentials - Server admin credentials.
func (AdminCredentials) MarshalJSON ¶
func (a AdminCredentials) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdminCredentials.
func (*AdminCredentials) UnmarshalJSON ¶
func (a *AdminCredentials) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdminCredentials.
type AdministratorListResult ¶
type AdministratorListResult struct { // The link used to get the next page of Microsoft Entra administrators. NextLink *string // The list of Microsoft Entra Administrators Value []*ActiveDirectoryAdministrator }
AdministratorListResult - A list of Microsoft Entra Administrators.
func (AdministratorListResult) MarshalJSON ¶
func (a AdministratorListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorListResult.
func (*AdministratorListResult) UnmarshalJSON ¶
func (a *AdministratorListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorListResult.
type AdministratorProperties ¶
type AdministratorProperties struct { // The objectId of the Microsoft Entra Administrator. ObjectID *string // Microsoft Entra Administrator principal name. PrincipalName *string // The principal type used to represent the type of Microsoft Entra Administrator. PrincipalType *PrincipalType // The tenantId of the Microsoft Entra Administrator. TenantID *string }
AdministratorProperties - The properties of an Microsoft Entra Administrator.
func (AdministratorProperties) MarshalJSON ¶
func (a AdministratorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorProperties.
func (*AdministratorProperties) UnmarshalJSON ¶
func (a *AdministratorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorProperties.
type AdministratorPropertiesForAdd ¶
type AdministratorPropertiesForAdd struct { // Microsoft Entra Administrator principal name. PrincipalName *string // The principal type used to represent the type of Microsoft Entra Administrator. PrincipalType *PrincipalType // The tenantId of the Microsoft Entra Administrator. TenantID *string }
AdministratorPropertiesForAdd - The properties of an Microsoft Entra Administrator.
func (AdministratorPropertiesForAdd) MarshalJSON ¶
func (a AdministratorPropertiesForAdd) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorPropertiesForAdd.
func (*AdministratorPropertiesForAdd) UnmarshalJSON ¶
func (a *AdministratorPropertiesForAdd) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorPropertiesForAdd.
type AdministratorsClient ¶
type AdministratorsClient struct {
// contains filtered or unexported fields
}
AdministratorsClient contains the methods for the Administrators group. Don't use this type directly, use NewAdministratorsClient() instead.
func NewAdministratorsClient ¶
func NewAdministratorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AdministratorsClient, error)
NewAdministratorsClient creates a new instance of AdministratorsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AdministratorsClient) BeginCreate ¶
func (client *AdministratorsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, objectID string, parameters ActiveDirectoryAdministratorAdd, options *AdministratorsClientBeginCreateOptions) (*runtime.Poller[AdministratorsClientCreateResponse], error)
BeginCreate - Creates a new server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- objectID - Guid of the objectId for the administrator.
- parameters - The required parameters for adding an Microsoft Entra Administrator for a server.
- options - AdministratorsClientBeginCreateOptions contains the optional parameters for the AdministratorsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/AdministratorAdd.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAdministratorsClient().BeginCreate(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", armpostgresqlflexibleservers.ActiveDirectoryAdministratorAdd{ Properties: &armpostgresqlflexibleservers.AdministratorPropertiesForAdd{ PrincipalName: to.Ptr("testuser1@microsoft.com"), PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // Name: to.Ptr("testuser1@microsoft.com"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuser1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }
func (*AdministratorsClient) BeginDelete ¶
func (client *AdministratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, objectID string, options *AdministratorsClientBeginDeleteOptions) (*runtime.Poller[AdministratorsClientDeleteResponse], error)
BeginDelete - Deletes an Microsoft Entra Administrator associated with the server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- objectID - Guid of the objectId for the administrator.
- options - AdministratorsClientBeginDeleteOptions contains the optional parameters for the AdministratorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/AdministratorDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAdministratorsClient().BeginDelete(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*AdministratorsClient) Get ¶
func (client *AdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, objectID string, options *AdministratorsClientGetOptions) (AdministratorsClientGetResponse, error)
Get - Gets information about a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- objectID - Guid of the objectId for the administrator.
- options - AdministratorsClientGetOptions contains the optional parameters for the AdministratorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/AdministratorGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAdministratorsClient().Get(ctx, "testrg", "pgtestsvc1", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // Name: to.Ptr("testuser1@microsoft.com"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuer1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }
func (*AdministratorsClient) NewListByServerPager ¶
func (client *AdministratorsClient) NewListByServerPager(resourceGroupName string, serverName string, options *AdministratorsClientListByServerOptions) *runtime.Pager[AdministratorsClientListByServerResponse]
NewListByServerPager - List all the AAD administrators for a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - AdministratorsClientListByServerOptions contains the optional parameters for the AdministratorsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/AdministratorsListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAdministratorsClient().NewListByServerPager("testrg", "pgtestsvc1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AdministratorListResult = armpostgresqlflexibleservers.AdministratorListResult{ // Value: []*armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // { // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuer1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }, // { // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("gggggggg-gggg-gggg-gggg-gggggggggggg"), // PrincipalName: to.Ptr("testgroup1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeGroup), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }}, // } }
type AdministratorsClientBeginCreateOptions ¶
type AdministratorsClientBeginCreateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
AdministratorsClientBeginCreateOptions contains the optional parameters for the AdministratorsClient.BeginCreate method.
type AdministratorsClientBeginDeleteOptions ¶
type AdministratorsClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
AdministratorsClientBeginDeleteOptions contains the optional parameters for the AdministratorsClient.BeginDelete method.
type AdministratorsClientCreateResponse ¶
type AdministratorsClientCreateResponse struct { // Represents an Microsoft Entra Administrator. ActiveDirectoryAdministrator }
AdministratorsClientCreateResponse contains the response from method AdministratorsClient.BeginCreate.
type AdministratorsClientDeleteResponse ¶
type AdministratorsClientDeleteResponse struct { }
AdministratorsClientDeleteResponse contains the response from method AdministratorsClient.BeginDelete.
type AdministratorsClientGetOptions ¶
type AdministratorsClientGetOptions struct { }
AdministratorsClientGetOptions contains the optional parameters for the AdministratorsClient.Get method.
type AdministratorsClientGetResponse ¶
type AdministratorsClientGetResponse struct { // Represents an Microsoft Entra Administrator. ActiveDirectoryAdministrator }
AdministratorsClientGetResponse contains the response from method AdministratorsClient.Get.
type AdministratorsClientListByServerOptions ¶
type AdministratorsClientListByServerOptions struct { }
AdministratorsClientListByServerOptions contains the optional parameters for the AdministratorsClient.NewListByServerPager method.
type AdministratorsClientListByServerResponse ¶
type AdministratorsClientListByServerResponse struct { // A list of Microsoft Entra Administrators. AdministratorListResult }
AdministratorsClientListByServerResponse contains the response from method AdministratorsClient.NewListByServerPager.
type ArmServerKeyType ¶
type ArmServerKeyType string
ArmServerKeyType - Data encryption type to depict if it is System Managed vs Azure Key vault.
const ( ArmServerKeyTypeAzureKeyVault ArmServerKeyType = "AzureKeyVault" ArmServerKeyTypeSystemManaged ArmServerKeyType = "SystemManaged" )
func PossibleArmServerKeyTypeValues ¶
func PossibleArmServerKeyTypeValues() []ArmServerKeyType
PossibleArmServerKeyTypeValues returns the possible values for the ArmServerKeyType const type.
type AuthConfig ¶
type AuthConfig struct { // If Enabled, Microsoft Entra authentication is enabled. ActiveDirectoryAuth *ActiveDirectoryAuthEnum // If Enabled, Password authentication is enabled. PasswordAuth *PasswordAuthEnum // Tenant id of the server. TenantID *string }
AuthConfig - Authentication configuration properties of a server
func (AuthConfig) MarshalJSON ¶
func (a AuthConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AuthConfig.
func (*AuthConfig) UnmarshalJSON ¶
func (a *AuthConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AuthConfig.
type AzureManagedDiskPerformanceTiers ¶
type AzureManagedDiskPerformanceTiers string
AzureManagedDiskPerformanceTiers - Name of storage tier for IOPS.
const ( AzureManagedDiskPerformanceTiersP1 AzureManagedDiskPerformanceTiers = "P1" AzureManagedDiskPerformanceTiersP10 AzureManagedDiskPerformanceTiers = "P10" AzureManagedDiskPerformanceTiersP15 AzureManagedDiskPerformanceTiers = "P15" AzureManagedDiskPerformanceTiersP2 AzureManagedDiskPerformanceTiers = "P2" AzureManagedDiskPerformanceTiersP20 AzureManagedDiskPerformanceTiers = "P20" AzureManagedDiskPerformanceTiersP3 AzureManagedDiskPerformanceTiers = "P3" AzureManagedDiskPerformanceTiersP30 AzureManagedDiskPerformanceTiers = "P30" AzureManagedDiskPerformanceTiersP4 AzureManagedDiskPerformanceTiers = "P4" AzureManagedDiskPerformanceTiersP40 AzureManagedDiskPerformanceTiers = "P40" AzureManagedDiskPerformanceTiersP50 AzureManagedDiskPerformanceTiers = "P50" AzureManagedDiskPerformanceTiersP6 AzureManagedDiskPerformanceTiers = "P6" AzureManagedDiskPerformanceTiersP60 AzureManagedDiskPerformanceTiers = "P60" AzureManagedDiskPerformanceTiersP70 AzureManagedDiskPerformanceTiers = "P70" AzureManagedDiskPerformanceTiersP80 AzureManagedDiskPerformanceTiers = "P80" )
func PossibleAzureManagedDiskPerformanceTiersValues ¶
func PossibleAzureManagedDiskPerformanceTiersValues() []AzureManagedDiskPerformanceTiers
PossibleAzureManagedDiskPerformanceTiersValues returns the possible values for the AzureManagedDiskPerformanceTiers const type.
type Backup ¶
type Backup struct { // Backup retention days for the server. BackupRetentionDays *int32 // A value indicating whether Geo-Redundant backup is enabled on the server. GeoRedundantBackup *GeoRedundantBackupEnum // READ-ONLY; The earliest restore point time (ISO8601 format) for server. EarliestRestoreDate *time.Time }
Backup properties of a server
func (Backup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Backup.
func (*Backup) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Backup.
type BackupSettings ¶
type BackupSettings struct { // REQUIRED; Backup Name for the current backup BackupName *string }
BackupSettings - The settings for the long term backup.
func (BackupSettings) MarshalJSON ¶
func (b BackupSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupSettings.
func (*BackupSettings) UnmarshalJSON ¶
func (b *BackupSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupSettings.
type BackupStoreDetails ¶
type BackupStoreDetails struct { // REQUIRED; List of SAS uri of storage containers where backup data is to be streamed/copied. SasURIList []*string }
BackupStoreDetails - Details about the target where the backup content will be stored.
func (BackupStoreDetails) MarshalJSON ¶
func (b BackupStoreDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupStoreDetails.
func (*BackupStoreDetails) UnmarshalJSON ¶
func (b *BackupStoreDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupStoreDetails.
type BackupsClient ¶
type BackupsClient struct {
// contains filtered or unexported fields
}
BackupsClient contains the methods for the Backups group. Don't use this type directly, use NewBackupsClient() instead.
func NewBackupsClient ¶
func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsClient, error)
NewBackupsClient creates a new instance of BackupsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupsClient) BeginCreate ¶
func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginCreateOptions) (*runtime.Poller[BackupsClientCreateResponse], error)
BeginCreate - Create a specific backup for PostgreSQL flexible server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- backupName - The name of the backup.
- options - BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/BackupCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBackupsClient().BeginCreate(ctx, "TestGroup", "postgresqltestserver", "backup_20250303T160516", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerBackup = armpostgresqlflexibleservers.ServerBackup{ // Name: to.Ptr("backup_20250303T160516"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/backup_20250303T160516"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginCustomerOnDemand), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T16:05:19.902Z"); return t}()), // Source: to.Ptr("Customer Initiated"), // }, // }
func (*BackupsClient) BeginDelete ¶
func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error)
BeginDelete - Deletes a specific backup. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- backupName - The name of the backup.
- options - BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/BackupDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewBackupsClient().BeginDelete(ctx, "TestGroup", "testserver", "backup_20250303T160516", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*BackupsClient) Get ¶
func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientGetOptions) (BackupsClientGetResponse, error)
Get - Get specific backup for a given server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- backupName - The name of the backup.
- options - BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/BackupGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBackupsClient().Get(ctx, "TestGroup", "postgresqltestserver", "daily_20250303T160516", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerBackup = armpostgresqlflexibleservers.ServerBackup{ // Name: to.Ptr("daily_20250303T160516"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20250303T160516"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T16:05:19.902Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }
func (*BackupsClient) NewListByServerPager ¶
func (client *BackupsClient) NewListByServerPager(resourceGroupName string, serverName string, options *BackupsClientListByServerOptions) *runtime.Pager[BackupsClientListByServerResponse]
NewListByServerPager - List all the backups for a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - BackupsClientListByServerOptions contains the optional parameters for the BackupsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/BackupListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBackupsClient().NewListByServerPager("TestGroup", "postgresqltestserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerBackupListResult = armpostgresqlflexibleservers.ServerBackupListResult{ // Value: []*armpostgresqlflexibleservers.ServerBackup{ // { // Name: to.Ptr("backup_638766209959406043"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/backup_638766209959406043"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:49:56.940Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("ondemandbackup-03032025-1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/ondemandbackup-03032025-1"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginCustomerOnDemand), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T20:53:22.446Z"); return t}()), // Source: to.Ptr("Customer Initiated"), // }, // }}, // } }
type BackupsClientBeginCreateOptions ¶
type BackupsClientBeginCreateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method.
type BackupsClientBeginDeleteOptions ¶
type BackupsClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
type BackupsClientCreateResponse ¶
type BackupsClientCreateResponse struct { // Server backup properties ServerBackup }
BackupsClientCreateResponse contains the response from method BackupsClient.BeginCreate.
type BackupsClientDeleteResponse ¶
type BackupsClientDeleteResponse struct { }
BackupsClientDeleteResponse contains the response from method BackupsClient.BeginDelete.
type BackupsClientGetOptions ¶
type BackupsClientGetOptions struct { }
BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
type BackupsClientGetResponse ¶
type BackupsClientGetResponse struct { // Server backup properties ServerBackup }
BackupsClientGetResponse contains the response from method BackupsClient.Get.
type BackupsClientListByServerOptions ¶
type BackupsClientListByServerOptions struct { }
BackupsClientListByServerOptions contains the optional parameters for the BackupsClient.NewListByServerPager method.
type BackupsClientListByServerResponse ¶
type BackupsClientListByServerResponse struct { // A list of server backups. ServerBackupListResult }
BackupsClientListByServerResponse contains the response from method BackupsClient.NewListByServerPager.
type CancelEnum ¶
type CancelEnum string
CancelEnum - To trigger cancel for entire migration we need to send this flag as True
const ( CancelEnumFalse CancelEnum = "False" CancelEnumTrue CancelEnum = "True" )
func PossibleCancelEnumValues ¶
func PossibleCancelEnumValues() []CancelEnum
PossibleCancelEnumValues returns the possible values for the CancelEnum const type.
type CapabilitiesListResult ¶
type CapabilitiesListResult struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; A list of supported capabilities. Value []*FlexibleServerCapability }
CapabilitiesListResult - Capability for the PostgreSQL server
func (CapabilitiesListResult) MarshalJSON ¶
func (c CapabilitiesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilitiesListResult.
func (*CapabilitiesListResult) UnmarshalJSON ¶
func (c *CapabilitiesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesListResult.
type CapabilityStatus ¶
type CapabilityStatus string
CapabilityStatus - The status of the capability.
const ( CapabilityStatusAvailable CapabilityStatus = "Available" CapabilityStatusDefault CapabilityStatus = "Default" CapabilityStatusDisabled CapabilityStatus = "Disabled" CapabilityStatusVisible CapabilityStatus = "Visible" )
func PossibleCapabilityStatusValues ¶
func PossibleCapabilityStatusValues() []CapabilityStatus
PossibleCapabilityStatusValues returns the possible values for the CapabilityStatus const type.
type CheckNameAvailabilityClient ¶
type CheckNameAvailabilityClient struct {
// contains filtered or unexported fields
}
CheckNameAvailabilityClient contains the methods for the CheckNameAvailability group. Don't use this type directly, use NewCheckNameAvailabilityClient() instead.
func NewCheckNameAvailabilityClient ¶
func NewCheckNameAvailabilityClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CheckNameAvailabilityClient, error)
NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CheckNameAvailabilityClient) Execute ¶
func (client *CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest CheckNameAvailabilityRequest, options *CheckNameAvailabilityClientExecuteOptions) (CheckNameAvailabilityClientExecuteResponse, error)
Execute - Check the availability of name for resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- nameAvailabilityRequest - The required parameters for checking if resource name is available.
- options - CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/CheckNameAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCheckNameAvailabilityClient().Execute(ctx, armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ // Message: to.Ptr(""), // NameAvailable: to.Ptr(true), // Name: to.Ptr("name1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // }
type CheckNameAvailabilityClientExecuteOptions ¶
type CheckNameAvailabilityClientExecuteOptions struct { }
CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute method.
type CheckNameAvailabilityClientExecuteResponse ¶
type CheckNameAvailabilityClientExecuteResponse struct { // Represents a resource name availability. NameAvailability }
CheckNameAvailabilityClientExecuteResponse contains the response from method CheckNameAvailabilityClient.Execute.
type CheckNameAvailabilityReason ¶
type CheckNameAvailabilityReason string
CheckNameAvailabilityReason - The reason why the given name is not available.
const ( CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists" CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid" )
func PossibleCheckNameAvailabilityReasonValues ¶
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason
PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
type CheckNameAvailabilityRequest ¶
type CheckNameAvailabilityRequest struct { // The name of the resource for which availability needs to be checked. Name *string // The resource type. Type *string }
CheckNameAvailabilityRequest - The check availability request body.
func (CheckNameAvailabilityRequest) MarshalJSON ¶
func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest.
func (*CheckNameAvailabilityRequest) UnmarshalJSON ¶
func (c *CheckNameAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityRequest.
type CheckNameAvailabilityWithLocationClient ¶
type CheckNameAvailabilityWithLocationClient struct {
// contains filtered or unexported fields
}
CheckNameAvailabilityWithLocationClient contains the methods for the CheckNameAvailabilityWithLocation group. Don't use this type directly, use NewCheckNameAvailabilityWithLocationClient() instead.
func NewCheckNameAvailabilityWithLocationClient ¶
func NewCheckNameAvailabilityWithLocationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CheckNameAvailabilityWithLocationClient, error)
NewCheckNameAvailabilityWithLocationClient creates a new instance of CheckNameAvailabilityWithLocationClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CheckNameAvailabilityWithLocationClient) Execute ¶
func (client *CheckNameAvailabilityWithLocationClient) Execute(ctx context.Context, locationName string, nameAvailabilityRequest CheckNameAvailabilityRequest, options *CheckNameAvailabilityWithLocationClientExecuteOptions) (CheckNameAvailabilityWithLocationClientExecuteResponse, error)
Execute - Check the availability of name for resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- locationName - The name of the location.
- nameAvailabilityRequest - The required parameters for checking if resource name is available.
- options - CheckNameAvailabilityWithLocationClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityWithLocationClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/CheckNameAvailabilityLocationBased.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCheckNameAvailabilityWithLocationClient().Execute(ctx, "westus", armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ // Message: to.Ptr(""), // NameAvailable: to.Ptr(true), // Name: to.Ptr("name1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // }
type CheckNameAvailabilityWithLocationClientExecuteOptions ¶
type CheckNameAvailabilityWithLocationClientExecuteOptions struct { }
CheckNameAvailabilityWithLocationClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityWithLocationClient.Execute method.
type CheckNameAvailabilityWithLocationClientExecuteResponse ¶
type CheckNameAvailabilityWithLocationClientExecuteResponse struct { // Represents a resource name availability. NameAvailability }
CheckNameAvailabilityWithLocationClientExecuteResponse contains the response from method CheckNameAvailabilityWithLocationClient.Execute.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAdministratorsClient ¶
func (c *ClientFactory) NewAdministratorsClient() *AdministratorsClient
NewAdministratorsClient creates a new instance of AdministratorsClient.
func (*ClientFactory) NewBackupsClient ¶
func (c *ClientFactory) NewBackupsClient() *BackupsClient
NewBackupsClient creates a new instance of BackupsClient.
func (*ClientFactory) NewCheckNameAvailabilityClient ¶
func (c *ClientFactory) NewCheckNameAvailabilityClient() *CheckNameAvailabilityClient
NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient.
func (*ClientFactory) NewCheckNameAvailabilityWithLocationClient ¶
func (c *ClientFactory) NewCheckNameAvailabilityWithLocationClient() *CheckNameAvailabilityWithLocationClient
NewCheckNameAvailabilityWithLocationClient creates a new instance of CheckNameAvailabilityWithLocationClient.
func (*ClientFactory) NewConfigurationsClient ¶
func (c *ClientFactory) NewConfigurationsClient() *ConfigurationsClient
NewConfigurationsClient creates a new instance of ConfigurationsClient.
func (*ClientFactory) NewDatabasesClient ¶
func (c *ClientFactory) NewDatabasesClient() *DatabasesClient
NewDatabasesClient creates a new instance of DatabasesClient.
func (*ClientFactory) NewFirewallRulesClient ¶
func (c *ClientFactory) NewFirewallRulesClient() *FirewallRulesClient
NewFirewallRulesClient creates a new instance of FirewallRulesClient.
func (*ClientFactory) NewFlexibleServerClient ¶
func (c *ClientFactory) NewFlexibleServerClient() *FlexibleServerClient
NewFlexibleServerClient creates a new instance of FlexibleServerClient.
func (*ClientFactory) NewGetPrivateDNSZoneSuffixClient ¶
func (c *ClientFactory) NewGetPrivateDNSZoneSuffixClient() *GetPrivateDNSZoneSuffixClient
NewGetPrivateDNSZoneSuffixClient creates a new instance of GetPrivateDNSZoneSuffixClient.
func (*ClientFactory) NewLocationBasedCapabilitiesClient ¶
func (c *ClientFactory) NewLocationBasedCapabilitiesClient() *LocationBasedCapabilitiesClient
NewLocationBasedCapabilitiesClient creates a new instance of LocationBasedCapabilitiesClient.
func (*ClientFactory) NewLogFilesClient ¶
func (c *ClientFactory) NewLogFilesClient() *LogFilesClient
NewLogFilesClient creates a new instance of LogFilesClient.
func (*ClientFactory) NewLtrBackupOperationsClient ¶
func (c *ClientFactory) NewLtrBackupOperationsClient() *LtrBackupOperationsClient
NewLtrBackupOperationsClient creates a new instance of LtrBackupOperationsClient.
func (*ClientFactory) NewMigrationsClient ¶
func (c *ClientFactory) NewMigrationsClient() *MigrationsClient
NewMigrationsClient creates a new instance of MigrationsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPostgreSQLManagementClient ¶
func (c *ClientFactory) NewPostgreSQLManagementClient() *PostgreSQLManagementClient
NewPostgreSQLManagementClient creates a new instance of PostgreSQLManagementClient.
func (*ClientFactory) NewPrivateEndpointConnectionClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient
NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient.
func (*ClientFactory) NewPrivateEndpointConnectionsClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.
func (*ClientFactory) NewPrivateLinkResourcesClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
func (*ClientFactory) NewQuotaUsagesClient ¶
func (c *ClientFactory) NewQuotaUsagesClient() *QuotaUsagesClient
NewQuotaUsagesClient creates a new instance of QuotaUsagesClient.
func (*ClientFactory) NewReplicasClient ¶
func (c *ClientFactory) NewReplicasClient() *ReplicasClient
NewReplicasClient creates a new instance of ReplicasClient.
func (*ClientFactory) NewServerCapabilitiesClient ¶
func (c *ClientFactory) NewServerCapabilitiesClient() *ServerCapabilitiesClient
NewServerCapabilitiesClient creates a new instance of ServerCapabilitiesClient.
func (*ClientFactory) NewServerThreatProtectionSettingsClient ¶
func (c *ClientFactory) NewServerThreatProtectionSettingsClient() *ServerThreatProtectionSettingsClient
NewServerThreatProtectionSettingsClient creates a new instance of ServerThreatProtectionSettingsClient.
func (*ClientFactory) NewServersClient ¶
func (c *ClientFactory) NewServersClient() *ServersClient
NewServersClient creates a new instance of ServersClient.
func (*ClientFactory) NewTuningConfigurationClient ¶
func (c *ClientFactory) NewTuningConfigurationClient() *TuningConfigurationClient
NewTuningConfigurationClient creates a new instance of TuningConfigurationClient.
func (*ClientFactory) NewTuningIndexClient ¶
func (c *ClientFactory) NewTuningIndexClient() *TuningIndexClient
NewTuningIndexClient creates a new instance of TuningIndexClient.
func (*ClientFactory) NewTuningOptionsClient ¶
func (c *ClientFactory) NewTuningOptionsClient() *TuningOptionsClient
NewTuningOptionsClient creates a new instance of TuningOptionsClient.
func (*ClientFactory) NewVirtualEndpointsClient ¶
func (c *ClientFactory) NewVirtualEndpointsClient() *VirtualEndpointsClient
NewVirtualEndpointsClient creates a new instance of VirtualEndpointsClient.
func (*ClientFactory) NewVirtualNetworkSubnetUsageClient ¶
func (c *ClientFactory) NewVirtualNetworkSubnetUsageClient() *VirtualNetworkSubnetUsageClient
NewVirtualNetworkSubnetUsageClient creates a new instance of VirtualNetworkSubnetUsageClient.
type Cluster ¶
type Cluster struct { // The node count for the cluster. ClusterSize *int32 }
Cluster properties of a server.
func (Cluster) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Cluster.
func (*Cluster) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Cluster.
type ConfigTuningRequestParameter ¶
type ConfigTuningRequestParameter struct { // Indicates whether PG should be restarted during a tuning session. AllowServerRestarts *bool // The mode with which the feature will be enabled. ConfigTuningUsageMode *bool // The name of server. ServerName *string // The target metric the tuning session is trying to improve. TargetImprovementMetric *string }
ConfigTuningRequestParameter - Config tuning request parameters.
func (ConfigTuningRequestParameter) MarshalJSON ¶
func (c ConfigTuningRequestParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigTuningRequestParameter.
func (*ConfigTuningRequestParameter) UnmarshalJSON ¶
func (c *ConfigTuningRequestParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigTuningRequestParameter.
type Configuration ¶
type Configuration struct { // The properties of a configuration. Properties *ConfigurationProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Configuration - Represents a Configuration.
func (Configuration) MarshalJSON ¶
func (c Configuration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Configuration.
func (*Configuration) UnmarshalJSON ¶
func (c *Configuration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Configuration.
type ConfigurationDataType ¶
type ConfigurationDataType string
ConfigurationDataType - Data type of the configuration.
const ( ConfigurationDataTypeBoolean ConfigurationDataType = "Boolean" ConfigurationDataTypeEnumeration ConfigurationDataType = "Enumeration" ConfigurationDataTypeInteger ConfigurationDataType = "Integer" ConfigurationDataTypeNumeric ConfigurationDataType = "Numeric" )
func PossibleConfigurationDataTypeValues ¶
func PossibleConfigurationDataTypeValues() []ConfigurationDataType
PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
type ConfigurationForUpdate ¶
type ConfigurationForUpdate struct { // The properties of a configuration. Properties *ConfigurationProperties }
ConfigurationForUpdate - Represents a Configuration.
func (ConfigurationForUpdate) MarshalJSON ¶
func (c ConfigurationForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationForUpdate.
func (*ConfigurationForUpdate) UnmarshalJSON ¶
func (c *ConfigurationForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationForUpdate.
type ConfigurationListResult ¶
type ConfigurationListResult struct { // The link used to get the next page of operations. NextLink *string // The list of server configurations. Value []*Configuration }
ConfigurationListResult - A list of server configurations.
func (ConfigurationListResult) MarshalJSON ¶
func (c ConfigurationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationListResult.
func (*ConfigurationListResult) UnmarshalJSON ¶
func (c *ConfigurationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationListResult.
type ConfigurationProperties ¶
type ConfigurationProperties struct { // Source of the configuration. Required to update the configuration. Source *string // Value of the configuration. Required to update the configuration. Value *string // READ-ONLY; Allowed values of the configuration. AllowedValues *string // READ-ONLY; Data type of the configuration. DataType *ConfigurationDataType // READ-ONLY; Default value of the configuration. DefaultValue *string // READ-ONLY; Description of the configuration. Description *string // READ-ONLY; Configuration documentation link. DocumentationLink *string // READ-ONLY; Configuration is pending restart or not. IsConfigPendingRestart *bool // READ-ONLY; Configuration dynamic or static. IsDynamicConfig *bool // READ-ONLY; Configuration read-only or not. IsReadOnly *bool // READ-ONLY; Configuration unit. Unit *string }
ConfigurationProperties - The properties of a configuration.
func (ConfigurationProperties) MarshalJSON ¶
func (c ConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProperties.
func (*ConfigurationProperties) UnmarshalJSON ¶
func (c *ConfigurationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationProperties.
type ConfigurationsClient ¶
type ConfigurationsClient struct {
// contains filtered or unexported fields
}
ConfigurationsClient contains the methods for the Configurations group. Don't use this type directly, use NewConfigurationsClient() instead.
func NewConfigurationsClient ¶
func NewConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationsClient, error)
NewConfigurationsClient creates a new instance of ConfigurationsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ConfigurationsClient) BeginPut ¶
func (client *ConfigurationsClient) BeginPut(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration, options *ConfigurationsClientBeginPutOptions) (*runtime.Poller[ConfigurationsClientPutResponse], error)
BeginPut - Updates a configuration of a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- configurationName - The name of the server configuration.
- parameters - The required parameters for updating a server configuration.
- options - ConfigurationsClientBeginPutOptions contains the optional parameters for the ConfigurationsClient.BeginPut method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ConfigurationUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationsClient().BeginPut(ctx, "testrg", "testserver", "constraint_exclusion", armpostgresqlflexibleservers.Configuration{ Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ Source: to.Ptr("user-override"), Value: to.Ptr("on"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Configuration = armpostgresqlflexibleservers.Configuration{ // Name: to.Ptr("constraint_exclusion"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the query planner's use of table constraints to optimize queries."), // AllowedValues: to.Ptr("partition,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("partition"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CONSTRAINT-EXCLUSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("user-override"), // Value: to.Ptr("on"), // }, // }
func (*ConfigurationsClient) BeginUpdate ¶
func (client *ConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters ConfigurationForUpdate, options *ConfigurationsClientBeginUpdateOptions) (*runtime.Poller[ConfigurationsClientUpdateResponse], error)
BeginUpdate - Updates a configuration of a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- configurationName - The name of the server configuration.
- parameters - The required parameters for updating a server configuration.
- options - ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ConfigurationUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationsClient().BeginUpdate(ctx, "testrg", "testserver", "constraint_exclusion", armpostgresqlflexibleservers.ConfigurationForUpdate{ Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ Source: to.Ptr("user-override"), Value: to.Ptr("on"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Configuration = armpostgresqlflexibleservers.Configuration{ // Name: to.Ptr("constraint_exclusion"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the query planner's use of table constraints to optimize queries."), // AllowedValues: to.Ptr("partition,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("partition"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CONSTRAINT-EXCLUSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("user-override"), // Value: to.Ptr("on"), // }, // }
func (*ConfigurationsClient) Get ¶
func (client *ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string, options *ConfigurationsClientGetOptions) (ConfigurationsClientGetResponse, error)
Get - Gets information about a configuration of server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- configurationName - The name of the server configuration.
- options - ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ConfigurationGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewConfigurationsClient().Get(ctx, "testrg", "testserver", "array_nulls", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Configuration = armpostgresqlflexibleservers.Configuration{ // Name: to.Ptr("array_nulls"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables input of NULL (case insensitive) to be considered as NULL value rather than the literal String 'NULL'."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-ARRAY-NULLS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }
func (*ConfigurationsClient) NewListByServerPager ¶
func (client *ConfigurationsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ConfigurationsClientListByServerOptions) *runtime.Pager[ConfigurationsClientListByServerResponse]
NewListByServerPager - List all the configurations in a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ConfigurationListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewConfigurationsClient().NewListByServerPager("testrg", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ConfigurationListResult = armpostgresqlflexibleservers.ConfigurationListResult{ // Value: []*armpostgresqlflexibleservers.Configuration{ // { // Name: to.Ptr("allow_in_place_tablespaces"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/allow_in_place_tablespaces"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allows tablespaces directly inside pg_tblspc, for testing."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-ALLOW-IN-PLACE-TABLESPACES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("allow_system_table_mods"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/allow_system_table_mods"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allows modifications of the structure of system tables."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-ALLOW-SYSTEM-TABLE-MODS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("application_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/application_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the application name to be reported in statistics and logs."), // AllowedValues: to.Ptr("[A-Za-z0-9._-]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/libpq-connect.html#LIBPQ-CONNECT-APPLICATION-NAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("archive_cleanup_command"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/archive_cleanup_command"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the shell command that will be executed at every restart point."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-ARCHIVE-CLEANUP-COMMAND"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("archive_command"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/archive_command"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the shell command that will be called to archive a WAL file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-ARCHIVE-COMMAND"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("BlobLogUpload.sh %f %p"), // }, // }, // { // Name: to.Ptr("archive_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/archive_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allows archiving of WAL files using archive_command."), // AllowedValues: to.Ptr("always,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-ARCHIVE-MODE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("always"), // }, // }, // { // Name: to.Ptr("archive_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/archive_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Forces a switch to the next WAL file if a new file has not been started within N seconds."), // AllowedValues: to.Ptr("0-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("300"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-ARCHIVE-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("300"), // }, // }, // { // Name: to.Ptr("array_nulls"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables input of NULL (case insensitive) to be considered as NULL value rather than the literal String 'NULL'."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-ARRAY-NULLS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("authentication_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/authentication_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed time to complete client authentication."), // AllowedValues: to.Ptr("1-600"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("60"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-AUTHENTICATION-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("30"), // }, // }, // { // Name: to.Ptr("auto_explain.log_analyze"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_analyze"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Use EXPLAIN ANALYZE for plan logging."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.2.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_buffers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_buffers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log buffers usage."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.3.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_format"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_format"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("EXPLAIN format to be used for plan logging."), // AllowedValues: to.Ptr("text,xml,json,yaml"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("text"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.9.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("text"), // }, // }, // { // Name: to.Ptr("auto_explain.log_level"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_level"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log level for the plan."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,debug,info,notice,warning,log"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("log"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.10.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("log"), // }, // }, // { // Name: to.Ptr("auto_explain.log_min_duration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_min_duration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time above which plans will be logged. Zero prints all plans. -1 turns this feature off."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.1.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("auto_explain.log_nested_statements"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_nested_statements"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log nested statements."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.11.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_settings"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_settings"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log modified configuration parameters affecting query planning."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.8.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_timing"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_timing"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collect timing data, not just row counts."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.5.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("auto_explain.log_triggers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_triggers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Include trigger statistics in plans. This has no effect unless log_analyze is also set."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.6.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_verbose"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_verbose"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Use EXPLAIN VERBOSE for plan logging."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.7.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.log_wal"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.log_wal"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log WAL usage."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.4.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("auto_explain.sample_rate"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/auto_explain.sample_rate"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Fraction of queries to process."), // AllowedValues: to.Ptr("0.0-1.0"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1.0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/auto-explain.html#id-1.11.7.13.5.3.12.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1.0"), // }, // }, // { // Name: to.Ptr("autovacuum"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls whether the server should run the autovacuum subprocess."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("autovacuum_analyze_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies a fraction of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-ANALYZE-SCALE-FACTOR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("autovacuum_analyze_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum number of inserted, updated or deleted tuples needed to trigger an ANALYZE in any one table."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-ANALYZE-THRESHOLD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("50"), // }, // }, // { // Name: to.Ptr("autovacuum_freeze_max_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_freeze_max_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum age (in transactions) before triggering autovacuum on a table to prevent transaction ID wraparound."), // AllowedValues: to.Ptr("100000-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-FREEZE-MAX-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("200000000"), // }, // }, // { // Name: to.Ptr("autovacuum_max_workers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_max_workers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of simultaneously running autovacuum worker processes."), // AllowedValues: to.Ptr("1-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("3"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-MAX-WORKERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("3"), // }, // }, // { // Name: to.Ptr("autovacuum_multixact_freeze_max_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_multixact_freeze_max_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum age (in multixact) before triggering autovacuum on a table to prevent multixact wraparound."), // AllowedValues: to.Ptr("10000-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("400000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-MULTIXACT-FREEZE-MAX-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("400000000"), // }, // }, // { // Name: to.Ptr("autovacuum_naptime"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_naptime"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets minimum delay between autovacuum runs on any given database."), // AllowedValues: to.Ptr("1-2147483"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("60"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-NAPTIME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("60"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_cost_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets cost delay value (milliseconds) that will be used in automatic VACUUM operations."), // AllowedValues: to.Ptr("-1-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-COST-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_cost_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets cost limit value that will be used in automatic VACUUM operations."), // AllowedValues: to.Ptr("-1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-COST-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_insert_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_insert_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies a fraction of the table size to add to autovacuum_vacuum_insert_threshold when deciding whether to trigger a VACUUM."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-INSERT-SCALE-FACTOR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.2"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_insert_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_insert_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the number of inserted tuples needed to trigger a VACUUM in any one table."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-INSERT-THRESHOLD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies a fraction of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-SCALE-FACTOR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.2"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-THRESHOLD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("50"), // }, // }, // { // Name: to.Ptr("autovacuum_work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum memory to be used by each autovacuum worker process."), // AllowedValues: to.Ptr("-1-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-AUTOVACUUM-WORK-MEM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("azure.accepted_password_auth_method"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure.accepted_password_auth_method"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Accepted password authentication method."), // AllowedValues: to.Ptr("md5,scram-sha-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr("md5"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274147"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("md5"), // }, // }, // { // Name: to.Ptr("azure.enable_temp_tablespaces_on_local_ssd"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure.enable_temp_tablespaces_on_local_ssd"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Create temp tablespace on ephemeral disk."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("azure.extensions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure.extensions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies which extensions are allowed to be created in the server."), // AllowedValues: to.Ptr(",address_standardizer,address_standardizer_data_us,age,amcheck,anon,azure_ai,azure_storage,bloom,btree_gin,btree_gist,citext,cube,dblink,dict_int,dict_xsyn,earthdistance,fuzzystrmatch,hll,hstore,hypopg,intagg,intarray,isn,lo,login_hook,ltree,oracle_fdw,orafce,pageinspect,pg_buffercache,pg_cron,pg_freespacemap,pg_hint_plan,pg_partman,pg_prewarm,pg_repack,pg_squeeze,pg_stat_statements,pg_trgm,pg_visibility,pgaudit,pgcrypto,pglogical,pgrouting,pgrowlocks,pgstattuple,plpgsql,plv8,postgis,postgis_raster,postgis_sfcgal,postgis_tiger_geocoder,postgis_topology,postgres_fdw,postgres_protobuf,semver,session_variable,sslinfo,tablefunc,tdigest,tds_fdw,timescaledb,topn,tsm_system_rows,tsm_system_time,unaccent,uuid-ossp,vector"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274269"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("azure.single_to_flex_migration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure.single_to_flex_migration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies if this is a server created for migrating from Azure Database for PostgreSQL Single Server to Flexible Server."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("azure_storage.allow_network_access"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure_storage.allow_network_access"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allow accessing data from blob storage in extension azure_storage."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("azure_storage.blob_block_size_mb"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure_storage.blob_block_size_mb"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Blob block size in megabytes for blob_put in extension azure_storage."), // AllowedValues: to.Ptr("1-4000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("512"), // DocumentationLink: to.Ptr("https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=azure-ad#remarks"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("megabytes"), // Value: to.Ptr("512"), // }, // }, // { // Name: to.Ptr("azure_storage.public_account_access"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/azure_storage.public_account_access"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allow all users to access data from public storage accounts in extension azure_storage."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("backend_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backend_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), // AllowedValues: to.Ptr("0-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("256"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-BACKEND-FLUSH-AFTER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("256"), // }, // }, // { // Name: to.Ptr("backslash_quote"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backslash_quote"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether \"\\'\" is allowed in string literals."), // AllowedValues: to.Ptr("safe_encoding,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("safe_encoding"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-BACKSLASH-QUOTE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("safe_encoding"), // }, // }, // { // Name: to.Ptr("backtrace_functions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backtrace_functions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log backtrace for errors in these functions."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-BACKTRACE-FUNCTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("bgwriter_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the delay between activity rounds for the background writer. In each round the writer issues writes for some number of dirty buffers."), // AllowedValues: to.Ptr("10-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("20"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-BGWRITER-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("20"), // }, // }, // { // Name: to.Ptr("bgwriter_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of pages after which previously performed writes by the background writer are flushed to disk."), // AllowedValues: to.Ptr("0-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-BGWRITER-FLUSH-AFTER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("bgwriter_lru_maxpages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_maxpages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("In each round, no more than this many buffers will be written by the background writer."), // AllowedValues: to.Ptr("0-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-BGWRITER-LRU-MAXPAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("bgwriter_lru_multiplier"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_multiplier"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The average recent need of buffers is multiplied by bgwriter_lru_multiplier to arrive at an estimate of the number of buffers that will be needed during the next round."), // AllowedValues: to.Ptr("0-10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-BGWRITER-LRU-MULTIPLIER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("block_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/block_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the size of a disk block."), // AllowedValues: to.Ptr("8192-8192"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8192"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-BLOCK-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("8192"), // }, // }, // { // Name: to.Ptr("bonjour"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bonjour"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables advertising the server via Bonjour."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-BONJOUR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("bonjour_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bonjour_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the Bonjour service name."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-BONJOUR-NAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("bytea_output"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bytea_output"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the output format for values of type bytea. Valid values are hex (the default) and escape (the traditional PostgreSQL format)."), // AllowedValues: to.Ptr("escape,hex"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("hex"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-BYTEA-OUTPUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("hex"), // }, // }, // { // Name: to.Ptr("check_function_bodies"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/check_function_bodies"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Checks function bodies during CREATE FUNCTION."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-CHECK-FUNCTION-BODIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("checkpoint_completion_target"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_completion_target"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the target of checkpoint completion, as a fraction of total time between checkpoints."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.9"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-CHECKPOINT-COMPLETION-TARGET"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.9"), // }, // }, // { // Name: to.Ptr("checkpoint_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), // AllowedValues: to.Ptr("0-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("32"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-CHECKPOINT-FLUSH-AFTER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("32"), // }, // }, // { // Name: to.Ptr("checkpoint_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum time between automatic WAL checkpoints, in seconds. The valid range is between 30 seconds and one day."), // AllowedValues: to.Ptr("30-86400"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("600"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-CHECKPOINT-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("600"), // }, // }, // { // Name: to.Ptr("checkpoint_warning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_warning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes a warning message if checkpoints caused by the filling of WAL segment more frequently than this."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-CHECKPOINT-WARNING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("30"), // }, // }, // { // Name: to.Ptr("client_encoding"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_encoding"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the client-side encoding (character set). The default is to use the database encoding."), // AllowedValues: to.Ptr("BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("UTF8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-CLIENT-ENCODING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("UTF8"), // }, // }, // { // Name: to.Ptr("client_min_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_min_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the message levels that are sent to the client."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,log,notice,warning,error"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("notice"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-CLIENT-MIN-MESSAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("notice"), // }, // }, // { // Name: to.Ptr("cluster_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cluster_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the name of the cluster, which is included in the process title."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("commit_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the delay in microseconds between transaction commit and flushing WAL to disk."), // AllowedValues: to.Ptr("0-100000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-COMMIT-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("microseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("commit_siblings"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_siblings"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum concurrent open transactions before performing commit_delay."), // AllowedValues: to.Ptr("0-1000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-COMMIT-SIBLINGS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("5"), // }, // }, // { // Name: to.Ptr("config_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/config_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the server's main configuration file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-file-locations.html#GUC-CONFIG-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/pg/data/postgresql.conf"), // }, // }, // { // Name: to.Ptr("connection_throttle.bucket_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.bucket_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Max login tokens per bucket."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2000"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2000"), // }, // }, // { // Name: to.Ptr("connection_throttle.enable"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.enable"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables temporary connection throttling per IP for too many login failures."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("connection_throttle.factor_bias"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.factor_bias"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The factor bias for calculating number of tokens for an IP's bucket."), // AllowedValues: to.Ptr("0.0-0.9"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.8"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.8"), // }, // }, // { // Name: to.Ptr("connection_throttle.hash_entries_max"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.hash_entries_max"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Max number of entries in the login failures hash table."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("500"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("500"), // }, // }, // { // Name: to.Ptr("connection_throttle.reset_time"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.reset_time"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time between resetting the login bucket."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("120"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("120"), // }, // }, // { // Name: to.Ptr("connection_throttle.restore_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.restore_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Factor to increase number of tokens by for IPs with low failure rate."), // AllowedValues: to.Ptr("1.0-100.0"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("connection_throttle.update_time"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/connection_throttle.update_time"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time between updating the login bucket."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("20"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("20"), // }, // }, // { // Name: to.Ptr("constraint_exclusion"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the query planner's use of table constraints to optimize queries."), // AllowedValues: to.Ptr("partition,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("partition"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CONSTRAINT-EXCLUSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("partition"), // }, // }, // { // Name: to.Ptr("cpu_index_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_index_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each index entry during an index scan."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.005"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CPU-INDEX-TUPLE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.005"), // }, // }, // { // Name: to.Ptr("cpu_operator_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_operator_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each operator or function executed during a query."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.0025"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CPU-OPERATOR-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.0025"), // }, // }, // { // Name: to.Ptr("cpu_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each row during a query."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.01"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CPU-TUPLE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.01"), // }, // }, // { // Name: to.Ptr("cron.database_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cron.database_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the database in which pg_cron metadata is kept."), // AllowedValues: to.Ptr("[A-Za-z0-9_]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("postgres"), // DocumentationLink: to.Ptr("https://github.com/citusdata/pg_cron"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("postgres"), // }, // }, // { // Name: to.Ptr("cron.log_run"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cron.log_run"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log all jobs runs into the job_run_details table."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://github.com/citusdata/pg_cron"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("cron.log_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cron.log_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Log all cron statements prior to execution."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://github.com/citusdata/pg_cron"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("cron.max_running_jobs"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cron.max_running_jobs"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of jobs that can run concurrently. This value is limited by max_connections."), // AllowedValues: to.Ptr("0-5000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("32"), // DocumentationLink: to.Ptr("https://github.com/citusdata/pg_cron"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("32"), // }, // }, // { // Name: to.Ptr("cursor_tuple_fraction"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cursor_tuple_fraction"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-CURSOR-TUPLE-FRACTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("data_checksums"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/data_checksums"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows whether data checksums are turned on for this cluster."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-DATA-CHECKSUMS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("data_directory"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/data_directory"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the server's data directory."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-file-locations.html#GUC-DATA-DIRECTORY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/pg/data"), // }, // }, // { // Name: to.Ptr("data_directory_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/data_directory_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Mode of the data directory."), // AllowedValues: to.Ptr("0-511"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("448"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-DATA-DIRECTORY-MODE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("0700"), // }, // }, // { // Name: to.Ptr("data_sync_retry"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/data_sync_retry"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Whether to continue running after a failure to sync data files."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-error-handling.html#GUC-DATA-SYNC-RETRY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("DateStyle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/DateStyle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the display format for date and time values."), // AllowedValues: to.Ptr("(ISO|POSTGRES|SQL|GERMAN)(, (DMY|MDY|YMD))?"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("ISO, MDY"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DATESTYLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("ISO, MDY"), // }, // }, // { // Name: to.Ptr("db_user_namespace"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/db_user_namespace"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables per-database user names."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-DB-USER-NAMESPACE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("deadlock_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/deadlock_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-locks.html#GUC-DEADLOCK-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("debug_assertions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_assertions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows whether the running server has assertion checks enabled."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("debug_pretty_print"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_pretty_print"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Indents parse and plan tree displays."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#id-1.6.6.11.5.3.3.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("debug_print_parse"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_parse"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's parse tree."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#id-1.6.6.11.5.3.2.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("debug_print_plan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_plan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's execution plan."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#id-1.6.6.11.5.3.2.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("debug_print_rewritten"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_rewritten"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's rewritten parse tree."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#id-1.6.6.11.5.3.2.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("default_statistics_target"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_statistics_target"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default statistics target for table columns without a column-specific target."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-DEFAULT-STATISTICS-TARGET"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("default_table_access_method"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_table_access_method"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default table access method for new tables."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("heap"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TABLE-ACCESS-METHOD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("heap"), // }, // }, // { // Name: to.Ptr("default_tablespace"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_tablespace"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default tablespace to create tables and indexes in."), // AllowedValues: to.Ptr("[A-Za-z._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TABLESPACE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("default_text_search_config"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_text_search_config"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects the text search configuration that is used by those variants of the text search functions that do not have an explicit argument specifying it."), // AllowedValues: to.Ptr("[A-Za-z._]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("pg_catalog.english"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("pg_catalog.english"), // }, // }, // { // Name: to.Ptr("default_transaction_deferrable"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_deferrable"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("This parameter controls the default deferrable status of each new transaction. It has no effect on read-write transactions or those operating at isolation levels lower than serializable."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-DEFERRABLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("default_transaction_isolation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_isolation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("This parameter controls the default isolation level of each new transaction. The default is 'read committed'."), // AllowedValues: to.Ptr("serializable,repeatable read,read committed,read uncommitted"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("read committed"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-ISOLATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("read committed"), // }, // }, // { // Name: to.Ptr("default_transaction_read_only"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_read_only"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default read-only status of each new transaction."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-READ-ONLY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("dynamic_library_path"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/dynamic_library_path"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the path for dynamically loadable modules."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("$libdir"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-DYNAMIC-LIBRARY-PATH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("$libdir"), // }, // }, // { // Name: to.Ptr("dynamic_shared_memory_type"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/dynamic_shared_memory_type"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects the dynamic shared memory implementation used."), // AllowedValues: to.Ptr("posix,sysv,mmap"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("posix"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-DYNAMIC-SHARED-MEMORY-TYPE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("posix"), // }, // }, // { // Name: to.Ptr("effective_cache_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/effective_cache_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's assumption about the size of the disk cache."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1572864"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("1572864"), // }, // }, // { // Name: to.Ptr("effective_io_concurrency"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/effective_io_concurrency"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of concurrent disk I/O operations that PostgreSQL expects can be executed simultaneously."), // AllowedValues: to.Ptr("0-1000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-EFFECTIVE-IO-CONCURRENCY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("enable_bitmapscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_bitmapscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of bitmap-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-BITMAPSCAN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_gathermerge"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_gathermerge"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of gather merge plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-GATHERMERGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_hashagg"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashagg"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of hashed aggregation plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-HASHAGG"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_hashjoin"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashjoin"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of hash join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-HASHJOIN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_incremental_sort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_incremental_sort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of incremental sort steps."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-INCREMENTAL-SORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_indexonlyscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexonlyscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of index-only-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-INDEXONLYSCAN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_indexscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of index-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-INDEXSCAN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_material"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_material"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of materialization."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-MATERIAL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_mergejoin"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_mergejoin"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of merge join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-MERGEJOIN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_nestloop"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_nestloop"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of nested loop join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-NESTLOOP"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_parallel_append"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_parallel_append"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of parallel append plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-PARALLEL-APPEND"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_parallel_hash"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_parallel_hash"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of parallel hash plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-PARALLEL-HASH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_partition_pruning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_partition_pruning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables plan-time and run-time partition pruning."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-PARTITION-PRUNING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_partitionwise_aggregate"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_partitionwise_aggregate"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables or disables the query planner's use of partitionwise grouping or aggregation, which allows grouping or aggregation on a partitioned tables performed separately for each partition."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-PARTITIONWISE-AGGREGATE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("enable_partitionwise_join"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_partitionwise_join"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables or disables the query planner's use of partitionwise join, which allows a join between partitioned tables to be performed by joining the matching partitions."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-PARTITIONWISE-JOIN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("enable_seqscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_seqscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of sequential-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-SEQSCAN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_sort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_sort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of explicit sort steps."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-SORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_tidscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_tidscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of TID scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-ENABLE-TIDSCAN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("escape_string_warning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/escape_string_warning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Warns about backslash escapes in ordinary string literals."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-ESCAPE-STRING-WARNING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("event_source"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_source"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the application name used to identify PostgreSQL messages in the event log."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("PostgreSQL"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-EVENT-SOURCE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("PostgreSQL"), // }, // }, // { // Name: to.Ptr("exit_on_error"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/exit_on_error"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Terminates session on any error."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-error-handling.html#GUC-EXIT-ON-ERROR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("external_pid_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/external_pid_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes the postmaster PID to the specified file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-file-locations.html#GUC-EXTERNAL-PID-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("extra_float_digits"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/extra_float_digits"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of digits displayed for floating-point values."), // AllowedValues: to.Ptr("-15-3"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-EXTRA-FLOAT-DIGITS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("force_parallel_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/force_parallel_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Forces use of parallel query facilities."), // AllowedValues: to.Ptr("off,on,regress"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-FORCE-PARALLEL-MODE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("from_collapse_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/from_collapse_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The planner will merge sub-queries into upper queries upto this limit in FROM clause. Smaller values reduce planning time but might yield inferior query plans."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-FROM-COLLAPSE-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("fsync"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/fsync"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Forces synchronization of updates to disk."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-FSYNC"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("full_page_writes"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/full_page_writes"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes full pages to WAL when first modified after a checkpoint."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-FULL-PAGE-WRITES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("geqo"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables genetic query optimization."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("geqo_effort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_effort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: effort is used to set the default for other GEQO parameters."), // AllowedValues: to.Ptr("1-10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-EFFORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("5"), // }, // }, // { // Name: to.Ptr("geqo_generations"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_generations"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: number of iterations of the algorithm."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-GENERATIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_pool_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_pool_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: number of individuals in the population."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-POOL-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_seed"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_seed"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: seed for random path selection."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-SEED"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_selection_bias"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_selection_bias"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: selective pressure within the population."), // AllowedValues: to.Ptr("1.5-2"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-SELECTION-BIAS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("geqo_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the threshold of FROM items beyond which GEQO is used."), // AllowedValues: to.Ptr("2-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("12"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-GEQO-THRESHOLD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("12"), // }, // }, // { // Name: to.Ptr("gin_fuzzy_search_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_fuzzy_search_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed result for exact search by GIN."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-GIN-FUZZY-SEARCH-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("gin_pending_list_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_pending_list_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum size of the pending list for GIN index."), // AllowedValues: to.Ptr("64-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("4096"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-GIN-PENDING-LIST-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("4096"), // }, // }, // { // Name: to.Ptr("hash_mem_multiplier"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/hash_mem_multiplier"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Multiple of work_mem to use for hash tables."), // AllowedValues: to.Ptr("1-1000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-HASH-MEM-MULTIPLIER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("hba_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/hba_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the server's \"hba\" configuration file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-file-locations.html#GUC-HBA-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/pg/data/pg_hba.conf"), // }, // }, // { // Name: to.Ptr("hot_standby"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/hot_standby"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allows connections and queries during recovery."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-HOT-STANDBY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("hot_standby_feedback"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/hot_standby_feedback"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables/disables the option whether hot standby needs to send feedback to the primary or upstream standby about queries currently executing on the standby."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-HOT-STANDBY-FEEDBACK"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("huge_pages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/huge_pages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables/disables the use of huge memory pages. This setting is not applicable to servers having less than 4 vCores."), // AllowedValues: to.Ptr("on,off,try"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("try"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-HUGE-PAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("try"), // }, // }, // { // Name: to.Ptr("ident_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ident_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the server's \"ident\" configuration file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-file-locations.html#GUC-IDENT-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/pg/data/pg_ident.conf"), // }, // }, // { // Name: to.Ptr("idle_in_transaction_session_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/idle_in_transaction_session_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration of any idling transaction."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-IDLE-IN-TRANSACTION-SESSION-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("ignore_checksum_failure"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ignore_checksum_failure"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Continues processing after a checksum failure."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-IGNORE-CHECKSUM-FAILURE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("ignore_invalid_pages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ignore_invalid_pages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Continues recovery after an invalid pages failure."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-IGNORE-INVALID-PAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("ignore_system_indexes"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ignore_system_indexes"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Disables reading from system indexes."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-IGNORE-SYSTEM-INDEXES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("index_tuning.analysis_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.analysis_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the frequency at which each index optimization session is triggered when index_tuning.mode is set to 'REPORT'."), // AllowedValues: to.Ptr("60-10080"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("720"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("minutes"), // Value: to.Ptr("720"), // }, // }, // { // Name: to.Ptr("index_tuning.max_columns_per_index"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_columns_per_index"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of columns that can be part of the index key for any recommended index."), // AllowedValues: to.Ptr("1-10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("index_tuning.max_index_count"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_index_count"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of indexes that can be recommended for each database during one optimization session."), // AllowedValues: to.Ptr("1-25"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("index_tuning.max_indexes_per_table"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_indexes_per_table"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of indexes that can be recommended for each table."), // AllowedValues: to.Ptr("1-25"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("index_tuning.max_queries_per_database"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_queries_per_database"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of slowest queries per database for which indexes can be recommended."), // AllowedValues: to.Ptr("5-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("25"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("25"), // }, // }, // { // Name: to.Ptr("index_tuning.max_regression_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_regression_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Acceptable regression introduced by a recommended index on any of the queries analyzed during one optimization session."), // AllowedValues: to.Ptr("0.05-0.2"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("percentage"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("index_tuning.max_total_size_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.max_total_size_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum total size, in percentage of total disk space, that all recommended indexes for any given database can use."), // AllowedValues: to.Ptr("0-1.0"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("percentage"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("index_tuning.min_improvement_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.min_improvement_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Cost improvement that a recommended index must provide to at least one of the queries analyzed during one optimization session."), // AllowedValues: to.Ptr("0-20.0"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.2"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("percentage"), // Value: to.Ptr("0.2"), // }, // }, // { // Name: to.Ptr("index_tuning.mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Configures index optimization as disabled ('OFF') or enabled to only emit recommendation. Requires Query Store to be enabled by setting pg_qs.query_capture_mode to 'TOP' or 'ALL'."), // AllowedValues: to.Ptr("off,report"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("index_tuning.unused_dml_per_table"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.unused_dml_per_table"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum number of daily average DML operations affecting the table, so that their unused indexes are considered for dropping."), // AllowedValues: to.Ptr("0-9999999"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("index_tuning.unused_min_period"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.unused_min_period"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum number of days the index has not been used, based on system statistics, so that it is considered for dropping."), // AllowedValues: to.Ptr("30-720"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("35"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("days"), // Value: to.Ptr("35"), // }, // }, // { // Name: to.Ptr("index_tuning.unused_reads_per_table"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/index_tuning.unused_reads_per_table"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum number of daily average read operations affecting the table, so that their unused indexes are considered for dropping."), // AllowedValues: to.Ptr("0-9999999"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274149"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("integer_datetimes"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/integer_datetimes"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Datetimes are integer based."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-INTEGER-DATETIMES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("intelligent_tuning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/intelligent_tuning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables intelligent tuning"), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274150"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("intelligent_tuning.metric_targets"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/intelligent_tuning.metric_targets"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies which metrics will be adjusted by intelligent tuning."), // AllowedValues: to.Ptr("none,Storage-checkpoint_completion_target,Storage-min_wal_size,Storage-max_wal_size,Storage-bgwriter_delay,tuning-autovacuum,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274150"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("IntervalStyle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/IntervalStyle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the display format for interval values."), // AllowedValues: to.Ptr("postgres,postgres_verbose,sql_standard,iso_8601"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("postgres"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-INTERVALSTYLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("postgres"), // }, // }, // { // Name: to.Ptr("jit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Determines whether JIT compilation may be used by PostgreSQL."), // AllowedValues: to.Ptr("on, off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-JIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("jit_above_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_above_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the query cost above which JIT compilation is activated, if enabled."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-JIT-ABOVE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("100000"), // }, // }, // { // Name: to.Ptr("jit_debugging_support"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_debugging_support"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Register JIT compiled function with debugger."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-JIT-DEBUGGING-SUPPORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("jit_dump_bitcode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_dump_bitcode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Write out LLVM bitcode to facilitate JIT debugging."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-JIT-DUMP-BITCODE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("jit_expressions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_expressions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allow JIT compilation of expressions."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-JIT-EXPRESSIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("jit_inline_above_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_inline_above_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the query cost above which JIT compilation attempts to inline functions and operators."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("500000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-JIT-INLINE-ABOVE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("500000"), // }, // }, // { // Name: to.Ptr("jit_optimize_above_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_optimize_above_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the query cost above which JIT compilation applies expensive optimizations."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("500000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-JIT-OPTIMIZE-ABOVE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("500000"), // }, // }, // { // Name: to.Ptr("jit_profiling_support"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_profiling_support"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Register JIT compiled function with perf profiler."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-JIT-PROFILING-SUPPORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("jit_provider"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_provider"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("JIT provider to use."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("llvmjit"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-JIT-PROVIDER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("llvmjit"), // }, // }, // { // Name: to.Ptr("jit_tuple_deforming"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/jit_tuple_deforming"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Allow JIT compilation of tuple deforming."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-JIT-TUPLE-DEFORMING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("join_collapse_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/join_collapse_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the FROM-list size beyond which JOIN constructs are not flattened."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-JOIN-COLLAPSE-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("krb_caseins_users"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/krb_caseins_users"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether Kerberos and GSSAPI user names should be treated as case-insensitive."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-KRB-CASEINS-USERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("krb_server_keyfile"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/krb_server_keyfile"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the location of the Kerberos server key file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-KRB-SERVER-KEYFILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("lc_collate"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_collate"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the collation order locale."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("C"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/locale.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("lc_ctype"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_ctype"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the character classification and case conversion locale."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("C"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/locale.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("lc_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the language in which messages are displayed."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LC-MESSAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("lc_monetary"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_monetary"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the locale for formatting monetary amounts."), // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("en_US.utf-8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LC-MONETARY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("en_US.utf-8"), // }, // }, // { // Name: to.Ptr("lc_numeric"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_numeric"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the locale for formatting numbers."), // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("en_US.utf-8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LC-NUMERIC"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("en_US.utf-8"), // }, // }, // { // Name: to.Ptr("lc_time"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_time"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the locale for formatting date and time values."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("C"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LC-TIME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("listen_addresses"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/listen_addresses"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the host name or IP address(es) to listen to."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("localhost"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-LISTEN-ADDRESSES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("*"), // }, // }, // { // Name: to.Ptr("lo_compat_privileges"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lo_compat_privileges"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables backward compatibility mode for privilege checks on large objects."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-LO-COMPAT-PRIVILEGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("local_preload_libraries"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/local_preload_libraries"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Lists unprivileged shared libraries to preload into each backend."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LOCAL-PRELOAD-LIBRARIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("lock_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lock_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-LOCK-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("log_autovacuum_min_duration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_autovacuum_min_duration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time above which autovacuum actions will be logged."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-autovacuum.html#id-1.6.6.13.4.2.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_checkpoints"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_checkpoints"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each checkpoint."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-CHECKPOINTS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_connections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_connections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Causes each attempted connection to the server to be logged, as well as successful completion of client authentication."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-CONNECTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_destination"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_destination"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the destination for server log output."), // AllowedValues: to.Ptr("stderr,csvlog"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("stderr"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-DESTINATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("stderr"), // }, // }, // { // Name: to.Ptr("log_directory"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_directory"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the destination directory for log files."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("log"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-DIRECTORY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("log"), // }, // }, // { // Name: to.Ptr("log_disconnections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_disconnections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs end of a session, including duration."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-DISCONNECTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_duration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_duration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs the duration of each completed SQL statement."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-DURATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_error_verbosity"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_error_verbosity"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the amount of detail written in the server log for each message that is logged."), // AllowedValues: to.Ptr("terse,default,verbose"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("default"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-ERROR-VERBOSITY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("default"), // }, // }, // { // Name: to.Ptr("log_executor_stats"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_executor_stats"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes executor performance statistics to the server log."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#id-1.6.6.12.3.2.1.4.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_file_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_file_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the file permissions for log files."), // AllowedValues: to.Ptr("0-511"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("384"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-FILE-MODE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("0600"), // }, // }, // { // Name: to.Ptr("log_filename"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_filename"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the file name pattern for log files."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("postgresql-%Y-%m-%d_%H%M%S.log"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-FILENAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("postgresql-%Y-%m-%d_%H%M%S.log"), // }, // }, // { // Name: to.Ptr("log_hostname"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_hostname"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs the host name in the connection logs."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-HOSTNAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_line_prefix"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_line_prefix"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the printf-style string that is output at the beginning of each log line."), // AllowedValues: to.Ptr("[^']*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("%t-%c-"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-LINE-PREFIX"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("%t-%c-"), // }, // }, // { // Name: to.Ptr("log_lock_waits"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_lock_waits"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls whether a log message is produced when a session waits longer than deadlock_timeout to acquire a lock."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-LOCK-WAITS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_min_duration_sample"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_duration_sample"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time above which a sample of statements will be logged. Sampling is determined by log_statement_sample_rate."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-MIN-DURATION-SAMPLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_min_duration_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_duration_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-MIN-DURATION-STATEMENT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_min_error_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_error_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Causes all statements generating error at or above this level to be logged."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("error"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-MIN-ERROR-STATEMENT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("error"), // }, // }, // { // Name: to.Ptr("log_min_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls which message levels are written to the server log."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("warning"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-MIN-MESSAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("warning"), // }, // }, // { // Name: to.Ptr("log_parameter_max_length"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_parameter_max_length"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("When logging statements, limit logged parameter values to first N bytes."), // AllowedValues: to.Ptr("-1-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-PARAMETER-MAX-LENGTH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_parameter_max_length_on_error"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_parameter_max_length_on_error"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("When reporting an error, limit logged parameter values to first N bytes."), // AllowedValues: to.Ptr("-1-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-PARAMETER-MAX-LENGTH-ON-ERROR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("log_parser_stats"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_parser_stats"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes parser performance statistics to the server log."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#id-1.6.6.12.3.2.1.4.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_planner_stats"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_planner_stats"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes planner performance statistics to the server log."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#id-1.6.6.12.3.2.1.4.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_replication_commands"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_replication_commands"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each replication command."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-REPLICATION-COMMANDS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_rotation_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_rotation_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Automatic log file rotation will occur after N minutes."), // AllowedValues: to.Ptr("0-35791394"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1440"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-ROTATION-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Unit: to.Ptr("minutes"), // Value: to.Ptr("60"), // }, // }, // { // Name: to.Ptr("log_rotation_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_rotation_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Automatic log file rotation will occur after N kilobytes."), // AllowedValues: to.Ptr("0-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10240"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-ROTATION-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Unit: to.Ptr("KB"), // Value: to.Ptr("102400"), // }, // }, // { // Name: to.Ptr("log_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the type of statements logged."), // AllowedValues: to.Ptr("none,ddl,mod,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-STATEMENT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("log_statement_sample_rate"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement_sample_rate"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Fraction of statements exceeding log_min_duration_sample to be logged."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-STATEMENT-SAMPLE-RATE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("log_statement_stats"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement_stats"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("For each query, writes cumulative performance statistics to the server log."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#id-1.6.6.12.3.2.1.4.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_temp_files"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_temp_files"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs the use of temporary files larger than this number of kilobytes."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-TEMP-FILES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_timezone"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_timezone"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the time zone to use in log messages."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("GMT"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-TIMEZONE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("UTC"), // }, // }, // { // Name: to.Ptr("log_transaction_sample_rate"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_transaction_sample_rate"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Set the fraction of transactions to log for new transactions."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-TRANSACTION-SAMPLE-RATE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("log_truncate_on_rotation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_truncate_on_rotation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Truncate existing log files of same name during log rotation."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOG-TRUNCATE-ON-ROTATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("logfiles.download_enable"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/logfiles.download_enable"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables or disables server logs functionality."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274270"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("logfiles.retention_days"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/logfiles.retention_days"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the retention period window in days for server logs - after this time data will be deleted."), // AllowedValues: to.Ptr("1-7"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("3"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274270"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("3"), // }, // }, // { // Name: to.Ptr("logging_collector"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/logging_collector"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Start a subprocess to capture stderr output and/or csvlogs into log files."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-LOGGING-COLLECTOR"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("logical_decoding_work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/logical_decoding_work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum memory to be used for logical decoding."), // AllowedValues: to.Ptr("64-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("65536"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-LOGICAL-DECODING-WORK-MEM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("65536"), // }, // }, // { // Name: to.Ptr("maintenance_io_concurrency"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/maintenance_io_concurrency"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("A variant of effective_io_concurrency that is used for maintenance work."), // AllowedValues: to.Ptr("0-1000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAINTENANCE-IO-CONCURRENCY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("maintenance_work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/maintenance_work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum memory to be used for maintenance operations such as VACUUM, Create Index."), // AllowedValues: to.Ptr("1024-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("274432"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAINTENANCE-WORK-MEM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("274432"), // }, // }, // { // Name: to.Ptr("max_connections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_connections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of concurrent connections to the database server."), // AllowedValues: to.Ptr("25-5000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1718"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-MAX-CONNECTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1718"), // }, // }, // { // Name: to.Ptr("max_files_per_process"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_files_per_process"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of simultaneously open files for each server process."), // AllowedValues: to.Ptr("64-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-FILES-PER-PROCESS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("max_function_args"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_function_args"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the maximum number of function arguments."), // AllowedValues: to.Ptr("100-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-MAX-FUNCTION-ARGS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("max_identifier_length"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_identifier_length"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the maximum identifier length."), // AllowedValues: to.Ptr("63-63"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("63"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-MAX-IDENTIFIER-LENGTH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("63"), // }, // }, // { // Name: to.Ptr("max_index_keys"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_index_keys"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the maximum number of index keys."), // AllowedValues: to.Ptr("32-32"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("32"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-MAX-INDEX-KEYS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("32"), // }, // }, // { // Name: to.Ptr("max_locks_per_transaction"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_locks_per_transaction"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of locks can be taken per transaction. When running a replica server, you must set this parameter to the same or higher value than on the master server."), // AllowedValues: to.Ptr("10-8388608"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-locks.html#GUC-MAX-LOCKS-PER-TRANSACTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("max_logical_replication_workers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_logical_replication_workers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies maximum number of logical replication workers. This includes both apply workers and table synchronization workers."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("4"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-LOGICAL-REPLICATION-WORKERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("4"), // }, // }, // { // Name: to.Ptr("max_parallel_maintenance_workers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_maintenance_workers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of parallel processes per maintenance operation."), // AllowedValues: to.Ptr("0-64"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-PARALLEL-WORKERS-MAINTENANCE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_parallel_workers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of workers than can be supported for parallel operations."), // AllowedValues: to.Ptr("0-1024"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-PARALLEL-WORKERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("max_parallel_workers_per_gather"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers_per_gather"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of parallel processes per executor node."), // AllowedValues: to.Ptr("0-1024"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-PARALLEL-WORKERS-PER-GATHER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_pred_locks_per_page"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_page"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of predicate-locked tuples per page."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-locks.html#GUC-MAX-PRED-LOCKS-PER-PAGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_pred_locks_per_relation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_relation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of predicate-locked pages and tuples per relation."), // AllowedValues: to.Ptr("-2147483648-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-locks.html#GUC-MAX-PRED-LOCKS-PER-RELATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("-2"), // }, // }, // { // Name: to.Ptr("max_pred_locks_per_transaction"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_transaction"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of predicate locks per transaction."), // AllowedValues: to.Ptr("10-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-locks.html#GUC-MAX-PRED-LOCKS-PER-TRANSACTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("max_prepared_transactions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_prepared_transactions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of simultaneously prepared transactions. When running a replica server, you must set this parameter to the same or higher value than on the primary server."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-PREPARED-TRANSACTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("max_replication_slots"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_replication_slots"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the maximum number of replication slots that the server can support."), // AllowedValues: to.Ptr("2-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-REPLICATION-SLOTS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("max_slot_wal_keep_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_slot_wal_keep_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum WAL size that can be reserved by replication slots."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-SLOT-WAL-KEEP-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("megabytes"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("max_stack_depth"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_stack_depth"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum stack depth, in kilobytes."), // AllowedValues: to.Ptr("100-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-STACK-DEPTH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Unit: to.Ptr("KB"), // Value: to.Ptr("2048"), // }, // }, // { // Name: to.Ptr("max_standby_archive_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_archive_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum delay before canceling queries that conflict when a hot standby server is processing archived WAL data."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-STANDBY-ARCHIVE-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("30000"), // }, // }, // { // Name: to.Ptr("max_standby_streaming_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_streaming_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum delay before canceling queries that conflict when a hot standby server is processing streamed WAL data."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-STANDBY-STREAMING-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("30000"), // }, // }, // { // Name: to.Ptr("max_sync_workers_per_subscription"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_sync_workers_per_subscription"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of table synchronization workers per subscription."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-SYNC-WORKERS-PER-SUBSCRIPTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_wal_senders"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_wal_senders"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of simultaneously running WAL sender processes."), // AllowedValues: to.Ptr("5-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-MAX-WAL-SENDERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("max_wal_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_wal_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum size to let the WAL grow before triggering automatic checkpoint."), // AllowedValues: to.Ptr("32-65536"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2048"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-MAX-WAL-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("megabytes"), // Value: to.Ptr("2048"), // }, // }, // { // Name: to.Ptr("max_worker_processes"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_worker_processes"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of background processes that the system can support."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-MAX-WORKER-PROCESSES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("metrics.autovacuum_diagnostics"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/metrics.autovacuum_diagnostics"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables metrics collection for all table statistics within a database"), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274151"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("metrics.collector_database_activity"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/metrics.collector_database_activity"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables metrics collection for database and activity statistics"), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274151"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("metrics.pgbouncer_diagnostics"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/metrics.pgbouncer_diagnostics"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables metrics collection for PgBouncer."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274151"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("min_parallel_index_scan_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_index_scan_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum amount of index data for a parallel scan."), // AllowedValues: to.Ptr("0-715827882"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-MIN-PARALLEL-INDEX-SCAN-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("min_parallel_table_scan_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_table_scan_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum amount of table data that must be scanned for a parallel scan to be considered."), // AllowedValues: to.Ptr("0-715827882"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-MIN-PARALLEL-TABLE-SCAN-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("min_wal_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_wal_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum size to shrink the WAL to."), // AllowedValues: to.Ptr("32-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("80"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-MIN-WAL-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("megabytes"), // Value: to.Ptr("80"), // }, // }, // { // Name: to.Ptr("parallel_leader_participation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_leader_participation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls whether Gather and Gather Merge also run subplans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("parallel_setup_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_setup_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of starting up worker processes for parallel query."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-PARALLEL-SETUP-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("parallel_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-PARALLEL-TUPLE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("password_encryption"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/password_encryption"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Determines the algorithm to use to encrypt the password."), // AllowedValues: to.Ptr("md5,scram-sha-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("md5"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("md5"), // }, // }, // { // Name: to.Ptr("pg_partman_bgw.analyze"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_partman_bgw.analyze"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Same purpose as the p_analyze argument to run_maintenance()."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/pgpartman/pg_partman"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pg_partman_bgw.dbname"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_partman_bgw.dbname"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Required. The database(s) that run_maintenance() will run on. If more than one, use a comma separated list. If not set, BGW will do nothing."), // AllowedValues: to.Ptr("[A-Za-z0-9_,-]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://github.com/pgpartman/pg_partman"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("pg_partman_bgw.interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_partman_bgw.interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of seconds between calls to run_maintenance()."), // AllowedValues: to.Ptr("1-315360000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("3600"), // DocumentationLink: to.Ptr("https://github.com/pgpartman/pg_partman"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("3600"), // }, // }, // { // Name: to.Ptr("pg_partman_bgw.jobmon"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_partman_bgw.jobmon"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Same purpose as the p_jobmon argument to run_maintenance()."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://github.com/pgpartman/pg_partman"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pg_partman_bgw.role"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_partman_bgw.role"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The role that run_maintenance() will run as. Default is postgres. Only a single role name is allowed."), // AllowedValues: to.Ptr("[A-Za-z\\._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://github.com/pgpartman/pg_partman"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("pg_qs.interval_length_minutes"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.interval_length_minutes"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the query_store capture interval in minutes for pg_qs - this is the frequency of data persistence."), // AllowedValues: to.Ptr("1-30"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("15"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("minutes"), // Value: to.Ptr("15"), // }, // }, // { // Name: to.Ptr("pg_qs.is_enabled_fs"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.is_enabled_fs"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Internal Use Only: This parameter is used as a feature override switch. If it shows as off, Query Store will be disabled despite the value set for pg_qs.query_capture_mode."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pg_qs.max_plan_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.max_plan_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of bytes that will be saved for query plan text for pg_qs; longer plans will be truncated."), // AllowedValues: to.Ptr("100-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("7500"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("7500"), // }, // }, // { // Name: to.Ptr("pg_qs.max_query_text_length"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.max_query_text_length"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum query text length that will be saved; longer queries will be truncated."), // AllowedValues: to.Ptr("100-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("6000"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("6000"), // }, // }, // { // Name: to.Ptr("pg_qs.parameters_capture_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.parameters_capture_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Whether and when to capture query positional parameters."), // AllowedValues: to.Ptr("capture_parameterless_only,capture_first_sample"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("capture_parameterless_only"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("capture_parameterless_only"), // }, // }, // { // Name: to.Ptr("pg_qs.query_capture_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.query_capture_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets query capture mode for query store. None disables any capturing."), // AllowedValues: to.Ptr("top,all,none"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("pg_qs.retention_period_in_days"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.retention_period_in_days"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the retention period window in days for pg_qs - after this time data will be deleted."), // AllowedValues: to.Ptr("1-30"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("7"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("7"), // }, // }, // { // Name: to.Ptr("pg_qs.store_query_plans"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.store_query_plans"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Turns saving query plans on or off for pg_qs "), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pg_qs.track_utility"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_qs.track_utility"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects whether utility commands are tracked by pg_qs."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pg_stat_statements.max"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_stat_statements.max"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of statements tracked by pg_stat_statements."), // AllowedValues: to.Ptr("100-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/pgstatstatements.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("5000"), // }, // }, // { // Name: to.Ptr("pg_stat_statements.save"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_stat_statements.save"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Save pg_stat_statements statistics across server shutdowns."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/pgstatstatements.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pg_stat_statements.track"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_stat_statements.track"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls which statements are counted by pg_stat_statements."), // AllowedValues: to.Ptr("top,all,none"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/pgstatstatements.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("pg_stat_statements.track_utility"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pg_stat_statements.track_utility"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects whether utility commands are tracked by pg_stat_statements."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/pgstatstatements.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pgaudit.log"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies which classes of statements will be logged by session audit logging."), // AllowedValues: to.Ptr("none,read,write,function,role,ddl,misc,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("pgaudit.log_catalog"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_catalog"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pgaudit.log_client"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_client"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies whether audit messages should be visible to client."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pgaudit.log_level"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_level"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the log level that will be used for log entries."), // AllowedValues: to.Ptr(",debug5,debug4,debug3,debug2,debug1,info,notice,warning,log"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("log"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("log"), // }, // }, // { // Name: to.Ptr("pgaudit.log_parameter"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_parameter"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies that audit logging should include the parameters that were passed with the statement."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pgaudit.log_relation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_relation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies whether session audit logging should create a separate log entry for each relation referenced in a SELECT or DML statement."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pgaudit.log_statement_once"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.log_statement_once"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pgaudit.role"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgaudit.role"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the master role to use for object audit logging."), // AllowedValues: to.Ptr("[A-Za-z\\._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://github.com/pgaudit/pgaudit/blob/master/README.md"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("pgbouncer.enabled"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgbouncer.enabled"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Denotes if pgBouncer service is enabled."), // AllowedValues: to.Ptr("true, false"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("false"), // DocumentationLink: to.Ptr("https://www.pgbouncer.org/config.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("false"), // }, // }, // { // Name: to.Ptr("pglogical.batch_inserts"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pglogical.batch_inserts"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Tells PGLogical to use batch insert mechanism if possible."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://github.com/ArmMbedCloud/pglogical"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pglogical.conflict_log_level"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pglogical.conflict_log_level"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the log level for reporting detected conflicts when the pglogical.conflict_resolution is set to anything else than error."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("log"), // DocumentationLink: to.Ptr("https://github.com/ArmMbedCloud/pglogical"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("log"), // }, // }, // { // Name: to.Ptr("pglogical.conflict_resolution"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pglogical.conflict_resolution"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the resolution method for any detected conflicts between local data and incoming changes."), // AllowedValues: to.Ptr("error,apply_remote,keep_local,last_update_wins,first_update_wins"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("apply_remote"), // DocumentationLink: to.Ptr("https://github.com/ArmMbedCloud/pglogical"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("apply_remote"), // }, // }, // { // Name: to.Ptr("pglogical.use_spi"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pglogical.use_spi"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Tells PGLogical to use SPI interface to form actual SQL (INSERT, UPDATE, DELETE) statements to apply incoming changes instead of using internal low level interface."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://github.com/ArmMbedCloud/pglogical"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("pgms_stats.is_enabled_fs"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgms_stats.is_enabled_fs"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Internal Use Only: This parameter is used as a feature override switch."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pgms_wait_sampling.history_period"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgms_wait_sampling.history_period"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Set the frequency, in milliseconds, at which wait events are sampled."), // AllowedValues: to.Ptr("1-600000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("pgms_wait_sampling.is_enabled_fs"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgms_wait_sampling.is_enabled_fs"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Internal Use Only: This parameter is used as a feature override switch. If it shows as off, wait sampling will be disabled despite the value set for pgms_wait_sampling.query_capture_mode."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("pgms_wait_sampling.query_capture_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pgms_wait_sampling.query_capture_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects which statements are tracked by the pgms_wait_sampling extension."), // AllowedValues: to.Ptr("all,none"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2274607"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("plan_cache_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/plan_cache_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls the planner's selection of custom or generic plan."), // AllowedValues: to.Ptr("auto,force_generic_plan,force_custom_plan"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("auto"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#id-1.6.6.10.5.2.9.1.3"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("auto"), // }, // }, // { // Name: to.Ptr("port"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/port"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the TCP port the server listens on."), // AllowedValues: to.Ptr("1-65535"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5432"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-PORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("5432"), // }, // }, // { // Name: to.Ptr("post_auth_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/post_auth_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Waits N seconds on connection startup after authentication."), // AllowedValues: to.Ptr("0-2147"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-POST-AUTH-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("postgis.gdal_enabled_drivers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/postgis.gdal_enabled_drivers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls postgis GDAL enabled driver settings."), // AllowedValues: to.Ptr("DISABLE_ALL,ENABLE_ALL"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("DISABLE_ALL"), // DocumentationLink: to.Ptr("https://postgis.net/docs/postgis_gdal_enabled_drivers.html"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("DISABLE_ALL"), // }, // }, // { // Name: to.Ptr("pre_auth_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/pre_auth_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Waits N seconds on connection startup before authentication."), // AllowedValues: to.Ptr("0-60"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-PRE-AUTH-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("primary_conninfo"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/primary_conninfo"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the connection string to be used to connect to the sending server."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-PRIMARY-CONNINFO"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("primary_slot_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/primary_slot_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the name of the replication slot to use on the sending server."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-PRIMARY-SLOT-NAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("promote_trigger_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/promote_trigger_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies a file name whose presence ends recovery in the standby."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("quote_all_identifiers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/quote_all_identifiers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("When generating SQL fragments, quotes all identifiers."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-QUOTE-ALL-IDENTIFIERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("random_page_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/random_page_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of a nonsequentially fetched disk page."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-RANDOM-PAGE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("recovery_end_command"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_end_command"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the shell command that will be executed once at the end of recovery."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-END-COMMAND"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("recovery_min_apply_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_min_apply_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum delay for applying changes during recovery."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-RECOVERY-MIN-APPLY-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("recovery_target"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Set to \"immediate\" to end recovery as soon as a consistent state is reached."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("recovery_target_action"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_action"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the action to perform upon reaching the recovery target."), // AllowedValues: to.Ptr("pause,promote,shutdown"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("pause"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-ACTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("pause"), // }, // }, // { // Name: to.Ptr("recovery_target_inclusive"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_inclusive"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether to include or exclude transaction with recovery target."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-INCLUSIVE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("recovery_target_lsn"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_lsn"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the LSN of the write-ahead log location up to which recovery will proceed."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-LSN"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("recovery_target_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the named restore point up to which recovery will proceed."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-NAME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("recovery_target_time"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_time"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the time stamp up to which recovery will proceed."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-TIME"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("recovery_target_timeline"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_timeline"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the timeline to recover into."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("latest"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-TIMELINE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("latest"), // }, // }, // { // Name: to.Ptr("recovery_target_xid"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/recovery_target_xid"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the transaction ID up to which recovery will proceed."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-RECOVERY-TARGET-XID"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("require_secure_transport"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/require_secure_transport"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Whether client connections to the server are required to use some form of secure transport."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://go.microsoft.com/fwlink/?linkid=2282200"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("reserved_connections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/reserved_connections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of connections slots reserved for replication users and super users."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("5"), // }, // }, // { // Name: to.Ptr("restart_after_crash"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/restart_after_crash"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Reinitialize server after backend crash."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-error-handling.html#GUC-RESTART-AFTER-CRASH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("restore_command"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/restore_command"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the shell command that will be called to retrieve an archived WAL file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("row_security"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/row_security"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables row security."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("search_path"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/search_path"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the schema search order for names that are not schema-qualified."), // AllowedValues: to.Ptr("[A-Za-z0-9.\"$,_ -]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("\"$user\", public"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-SEARCH-PATH"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("\"$user\", public"), // }, // }, // { // Name: to.Ptr("segment_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/segment_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the number of pages per disk file."), // AllowedValues: to.Ptr("131072-131072"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("131072"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-SEGMENT-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("131072"), // }, // }, // { // Name: to.Ptr("seq_page_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/seq_page_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of a sequentially fetched disk page."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-query.html#GUC-SEQ-PAGE-COST"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("server_encoding"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/server_encoding"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the server (database) character set encoding."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("SQL_ASCII"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-SERVER-ENCODING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("UTF8"), // }, // }, // { // Name: to.Ptr("server_version"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/server_version"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the server version."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("13.11"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-SERVER-VERSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("13.16"), // }, // }, // { // Name: to.Ptr("server_version_num"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/server_version_num"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the server version as an integer."), // AllowedValues: to.Ptr("130011-130011"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("130011"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-SERVER-VERSION-NUM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("130016"), // }, // }, // { // Name: to.Ptr("session_preload_libraries"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/session_preload_libraries"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Lists shared libraries to preload into each backend."), // AllowedValues: to.Ptr(",login_hook"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-SESSION-PRELOAD-LIBRARIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("session_replication_role"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/session_replication_role"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Controls firing of replication-related triggers and rules for the current session."), // AllowedValues: to.Ptr("origin,replica,local"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("origin"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-SESSION-REPLICATION-ROLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("origin"), // }, // }, // { // Name: to.Ptr("shared_buffers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/shared_buffers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of shared memory buffers used by the server. Unit is 8kb. Allowed values are inside the range of 10% - 75% of available memory."), // AllowedValues: to.Ptr("16-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("524288"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-SHARED-BUFFERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("524288"), // }, // }, // { // Name: to.Ptr("shared_memory_type"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/shared_memory_type"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects the shared memory implementation used for the main shared memory region."), // AllowedValues: to.Ptr("sysv,mmap"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("mmap"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-SHARED-MEMORY-TYPE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("mmap"), // }, // }, // { // Name: to.Ptr("shared_preload_libraries"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/shared_preload_libraries"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets which shared libraries are preloaded at server start."), // AllowedValues: to.Ptr(",age,anon,auto_explain,azure_storage,pg_cron,pg_failover_slots,pg_hint_plan,pg_partman_bgw,pg_prewarm,pg_squeeze,pg_stat_statements,pgaudit,pglogical,timescaledb,wal2json"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("Set")), // DefaultValue: to.Ptr("pg_cron,pg_stat_statements"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-SHARED-PRELOAD-LIBRARIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("pg_cron,pg_stat_statements"), // }, // }, // { // Name: to.Ptr("ssl"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables SSL connections."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("ssl_ca_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_ca_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Location of the SSL certificate authority file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-CA-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/certs/ca.pem"), // }, // }, // { // Name: to.Ptr("ssl_cert_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_cert_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Location of the SSL server certificate file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("server.crt"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-CERT-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/certs/cert.pem"), // }, // }, // { // Name: to.Ptr("ssl_ciphers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_ciphers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the list of allowed SSL ciphers."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("HIGH:MEDIUM:+3DES:!aNULL"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-CIPHERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256"), // }, // }, // { // Name: to.Ptr("ssl_crl_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_crl_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Location of the SSL certificate revocation list file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-CRL-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("ssl_dh_params_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_dh_params_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Location of the SSL DH parameters file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-DH-PARAMS-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("ssl_ecdh_curve"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_ecdh_curve"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the curve to use for ECDH."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("prime256v1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-ECDH-CURVE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("prime256v1"), // }, // }, // { // Name: to.Ptr("ssl_key_file"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_key_file"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Location of the SSL server private key file."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("server.key"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-KEY-FILE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("/datadrive/certs/key.pem"), // }, // }, // { // Name: to.Ptr("ssl_library"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_library"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Name of the SSL library."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("OpenSSL"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-SSL-LIBRARY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("OpenSSL"), // }, // }, // { // Name: to.Ptr("ssl_max_protocol_version"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_max_protocol_version"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum SSL/TLS protocol version to use."), // AllowedValues: to.Ptr(",TLSv1.2,TLSv1.3"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-MAX-PROTOCOL-VERSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("ssl_min_protocol_version"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_min_protocol_version"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum SSL/TLS protocol version to use."), // AllowedValues: to.Ptr("TLSv1.2,TLSv1.3"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("TLSv1.2"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-MIN-PROTOCOL-VERSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("TLSv1.2"), // }, // }, // { // Name: to.Ptr("ssl_passphrase_command"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_passphrase_command"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Command to obtain passphrases for SSL."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-PASSPHRASE-COMMAND"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("ssl_passphrase_command_supports_reload"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_passphrase_command_supports_reload"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Also use ssl_passphrase_command during server reload."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-PASSPHRASE-COMMAND-SUPPORTS-RELOAD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("ssl_prefer_server_ciphers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/ssl_prefer_server_ciphers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Give priority to server ciphersuite order."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SSL-PREFER-SERVER-CIPHERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("standard_conforming_strings"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/standard_conforming_strings"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Causes '...' strings to treat backslashes literally."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-STANDARD-CONFORMING-STRINGS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("statement_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/statement_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-STATEMENT-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("stats_temp_directory"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/stats_temp_directory"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes temporary statistics files to the specified directory."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("pg_stat_tmp"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-STATS-TEMP-DIRECTORY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("pg_stat_tmp"), // }, // }, // { // Name: to.Ptr("superuser_reserved_connections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/superuser_reserved_connections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of connection slots reserved for superusers."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-SUPERUSER-RESERVED-CONNECTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("synchronize_seqscans"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronize_seqscans"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables synchronized sequential scans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-SYNCHRONIZE-SEQSCANS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("synchronous_commit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronous_commit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the current transaction's synchronization level."), // AllowedValues: to.Ptr("local,remote_write,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("synchronous_standby_names"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronous_standby_names"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of synchronous standbys and list of names of potential synchronous ones."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("syslog_facility"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/syslog_facility"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the syslog \"facility\" to be used when syslog enabled."), // AllowedValues: to.Ptr("local0,local1,local2,local3,local4,local5,local6,local7"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("local0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-SYSLOG-FACILITY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("local0"), // }, // }, // { // Name: to.Ptr("syslog_ident"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/syslog_ident"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the program name used to identify PostgreSQL messages in syslog."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("postgres"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-SYSLOG-IDENT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("postgres"), // }, // }, // { // Name: to.Ptr("syslog_sequence_numbers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/syslog_sequence_numbers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Add sequence number to syslog messages to avoid duplicate suppression."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-SYSLOG-SEQUENCE-NUMBERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("syslog_split_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/syslog_split_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Split messages sent to syslog by lines and to fit into 1024 bytes."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-SYSLOG-SPLIT-MESSAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_count"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_count"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the number of TCP keepalives that can be lost before the server's connection to the client is considered dead."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("9"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-TCP-KEEPALIVES-COUNT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("9"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_idle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_idle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the number of seconds of inactivity after which TCP should send a keepalive message to the client."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("120"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-TCP-KEEPALIVES-IDLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("120"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the number of seconds after which a TCP keepalive message that is not acknowledged by the client should be retransmitted."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-TCP-KEEPALIVES-INTERVAL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("30"), // }, // }, // { // Name: to.Ptr("tcp_user_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_user_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the amount of time that transmitted data may remain unacknowledged before the TCP connection is forcibly closed."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-TCP-USER-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("temp_buffers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_buffers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of temporary buffers used by each database session."), // AllowedValues: to.Ptr("100-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-TEMP-BUFFERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("temp_file_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_file_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Limits the total size of all temporary files used by each process."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-TEMP-FILE-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("temp_tablespaces"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_tablespaces"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default tablespace(s) to use for temporary tables and sort files if not specified in the CREATE command."), // AllowedValues: to.Ptr("[A-Za-z._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TEMP-TABLESPACES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("user-override"), // Value: to.Ptr("temptblspace"), // }, // }, // { // Name: to.Ptr("TimeZone"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/TimeZone"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the time zone for displaying and interpreting time stamps."), // AllowedValues: to.Ptr("[A-Za-z0-9/+_-]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("UTC"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TIMEZONE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("UTC"), // }, // }, // { // Name: to.Ptr("timezone_abbreviations"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/timezone_abbreviations"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects a file of time zone abbreviations."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TIMEZONE-ABBREVIATIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("Default"), // }, // }, // { // Name: to.Ptr("trace_notify"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/trace_notify"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Generates debugging output for LISTEN and NOTIFY."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-TRACE-NOTIFY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("trace_recovery_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/trace_recovery_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables logging of recovery-related debugging information."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,log,notice,warning,error"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("log"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-TRACE-RECOVERY-MESSAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("log"), // }, // }, // { // Name: to.Ptr("trace_sort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/trace_sort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Emit information about resource usage in sorting."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-TRACE-SORT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("track_activities"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_activities"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects information about executing commands for each session."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-TRACK-ACTIVITIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("track_activity_query_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_activity_query_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the amount of memory reserved for pg_stat_activity.query, in bytes."), // AllowedValues: to.Ptr("100-102400"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-TRACK-ACTIVITY-QUERY-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("track_commit_timestamp"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_commit_timestamp"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects transaction commit time."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("track_counts"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_counts"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables collection of statistics on database activity"), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-TRACK-COUNTS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("track_functions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_functions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables tracking of function call counts and time used."), // AllowedValues: to.Ptr("none,pl,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-TRACK-FUNCTIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("track_io_timing"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_io_timing"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables timing of database I/O calls."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-statistics.html#GUC-TRACK-IO-TIMING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("transaction_deferrable"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transaction_deferrable"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Whether to defer a read-only serializable transaction until it can be executed with no possible serialization failures."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TRANSACTION-DEFERRABLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("transaction_isolation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transaction_isolation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the current transaction's isolation level."), // AllowedValues: to.Ptr("serializable,repeatable read,read committed,read uncommitted"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("read committed"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TRANSACTION-ISOLATION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("read committed"), // }, // }, // { // Name: to.Ptr("transaction_read_only"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transaction_read_only"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the current transaction's read-only status."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-TRANSACTION-READ-ONLY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("transform_null_equals"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transform_null_equals"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("When on, expressions of the form expr = NULL (or NULL = expr) are treated as expr IS NULL, that is, they return true if expr evaluates to the null value, and false otherwise."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-TRANSFORM-NULL-EQUALS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("unix_socket_directories"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/unix_socket_directories"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the directories where Unix-domain sockets will be created."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("/tmp"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-UNIX-SOCKET-DIRECTORIES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("/tmp"), // }, // }, // { // Name: to.Ptr("unix_socket_group"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/unix_socket_group"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the owning group of the Unix-domain socket."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-UNIX-SOCKET-GROUP"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("unix_socket_permissions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/unix_socket_permissions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the access permissions of the Unix-domain socket."), // AllowedValues: to.Ptr("0-511"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("511"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-connection.html#GUC-UNIX-SOCKET-PERMISSIONS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Value: to.Ptr("0777"), // }, // }, // { // Name: to.Ptr("update_process_title"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/update_process_title"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Updates the process title to show the active SQL command."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-logging.html#GUC-UPDATE-PROCESS-TITLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("vacuum_cleanup_index_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cleanup_index_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of tuple inserts prior to index cleanup as a fraction of reltuples."), // AllowedValues: to.Ptr("0-1e+10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("vacuum_cost_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("the amount of time (in milliseconds) that the vacuum process will sleep when the cost limit has been exceeded."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-VACUUM-COST-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("vacuum_cost_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The accumulated cost that will cause the vacuuming process to sleep."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-VACUUM-COST-LIMIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("200"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_dirty"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_dirty"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The estimated cost charged when vacuum modifies a block that was previously clean."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("20"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-VACUUM-COST-PAGE-DIRTY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("20"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_hit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_hit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The estimated cost for vacuuming a buffer found in the shared buffer cache."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-VACUUM-COST-PAGE-HIT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_miss"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_miss"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("The estimated cost for vacuuming a buffer that must be read from disk."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-VACUUM-COST-PAGE-MISS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("vacuum_defer_cleanup_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_defer_cleanup_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the number of transactions by which VACUUM and HOT updates will defer cleanup of dead row versions."), // AllowedValues: to.Ptr("0-1000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-VACUUM-DEFER-CLEANUP-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("vacuum_freeze_min_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_min_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the cutoff age (in transactions) that VACUUM should use to decide whether to freeze row versions while scanning a table."), // AllowedValues: to.Ptr("0-1000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-VACUUM-FREEZE-MIN-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("50000000"), // }, // }, // { // Name: to.Ptr("vacuum_freeze_table_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_table_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Age at which VACUUM should scan whole table to freeze tuples."), // AllowedValues: to.Ptr("0-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("150000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-VACUUM-FREEZE-TABLE-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("150000000"), // }, // }, // { // Name: to.Ptr("vacuum_multixact_freeze_min_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_min_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Specifies the cutoff age (in multixacts) that VACUUM should use to decide whether to replace multixact IDs with a newer transaction ID or multixact ID while scanning a table."), // AllowedValues: to.Ptr("0-1000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-VACUUM-MULTIXACT-FREEZE-MIN-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("5000000"), // }, // }, // { // Name: to.Ptr("vacuum_multixact_freeze_table_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_table_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("VACUUM performs a full table scan to freeze rows if the table has reached the age specified by this setting."), // AllowedValues: to.Ptr("0-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("150000000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-VACUUM-MULTIXACT-FREEZE-TABLE-AGE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("150000000"), // }, // }, // { // Name: to.Ptr("wal_block_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_block_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the block size in the write ahead log."), // AllowedValues: to.Ptr("8192-8192"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8192"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-WAL-BLOCK-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("8192"), // }, // }, // { // Name: to.Ptr("wal_buffers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_buffers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of disk-page buffers in shared memory for WAL. Unit is 8kb."), // AllowedValues: to.Ptr("-1-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2048"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-BUFFERS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("2048"), // }, // }, // { // Name: to.Ptr("wal_compression"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_compression"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Compresses full-page writes written in WAL file."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-COMPRESSION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("wal_consistency_checking"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_consistency_checking"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the WAL resource managers for which WAL consistency checks are done."), // AllowedValues: to.Ptr(".*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-WAL-CONSISTENCY-CHECKING"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("wal_init_zero"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_init_zero"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes zeroes to new WAL files before first use."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-INIT-ZERO"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("wal_keep_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_keep_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the size of WAL files held for standby servers."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-KEEP-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("user-override"), // Unit: to.Ptr("megabytes"), // Value: to.Ptr("400"), // }, // }, // { // Name: to.Ptr("wal_level"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_level"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("It determines how much information is written to the WAL."), // AllowedValues: to.Ptr("replica,logical"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("replica"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-LEVEL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("replica"), // }, // }, // { // Name: to.Ptr("wal_log_hints"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_log_hints"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Writes full pages to WAL when first modified after a checkpoint, even for a non-critical modification."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-LOG-HINTS"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(false), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("wal_receiver_create_temp_slot"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_create_temp_slot"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether a WAL receiver should create a temporary replication slot if no permanent slot is configured."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-RECEIVER-CREATE-TEMP-SLOT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("wal_receiver_status_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_status_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum interval between WAL receiver status reports to the primary."), // AllowedValues: to.Ptr("0-2147483"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-RECEIVER-STATUS-INTERVAL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("seconds"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("wal_receiver_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum wait time to receive data from the sending server."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("60000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-RECEIVER-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("60000"), // }, // }, // { // Name: to.Ptr("wal_recycle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_recycle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Recycles WAL files by renaming them."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-RECYCLE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("wal_retrieve_retry_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_retrieve_retry_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the time to wait before retrying to retrieve WAL after a failed attempt."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-RETRIEVE-RETRY-INTERVAL"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("5000"), // }, // }, // { // Name: to.Ptr("wal_segment_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_segment_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Shows the size of write ahead log segments."), // AllowedValues: to.Ptr("1048576-1073741824"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("16777216"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-preset.html#GUC-WAL-SEGMENT-SIZE"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("bytes"), // Value: to.Ptr("16777216"), // }, // }, // { // Name: to.Ptr("wal_sender_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_sender_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum time to wait for WAL replication."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("60000"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-WAL-SENDER-TIMEOUT"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("60000"), // }, // }, // { // Name: to.Ptr("wal_skip_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_skip_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Size of new file to fsync instead of writing WAL."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2048"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-SKIP-THRESHOLD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("2048"), // }, // }, // { // Name: to.Ptr("wal_sync_method"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_sync_method"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Selects the method used for forcing WAL updates to disk."), // AllowedValues: to.Ptr("fsync,fdatasync,open_sync,open_datasync"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("fdatasync"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-SYNC-METHOD"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("fdatasync"), // }, // }, // { // Name: to.Ptr("wal_writer_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time interval between WAL flushes performed by the WAL writer."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-WRITER-DELAY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("milliseconds"), // Value: to.Ptr("200"), // }, // }, // { // Name: to.Ptr("wal_writer_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Amount of WAL written out by WAL writer that triggers a flush."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("128"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-wal.html#GUC-WAL-WRITER-FLUSH-AFTER"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("8KB"), // Value: to.Ptr("128"), // }, // }, // { // Name: to.Ptr("work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files."), // AllowedValues: to.Ptr("4096-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("4096"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-WORK-MEM"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Unit: to.Ptr("KB"), // Value: to.Ptr("4096"), // }, // }, // { // Name: to.Ptr("xmlbinary"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmlbinary"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets how binary values are to be encoded in XML."), // AllowedValues: to.Ptr("base64,hex"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("base64"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-XMLBINARY"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("base64"), // }, // }, // { // Name: to.Ptr("xmloption"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmloption"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments."), // AllowedValues: to.Ptr("content,document"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("content"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-XMLOPTION"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(false), // Source: to.Ptr("system-default"), // Value: to.Ptr("content"), // }, // }, // { // Name: to.Ptr("zero_damaged_pages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/zero_damaged_pages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Continues processing past damaged page headers."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // DocumentationLink: to.Ptr("https://www.postgresql.org/docs/13/runtime-config-developer.html#GUC-ZERO-DAMAGED-PAGES"), // IsConfigPendingRestart: to.Ptr(false), // IsDynamicConfig: to.Ptr(true), // IsReadOnly: to.Ptr(true), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }}, // } }
type ConfigurationsClientBeginPutOptions ¶
type ConfigurationsClientBeginPutOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ConfigurationsClientBeginPutOptions contains the optional parameters for the ConfigurationsClient.BeginPut method.
type ConfigurationsClientBeginUpdateOptions ¶
type ConfigurationsClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
type ConfigurationsClientGetOptions ¶
type ConfigurationsClientGetOptions struct { }
ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
type ConfigurationsClientGetResponse ¶
type ConfigurationsClientGetResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientGetResponse contains the response from method ConfigurationsClient.Get.
type ConfigurationsClientListByServerOptions ¶
type ConfigurationsClientListByServerOptions struct { }
ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
type ConfigurationsClientListByServerResponse ¶
type ConfigurationsClientListByServerResponse struct { // A list of server configurations. ConfigurationListResult }
ConfigurationsClientListByServerResponse contains the response from method ConfigurationsClient.NewListByServerPager.
type ConfigurationsClientPutResponse ¶
type ConfigurationsClientPutResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientPutResponse contains the response from method ConfigurationsClient.BeginPut.
type ConfigurationsClientUpdateResponse ¶
type ConfigurationsClientUpdateResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientUpdateResponse contains the response from method ConfigurationsClient.BeginUpdate.
type CreateMode ¶
type CreateMode string
CreateMode - The mode to create a new PostgreSQL server.
const ( CreateModeCreate CreateMode = "Create" CreateModeDefault CreateMode = "Default" CreateModeGeoRestore CreateMode = "GeoRestore" CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" CreateModeReplica CreateMode = "Replica" CreateModeReviveDropped CreateMode = "ReviveDropped" CreateModeUpdate CreateMode = "Update" )
func PossibleCreateModeValues ¶
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns the possible values for the CreateMode const type.
type CreateModeForUpdate ¶
type CreateModeForUpdate string
CreateModeForUpdate - The mode to update a new PostgreSQL server.
const ( CreateModeForUpdateDefault CreateModeForUpdate = "Default" CreateModeForUpdateUpdate CreateModeForUpdate = "Update" )
func PossibleCreateModeForUpdateValues ¶
func PossibleCreateModeForUpdateValues() []CreateModeForUpdate
PossibleCreateModeForUpdateValues returns the possible values for the CreateModeForUpdate const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DataEncryption ¶
type DataEncryption struct { // Geo-backup encryption key status for Data encryption enabled server. GeoBackupEncryptionKeyStatus *KeyStatusEnum // URI for the key in keyvault for data encryption for geo-backup of server. GeoBackupKeyURI *string // Resource Id for the User assigned identity to be used for data encryption for geo-backup of server. GeoBackupUserAssignedIdentityID *string // Primary encryption key status for Data encryption enabled server. PrimaryEncryptionKeyStatus *KeyStatusEnum // URI for the key in keyvault for data encryption of the primary server. PrimaryKeyURI *string // Resource Id for the User assigned identity to be used for data encryption of the primary server. PrimaryUserAssignedIdentityID *string // Data encryption type to depict if it is System Managed vs Azure Key vault. Type *ArmServerKeyType }
DataEncryption - Data encryption properties of a server
func (DataEncryption) MarshalJSON ¶
func (d DataEncryption) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataEncryption.
func (*DataEncryption) UnmarshalJSON ¶
func (d *DataEncryption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataEncryption.
type Database ¶
type Database struct { // The properties of a database. Properties *DatabaseProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Database - Represents a Database.
func (Database) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Database.
func (*Database) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Database.
type DatabaseListResult ¶
type DatabaseListResult struct { // The link used to get the next page of databases. NextLink *string // The list of databases housed in a server Value []*Database }
DatabaseListResult - A List of databases.
func (DatabaseListResult) MarshalJSON ¶
func (d DatabaseListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DatabaseListResult.
func (*DatabaseListResult) UnmarshalJSON ¶
func (d *DatabaseListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseListResult.
type DatabaseProperties ¶
type DatabaseProperties struct { // The charset of the database. Charset *string // The collation of the database. Collation *string }
DatabaseProperties - The properties of a database.
func (DatabaseProperties) MarshalJSON ¶
func (d DatabaseProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DatabaseProperties.
func (*DatabaseProperties) UnmarshalJSON ¶
func (d *DatabaseProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseProperties.
type DatabasesClient ¶
type DatabasesClient struct {
// contains filtered or unexported fields
}
DatabasesClient contains the methods for the Databases group. Don't use this type directly, use NewDatabasesClient() instead.
func NewDatabasesClient ¶
func NewDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabasesClient, error)
NewDatabasesClient creates a new instance of DatabasesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DatabasesClient) BeginCreate ¶
func (client *DatabasesClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database, options *DatabasesClientBeginCreateOptions) (*runtime.Poller[DatabasesClientCreateResponse], error)
BeginCreate - Creates a new database or updates an existing database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- databaseName - The name of the database.
- parameters - The required parameters for creating or updating a database.
- options - DatabasesClientBeginCreateOptions contains the optional parameters for the DatabasesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/DatabaseCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDatabasesClient().BeginCreate(ctx, "TestGroup", "testserver", "db1", armpostgresqlflexibleservers.Database{ Properties: &armpostgresqlflexibleservers.DatabaseProperties{ Charset: to.Ptr("utf8"), Collation: to.Ptr("en_US.utf8"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Database = armpostgresqlflexibleservers.Database{ // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }
func (*DatabasesClient) BeginDelete ¶
func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, options *DatabasesClientBeginDeleteOptions) (*runtime.Poller[DatabasesClientDeleteResponse], error)
BeginDelete - Deletes a database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- databaseName - The name of the database.
- options - DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/DatabaseDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDatabasesClient().BeginDelete(ctx, "TestGroup", "testserver", "db1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*DatabasesClient) Get ¶
func (client *DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, options *DatabasesClientGetOptions) (DatabasesClientGetResponse, error)
Get - Gets information about a database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- databaseName - The name of the database.
- options - DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/DatabaseGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDatabasesClient().Get(ctx, "TestGroup", "testserver", "db1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Database = armpostgresqlflexibleservers.Database{ // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }
func (*DatabasesClient) NewListByServerPager ¶
func (client *DatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *DatabasesClientListByServerOptions) *runtime.Pager[DatabasesClientListByServerResponse]
NewListByServerPager - List all the databases in a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/DatabasesListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDatabasesClient().NewListByServerPager("TestGroup", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DatabaseListResult = armpostgresqlflexibleservers.DatabaseListResult{ // Value: []*armpostgresqlflexibleservers.Database{ // { // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("db2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db2"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }}, // } }
type DatabasesClientBeginCreateOptions ¶
type DatabasesClientBeginCreateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
DatabasesClientBeginCreateOptions contains the optional parameters for the DatabasesClient.BeginCreate method.
type DatabasesClientBeginDeleteOptions ¶
type DatabasesClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method.
type DatabasesClientCreateResponse ¶
type DatabasesClientCreateResponse struct { // Represents a Database. Database }
DatabasesClientCreateResponse contains the response from method DatabasesClient.BeginCreate.
type DatabasesClientDeleteResponse ¶
type DatabasesClientDeleteResponse struct { }
DatabasesClientDeleteResponse contains the response from method DatabasesClient.BeginDelete.
type DatabasesClientGetOptions ¶
type DatabasesClientGetOptions struct { }
DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method.
type DatabasesClientGetResponse ¶
type DatabasesClientGetResponse struct { // Represents a Database. Database }
DatabasesClientGetResponse contains the response from method DatabasesClient.Get.
type DatabasesClientListByServerOptions ¶
type DatabasesClientListByServerOptions struct { }
DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.NewListByServerPager method.
type DatabasesClientListByServerResponse ¶
type DatabasesClientListByServerResponse struct { // A List of databases. DatabaseListResult }
DatabasesClientListByServerResponse contains the response from method DatabasesClient.NewListByServerPager.
type DbLevelValidationStatus ¶
type DbLevelValidationStatus struct { // Name of the database DatabaseName *string // End date-time of a database level validation EndedOn *time.Time // Start date-time of a database level validation StartedOn *time.Time // Summary of database level validations Summary []*ValidationSummaryItem }
DbLevelValidationStatus - Validation status summary for an individual database
func (DbLevelValidationStatus) MarshalJSON ¶
func (d DbLevelValidationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DbLevelValidationStatus.
func (*DbLevelValidationStatus) UnmarshalJSON ¶
func (d *DbLevelValidationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DbLevelValidationStatus.
type DbMigrationStatus ¶
type DbMigrationStatus struct { // CDC applied changes counter AppliedChanges *int32 // CDC delete counter CdcDeleteCounter *int32 // CDC insert counter CdcInsertCounter *int32 // CDC update counter CdcUpdateCounter *int32 // Name of the database DatabaseName *string // End date-time of a migration state EndedOn *time.Time // Number of tables loaded during the migration of a DB FullLoadCompletedTables *int32 // Number of tables errored out during the migration of a DB FullLoadErroredTables *int32 // Number of tables loading during the migration of a DB FullLoadLoadingTables *int32 // Number of tables queued for the migration of a DB FullLoadQueuedTables *int32 // CDC incoming changes counter IncomingChanges *int32 // Lag in seconds between source and target during online phase Latency *int32 // Error message, if any, for the migration state Message *string // Migration operation of an individual database MigrationOperation *string // Migration db state of an individual database MigrationState *MigrationDbState // Start date-time of a migration state StartedOn *time.Time }
DbMigrationStatus - Migration status of an individual database
func (DbMigrationStatus) MarshalJSON ¶
func (d DbMigrationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DbMigrationStatus.
func (*DbMigrationStatus) UnmarshalJSON ¶
func (d *DbMigrationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DbMigrationStatus.
type DbServerMetadata ¶
type DbServerMetadata struct { // SKU for the database server. This object is empty for PG single server SKU *ServerSKU // Storage size in MB for database server StorageMb *int32 // Version for database engine Version *string // READ-ONLY; Location of database server Location *string }
DbServerMetadata - Database server metadata.
func (DbServerMetadata) MarshalJSON ¶
func (d DbServerMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DbServerMetadata.
func (*DbServerMetadata) UnmarshalJSON ¶
func (d *DbServerMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DbServerMetadata.
type DelegatedSubnetUsage ¶
type DelegatedSubnetUsage struct { // READ-ONLY; Name of the delegated subnet for which IP addresses are in use SubnetName *string // READ-ONLY; Number of IP addresses used by the delegated subnet Usage *int64 }
DelegatedSubnetUsage - Delegated subnet usage data.
func (DelegatedSubnetUsage) MarshalJSON ¶
func (d DelegatedSubnetUsage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DelegatedSubnetUsage.
func (*DelegatedSubnetUsage) UnmarshalJSON ¶
func (d *DelegatedSubnetUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DelegatedSubnetUsage.
type ExecutionStatus ¶
type ExecutionStatus string
ExecutionStatus - Service-set extensible enum indicating the status of operation
const ( ExecutionStatusCancelled ExecutionStatus = "Cancelled" ExecutionStatusFailed ExecutionStatus = "Failed" ExecutionStatusRunning ExecutionStatus = "Running" ExecutionStatusSucceeded ExecutionStatus = "Succeeded" )
func PossibleExecutionStatusValues ¶
func PossibleExecutionStatusValues() []ExecutionStatus
PossibleExecutionStatusValues returns the possible values for the ExecutionStatus const type.
type FailoverMode ¶
type FailoverMode string
FailoverMode - Failover mode.
const ( FailoverModeForcedFailover FailoverMode = "ForcedFailover" FailoverModeForcedSwitchover FailoverMode = "ForcedSwitchover" FailoverModePlannedFailover FailoverMode = "PlannedFailover" FailoverModePlannedSwitchover FailoverMode = "PlannedSwitchover" )
func PossibleFailoverModeValues ¶
func PossibleFailoverModeValues() []FailoverMode
PossibleFailoverModeValues returns the possible values for the FailoverMode const type.
type FastProvisioningEditionCapability ¶
type FastProvisioningEditionCapability struct { // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; Count of servers in cache matching the spec ServerCount *int32 // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; Fast provisioning supported sku name SupportedSKU *string // READ-ONLY; Fast provisioning supported version SupportedServerVersions *string // READ-ONLY; Fast provisioning supported storage in Gb SupportedStorageGb *int32 // READ-ONLY; Fast provisioning supported tier name SupportedTier *string }
FastProvisioningEditionCapability - Represents capability of a fast provisioning edition
func (FastProvisioningEditionCapability) MarshalJSON ¶
func (f FastProvisioningEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FastProvisioningEditionCapability.
func (*FastProvisioningEditionCapability) UnmarshalJSON ¶
func (f *FastProvisioningEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FastProvisioningEditionCapability.
type FastProvisioningSupportedEnum ¶
type FastProvisioningSupportedEnum string
FastProvisioningSupportedEnum - Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning is supported. "Disabled" stands for fast provisioning is not supported. Will be deprecated in future, please look to Supported Features for "FastProvisioning".
const ( FastProvisioningSupportedEnumDisabled FastProvisioningSupportedEnum = "Disabled" FastProvisioningSupportedEnumEnabled FastProvisioningSupportedEnum = "Enabled" )
func PossibleFastProvisioningSupportedEnumValues ¶
func PossibleFastProvisioningSupportedEnumValues() []FastProvisioningSupportedEnum
PossibleFastProvisioningSupportedEnumValues returns the possible values for the FastProvisioningSupportedEnum const type.
type FirewallRule ¶
type FirewallRule struct { // REQUIRED; The properties of a firewall rule. Properties *FirewallRuleProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
FirewallRule - Represents a server firewall rule.
func (FirewallRule) MarshalJSON ¶
func (f FirewallRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRule.
func (*FirewallRule) UnmarshalJSON ¶
func (f *FirewallRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRule.
type FirewallRuleListResult ¶
type FirewallRuleListResult struct { // The link used to get the next page of operations. NextLink *string // The list of firewall rules in a server. Value []*FirewallRule }
FirewallRuleListResult - A list of firewall rules.
func (FirewallRuleListResult) MarshalJSON ¶
func (f FirewallRuleListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRuleListResult.
func (*FirewallRuleListResult) UnmarshalJSON ¶
func (f *FirewallRuleListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRuleListResult.
type FirewallRuleProperties ¶
type FirewallRuleProperties struct { // REQUIRED; The end IP address of the server firewall rule. Must be IPv4 format. EndIPAddress *string // REQUIRED; The start IP address of the server firewall rule. Must be IPv4 format. StartIPAddress *string }
FirewallRuleProperties - The properties of a server firewall rule.
func (FirewallRuleProperties) MarshalJSON ¶
func (f FirewallRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRuleProperties.
func (*FirewallRuleProperties) UnmarshalJSON ¶
func (f *FirewallRuleProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRuleProperties.
type FirewallRulesClient ¶
type FirewallRulesClient struct {
// contains filtered or unexported fields
}
FirewallRulesClient contains the methods for the FirewallRules group. Don't use this type directly, use NewFirewallRulesClient() instead.
func NewFirewallRulesClient ¶
func NewFirewallRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallRulesClient, error)
NewFirewallRulesClient creates a new instance of FirewallRulesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FirewallRulesClient) BeginCreateOrUpdate ¶
func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule, options *FirewallRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[FirewallRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a new firewall rule or updates an existing firewall rule. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- firewallRuleName - The name of the server firewall rule.
- parameters - The required parameters for creating or updating a firewall rule.
- options - FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/FirewallRuleCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFirewallRulesClient().BeginCreateOrUpdate(ctx, "testrg", "testserver", "rule1", armpostgresqlflexibleservers.FirewallRule{ Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ EndIPAddress: to.Ptr("255.255.255.255"), StartIPAddress: to.Ptr("0.0.0.0"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }
func (*FirewallRulesClient) BeginDelete ¶
func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, options *FirewallRulesClientBeginDeleteOptions) (*runtime.Poller[FirewallRulesClientDeleteResponse], error)
BeginDelete - Deletes a PostgreSQL server firewall rule. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- firewallRuleName - The name of the server firewall rule.
- options - FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/FirewallRuleDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFirewallRulesClient().BeginDelete(ctx, "testrg", "testserver", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*FirewallRulesClient) Get ¶
func (client *FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, options *FirewallRulesClientGetOptions) (FirewallRulesClientGetResponse, error)
Get - List all the firewall rules in a given server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- firewallRuleName - The name of the server firewall rule.
- options - FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/FirewallRuleGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFirewallRulesClient().Get(ctx, "testrg", "testserver", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }
func (*FirewallRulesClient) NewListByServerPager ¶
func (client *FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *FirewallRulesClientListByServerOptions) *runtime.Pager[FirewallRulesClientListByServerResponse]
NewListByServerPager - List all the firewall rules in a given PostgreSQL server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/FirewallRuleListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFirewallRulesClient().NewListByServerPager("testrg", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.FirewallRuleListResult = armpostgresqlflexibleservers.FirewallRuleListResult{ // Value: []*armpostgresqlflexibleservers.FirewallRule{ // { // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }, // { // Name: to.Ptr("rule2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule2"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.0.0.0"), // StartIPAddress: to.Ptr("1.0.0.0"), // }, // }}, // } }
type FirewallRulesClientBeginCreateOrUpdateOptions ¶
type FirewallRulesClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
type FirewallRulesClientBeginDeleteOptions ¶
type FirewallRulesClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
type FirewallRulesClientCreateOrUpdateResponse ¶
type FirewallRulesClientCreateOrUpdateResponse struct { // Represents a server firewall rule. FirewallRule }
FirewallRulesClientCreateOrUpdateResponse contains the response from method FirewallRulesClient.BeginCreateOrUpdate.
type FirewallRulesClientDeleteResponse ¶
type FirewallRulesClientDeleteResponse struct { }
FirewallRulesClientDeleteResponse contains the response from method FirewallRulesClient.BeginDelete.
type FirewallRulesClientGetOptions ¶
type FirewallRulesClientGetOptions struct { }
FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
type FirewallRulesClientGetResponse ¶
type FirewallRulesClientGetResponse struct { // Represents a server firewall rule. FirewallRule }
FirewallRulesClientGetResponse contains the response from method FirewallRulesClient.Get.
type FirewallRulesClientListByServerOptions ¶
type FirewallRulesClientListByServerOptions struct { }
FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.NewListByServerPager method.
type FirewallRulesClientListByServerResponse ¶
type FirewallRulesClientListByServerResponse struct { // A list of firewall rules. FirewallRuleListResult }
FirewallRulesClientListByServerResponse contains the response from method FirewallRulesClient.NewListByServerPager.
type FlexibleServerCapability ¶
type FlexibleServerCapability struct { // Name of flexible servers capability Name *string // READ-ONLY; Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning is supported. // "Disabled" stands for fast provisioning is not supported. Will be deprecated in future, // please look to Supported Features for "FastProvisioning". FastProvisioningSupported *FastProvisioningSupportedEnum // READ-ONLY; Determines if geo-backup is supported in this region. "Enabled" means geo-backup is supported. "Disabled" stands // for geo-back is not supported. Will be deprecated in future, please look to Supported // Features for "GeoBackup". GeoBackupSupported *GeoBackupSupportedEnum // READ-ONLY; A value indicating whether online resize is supported in this region for the given subscription. "Enabled" means // storage online resize is supported. "Disabled" means storage online resize is not // supported. Will be deprecated in future, please look to Supported Features for "OnlineResize". OnlineResizeSupported *OnlineResizeSupportedEnum // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; A value indicating whether this region is restricted. "Enabled" means region is restricted. "Disabled" stands // for region is not restricted. Will be deprecated in future, please look to Supported // Features for "Restricted". Restricted *RestrictedEnum // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; A value indicating whether storage auto-grow is supported in this region. "Enabled" means storage auto-grow // is supported. "Disabled" stands for storage auto-grow is not supported. Will be deprecated // in future, please look to Supported Features for "StorageAutoGrowth". StorageAutoGrowthSupported *StorageAutoGrowthSupportedEnum // READ-ONLY; List of supported server editions for fast provisioning SupportedFastProvisioningEditions []*FastProvisioningEditionCapability // READ-ONLY; The supported features. SupportedFeatures []*SupportedFeature // READ-ONLY; List of supported flexible server editions SupportedServerEditions []*FlexibleServerEditionCapability // READ-ONLY; The list of server versions supported for this capability. SupportedServerVersions []*ServerVersionCapability // READ-ONLY; A value indicating whether Zone Redundant HA and Geo-backup is supported in this region. "Enabled" means zone // redundant HA and geo-backup is supported. "Disabled" stands for zone redundant HA and // geo-backup is not supported. Will be deprecated in future, please look to Supported Features for "ZoneRedundantHaAndGeoBackup". ZoneRedundantHaAndGeoBackupSupported *ZoneRedundantHaAndGeoBackupSupportedEnum // READ-ONLY; A value indicating whether Zone Redundant HA is supported in this region. "Enabled" means zone redundant HA // is supported. "Disabled" stands for zone redundant HA is not supported. Will be deprecated // in future, please look to Supported Features for "ZoneRedundantHa". ZoneRedundantHaSupported *ZoneRedundantHaSupportedEnum }
FlexibleServerCapability - Capability for the PostgreSQL server
func (FlexibleServerCapability) MarshalJSON ¶
func (f FlexibleServerCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FlexibleServerCapability.
func (*FlexibleServerCapability) UnmarshalJSON ¶
func (f *FlexibleServerCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FlexibleServerCapability.
type FlexibleServerClient ¶
type FlexibleServerClient struct {
// contains filtered or unexported fields
}
FlexibleServerClient contains the methods for the FlexibleServer group. Don't use this type directly, use NewFlexibleServerClient() instead.
func NewFlexibleServerClient ¶
func NewFlexibleServerClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FlexibleServerClient, error)
NewFlexibleServerClient creates a new instance of FlexibleServerClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FlexibleServerClient) BeginStartLtrBackup ¶
func (client *FlexibleServerClient) BeginStartLtrBackup(ctx context.Context, resourceGroupName string, serverName string, parameters LtrBackupRequest, options *FlexibleServerClientBeginStartLtrBackupOptions) (*runtime.Poller[FlexibleServerClientStartLtrBackupResponse], error)
BeginStartLtrBackup - Start the Long Term Retention Backup operation If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- parameters - Request body for operation
- options - FlexibleServerClientBeginStartLtrBackupOptions contains the optional parameters for the FlexibleServerClient.BeginStartLtrBackup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/LongTermRetentionBackup.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFlexibleServerClient().BeginStartLtrBackup(ctx, "rgLongTermRetention", "pgsqlltrtestserver", armpostgresqlflexibleservers.LtrBackupRequest{ BackupSettings: &armpostgresqlflexibleservers.BackupSettings{ BackupName: to.Ptr("backup1"), }, TargetDetails: &armpostgresqlflexibleservers.BackupStoreDetails{ SasURIList: []*string{ to.Ptr("sasuri")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LtrBackupResponse = armpostgresqlflexibleservers.LtrBackupResponse{ // Properties: &armpostgresqlflexibleservers.LtrBackupOperationResponseProperties{ // BackupMetadata: to.Ptr("backupmetadata"), // DataTransferredInBytes: to.Ptr[int64](23), // DatasourceSizeInBytes: to.Ptr[int64](23), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // PercentComplete: to.Ptr[float64](100), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // Status: to.Ptr(armpostgresqlflexibleservers.ExecutionStatusRunning), // }, // }
func (*FlexibleServerClient) TriggerLtrPreBackup ¶
func (client *FlexibleServerClient) TriggerLtrPreBackup(ctx context.Context, resourceGroupName string, serverName string, parameters LtrPreBackupRequest, options *FlexibleServerClientTriggerLtrPreBackupOptions) (FlexibleServerClientTriggerLtrPreBackupResponse, error)
TriggerLtrPreBackup - PreBackup operation performs all the checks that are needed for the subsequent long term retention backup operation to succeed. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- parameters - Request body for operation
- options - FlexibleServerClientTriggerLtrPreBackupOptions contains the optional parameters for the FlexibleServerClient.TriggerLtrPreBackup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/LongTermRetentionPreBackup.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFlexibleServerClient().TriggerLtrPreBackup(ctx, "rgLongTermRetention", "pgsqlltrtestserver", armpostgresqlflexibleservers.LtrPreBackupRequest{ BackupSettings: &armpostgresqlflexibleservers.BackupSettings{ BackupName: to.Ptr("backup1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LtrPreBackupResponse = armpostgresqlflexibleservers.LtrPreBackupResponse{ // Properties: &armpostgresqlflexibleservers.LtrPreBackupResponseProperties{ // NumberOfContainers: to.Ptr[int32](1), // }, // }
type FlexibleServerClientBeginStartLtrBackupOptions ¶
type FlexibleServerClientBeginStartLtrBackupOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
FlexibleServerClientBeginStartLtrBackupOptions contains the optional parameters for the FlexibleServerClient.BeginStartLtrBackup method.
type FlexibleServerClientStartLtrBackupResponse ¶
type FlexibleServerClientStartLtrBackupResponse struct { // Response for the LTR backup API call LtrBackupResponse }
FlexibleServerClientStartLtrBackupResponse contains the response from method FlexibleServerClient.BeginStartLtrBackup.
type FlexibleServerClientTriggerLtrPreBackupOptions ¶
type FlexibleServerClientTriggerLtrPreBackupOptions struct { }
FlexibleServerClientTriggerLtrPreBackupOptions contains the optional parameters for the FlexibleServerClient.TriggerLtrPreBackup method.
type FlexibleServerClientTriggerLtrPreBackupResponse ¶
type FlexibleServerClientTriggerLtrPreBackupResponse struct { // Response for the LTR pre-backup API call LtrPreBackupResponse // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
FlexibleServerClientTriggerLtrPreBackupResponse contains the response from method FlexibleServerClient.TriggerLtrPreBackup.
type FlexibleServerEditionCapability ¶
type FlexibleServerEditionCapability struct { // READ-ONLY; Default sku name for the server edition DefaultSKUName *string // READ-ONLY; Server edition name Name *string // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; List of supported server SKUs. SupportedServerSKUs []*ServerSKUCapability // READ-ONLY; The list of editions supported by this server edition. SupportedStorageEditions []*StorageEditionCapability }
FlexibleServerEditionCapability - Flexible server edition capabilities.
func (FlexibleServerEditionCapability) MarshalJSON ¶
func (f FlexibleServerEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FlexibleServerEditionCapability.
func (*FlexibleServerEditionCapability) UnmarshalJSON ¶
func (f *FlexibleServerEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FlexibleServerEditionCapability.
type GeoBackupSupportedEnum ¶
type GeoBackupSupportedEnum string
GeoBackupSupportedEnum - Determines if geo-backup is supported in this region. "Enabled" means geo-backup is supported. "Disabled" stands for geo-back is not supported. Will be deprecated in future, please look to Supported Features for "GeoBackup".
const ( GeoBackupSupportedEnumDisabled GeoBackupSupportedEnum = "Disabled" GeoBackupSupportedEnumEnabled GeoBackupSupportedEnum = "Enabled" )
func PossibleGeoBackupSupportedEnumValues ¶
func PossibleGeoBackupSupportedEnumValues() []GeoBackupSupportedEnum
PossibleGeoBackupSupportedEnumValues returns the possible values for the GeoBackupSupportedEnum const type.
type GeoRedundantBackupEnum ¶
type GeoRedundantBackupEnum string
GeoRedundantBackupEnum - A value indicating whether Geo-Redundant backup is enabled on the server.
const ( GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled" GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled" )
func PossibleGeoRedundantBackupEnumValues ¶
func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum
PossibleGeoRedundantBackupEnumValues returns the possible values for the GeoRedundantBackupEnum const type.
type GetPrivateDNSZoneSuffixClient ¶
type GetPrivateDNSZoneSuffixClient struct {
// contains filtered or unexported fields
}
GetPrivateDNSZoneSuffixClient contains the methods for the GetPrivateDNSZoneSuffix group. Don't use this type directly, use NewGetPrivateDNSZoneSuffixClient() instead.
func NewGetPrivateDNSZoneSuffixClient ¶
func NewGetPrivateDNSZoneSuffixClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*GetPrivateDNSZoneSuffixClient, error)
NewGetPrivateDNSZoneSuffixClient creates a new instance of GetPrivateDNSZoneSuffixClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GetPrivateDNSZoneSuffixClient) Execute ¶
func (client *GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context, options *GetPrivateDNSZoneSuffixClientExecuteOptions) (GetPrivateDNSZoneSuffixClientExecuteResponse, error)
Execute - Get private DNS zone suffix in the cloud If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- options - GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/GetPrivateDnsZoneSuffix.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGetPrivateDNSZoneSuffixClient().Execute(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Value = "postgres.database.azure.com"
type GetPrivateDNSZoneSuffixClientExecuteOptions ¶
type GetPrivateDNSZoneSuffixClientExecuteOptions struct { }
GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute method.
type GetPrivateDNSZoneSuffixClientExecuteResponse ¶
type GetPrivateDNSZoneSuffixClientExecuteResponse struct { // Represents a resource name availability. Value *string }
GetPrivateDNSZoneSuffixClientExecuteResponse contains the response from method GetPrivateDNSZoneSuffixClient.Execute.
type HaMode ¶
type HaMode string
HaMode - HA mode supported for a server.
func PossibleHaModeValues ¶
func PossibleHaModeValues() []HaMode
PossibleHaModeValues returns the possible values for the HaMode const type.
type HighAvailability ¶
type HighAvailability struct { // The HA mode for the server. Mode *HighAvailabilityMode // availability zone information of the standby. StandbyAvailabilityZone *string // READ-ONLY; A state of a HA server that is visible to user. State *ServerHAState }
HighAvailability - High availability properties of a server
func (HighAvailability) MarshalJSON ¶
func (h HighAvailability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HighAvailability.
func (*HighAvailability) UnmarshalJSON ¶
func (h *HighAvailability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HighAvailability.
type HighAvailabilityMode ¶
type HighAvailabilityMode string
HighAvailabilityMode - The HA mode for the server.
const ( HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" )
func PossibleHighAvailabilityModeValues ¶
func PossibleHighAvailabilityModeValues() []HighAvailabilityMode
PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type.
type IdentityType ¶
type IdentityType string
IdentityType - the types of identities associated with this resource
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
type ImpactRecord ¶
type ImpactRecord struct { // Absolute value AbsoluteValue *float64 // Dimension name DimensionName *string // Optional property that can be used to store the QueryId if the metric is for a specific query. QueryID *int64 // Dimension unit Unit *string }
ImpactRecord - Stores property that features impact on some metric if this recommended action is applied.
func (ImpactRecord) MarshalJSON ¶
func (i ImpactRecord) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImpactRecord.
func (*ImpactRecord) UnmarshalJSON ¶
func (i *ImpactRecord) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImpactRecord.
type IndexRecommendationDetails ¶
type IndexRecommendationDetails struct { // Database name. DatabaseName *string // Index included columns. IncludedColumns []*string // Index columns. IndexColumns []*string // Index name. IndexName *string // Index type. IndexType *string // Schema name. Schema *string // Table name. Table *string }
IndexRecommendationDetails - Recommendation details for the recommended action.
func (IndexRecommendationDetails) MarshalJSON ¶
func (i IndexRecommendationDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationDetails.
func (*IndexRecommendationDetails) UnmarshalJSON ¶
func (i *IndexRecommendationDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationDetails.
type IndexRecommendationListResult ¶
type IndexRecommendationListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // A list of available index recommendations. Value []*IndexRecommendationResource }
IndexRecommendationListResult - A list of available index recommendations.
func (IndexRecommendationListResult) MarshalJSON ¶
func (i IndexRecommendationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationListResult.
func (*IndexRecommendationListResult) UnmarshalJSON ¶
func (i *IndexRecommendationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationListResult.
type IndexRecommendationResource ¶
type IndexRecommendationResource struct { // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Properties of IndexRecommendationResource. Properties *IndexRecommendationResourceProperties // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
IndexRecommendationResource - Index recommendation properties.
func (IndexRecommendationResource) MarshalJSON ¶
func (i IndexRecommendationResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationResource.
func (*IndexRecommendationResource) UnmarshalJSON ¶
func (i *IndexRecommendationResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationResource.
type IndexRecommendationResourceProperties ¶
type IndexRecommendationResourceProperties struct { // Stores workload information for the recommended action. AnalyzedWorkload *IndexRecommendationResourcePropertiesAnalyzedWorkload // Stores implementation details for the recommended action. ImplementationDetails *IndexRecommendationResourcePropertiesImplementationDetails // The ImprovedQueryIds. The list will only be populated for CREATE INDEX recommendations. ImprovedQueryIDs []*int64 // Creation time of this recommendation in UTC date-time string format. InitialRecommendedTime *time.Time // The last refresh of this recommendation in UTC date-time string format. LastRecommendedTime *time.Time // Reason for this recommendation. RecommendationReason *string // Type for this recommendation. RecommendationType *RecommendationTypeEnum // The number of times this recommendation has encountered. TimesRecommended *int32 // READ-ONLY; Stores recommendation details for the recommended action. Details *IndexRecommendationDetails // READ-ONLY; The estimated impact of this recommended action EstimatedImpact []*ImpactRecord }
IndexRecommendationResourceProperties - Index recommendation properties.
func (IndexRecommendationResourceProperties) MarshalJSON ¶
func (i IndexRecommendationResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationResourceProperties.
func (*IndexRecommendationResourceProperties) UnmarshalJSON ¶
func (i *IndexRecommendationResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationResourceProperties.
type IndexRecommendationResourcePropertiesAnalyzedWorkload ¶
type IndexRecommendationResourcePropertiesAnalyzedWorkload struct { // Workload end time in UTC date-time string format. EndTime *time.Time // Workload query examined count. For DROP INDEX will be 0. QueryCount *int32 // Workload start time in UTC date-time string format. StartTime *time.Time }
IndexRecommendationResourcePropertiesAnalyzedWorkload - Stores workload information for the recommended action.
func (IndexRecommendationResourcePropertiesAnalyzedWorkload) MarshalJSON ¶
func (i IndexRecommendationResourcePropertiesAnalyzedWorkload) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationResourcePropertiesAnalyzedWorkload.
func (*IndexRecommendationResourcePropertiesAnalyzedWorkload) UnmarshalJSON ¶
func (i *IndexRecommendationResourcePropertiesAnalyzedWorkload) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationResourcePropertiesAnalyzedWorkload.
type IndexRecommendationResourcePropertiesImplementationDetails ¶
type IndexRecommendationResourcePropertiesImplementationDetails struct { // Method of implementation for recommended action Method *string // Implementation script for the recommended action Script *string }
IndexRecommendationResourcePropertiesImplementationDetails - Stores implementation details for the recommended action.
func (IndexRecommendationResourcePropertiesImplementationDetails) MarshalJSON ¶
func (i IndexRecommendationResourcePropertiesImplementationDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IndexRecommendationResourcePropertiesImplementationDetails.
func (*IndexRecommendationResourcePropertiesImplementationDetails) UnmarshalJSON ¶
func (i *IndexRecommendationResourcePropertiesImplementationDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IndexRecommendationResourcePropertiesImplementationDetails.
type KeyStatusEnum ¶
type KeyStatusEnum string
KeyStatusEnum - Primary encryption key status for Data encryption enabled server.
const ( KeyStatusEnumInvalid KeyStatusEnum = "Invalid" KeyStatusEnumValid KeyStatusEnum = "Valid" )
func PossibleKeyStatusEnumValues ¶
func PossibleKeyStatusEnumValues() []KeyStatusEnum
PossibleKeyStatusEnumValues returns the possible values for the KeyStatusEnum const type.
type LocationBasedCapabilitiesClient ¶
type LocationBasedCapabilitiesClient struct {
// contains filtered or unexported fields
}
LocationBasedCapabilitiesClient contains the methods for the LocationBasedCapabilities group. Don't use this type directly, use NewLocationBasedCapabilitiesClient() instead.
func NewLocationBasedCapabilitiesClient ¶
func NewLocationBasedCapabilitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocationBasedCapabilitiesClient, error)
NewLocationBasedCapabilitiesClient creates a new instance of LocationBasedCapabilitiesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LocationBasedCapabilitiesClient) NewExecutePager ¶
func (client *LocationBasedCapabilitiesClient) NewExecutePager(locationName string, options *LocationBasedCapabilitiesClientExecuteOptions) *runtime.Pager[LocationBasedCapabilitiesClientExecuteResponse]
NewExecutePager - Get capabilities at specified location in a given subscription.
Generated from API version 2025-01-01-preview
- locationName - The name of the location.
- options - LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/CapabilitiesByLocation.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLocationBasedCapabilitiesClient().NewExecutePager("eastus", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CapabilitiesListResult = armpostgresqlflexibleservers.CapabilitiesListResult{ // Value: []*armpostgresqlflexibleservers.FlexibleServerCapability{ // { // Name: to.Ptr("FlexibleServerCapabilities"), // FastProvisioningSupported: to.Ptr(armpostgresqlflexibleservers.FastProvisioningSupportedEnumEnabled), // GeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.GeoBackupSupportedEnumEnabled), // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumEnabled), // StorageAutoGrowthSupported: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowthSupportedEnumEnabled), // SupportedFastProvisioningEditions: []*armpostgresqlflexibleservers.FastProvisioningEditionCapability{ // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }}, // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // { // Name: to.Ptr("FastProvisioning"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("ZoneRedundantHa"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("GeoBackup"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("ZoneRedundantHaAndGeoBackup"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("StorageAutoGrowth"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("OnlineResize"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("OfferRestricted"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumDisabled), // }, // { // Name: to.Ptr("IndexTuning"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("Clusters"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("ConfigTuning"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumDisabled), // }}, // SupportedServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // DefaultSKUName: to.Ptr("Standard_B1ms"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_B1ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](640), // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](1), // }, // { // Name: to.Ptr("Standard_B2s"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](1280), // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_B2ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](1920), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_B4ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](2880), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_B8ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_B12ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](12), // }, // { // Name: to.Ptr("Standard_B16ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_B20ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // DefaultSKUName: to.Ptr("Standard_D4ds_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D2ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D96ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }, // { // Name: to.Ptr("Standard_D2ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3750), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D96ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }, // { // Name: to.Ptr("UltraDisk"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](4800), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](400000), // SupportedMaximumThroughput: to.Ptr[int32](10000), // SupportedThroughput: to.Ptr[int32](1200), // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // DefaultSKUName: to.Ptr("Standard_E4ds_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E2ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3750), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E20ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }, // { // Name: to.Ptr("Standard_E32ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E96ads_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }, // { // Name: to.Ptr("Standard_E2ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3750), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E20ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }, // { // Name: to.Ptr("Standard_E32ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E96ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }, // { // Name: to.Ptr("UltraDisk"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](4800), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](400000), // SupportedMaximumThroughput: to.Ptr[int32](10000), // SupportedThroughput: to.Ptr[int32](1200), // }}, // }}, // }}, // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("12"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("13"), // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("13"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("14"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("15"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("16")}, // }, // { // Name: to.Ptr("16"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // }, // }, // { // Name: to.Ptr("17"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // }, // }}, // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), // }}, // } }
type LocationBasedCapabilitiesClientExecuteOptions ¶
type LocationBasedCapabilitiesClientExecuteOptions struct { }
LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager method.
type LocationBasedCapabilitiesClientExecuteResponse ¶
type LocationBasedCapabilitiesClientExecuteResponse struct { // Capability for the PostgreSQL server CapabilitiesListResult }
LocationBasedCapabilitiesClientExecuteResponse contains the response from method LocationBasedCapabilitiesClient.NewExecutePager.
type LogFile ¶
type LogFile struct { // The properties of a logFile. Properties *LogFileProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
LogFile - Represents a logFile.
func (LogFile) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type LogFile.
func (*LogFile) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type LogFile.
type LogFileListResult ¶
type LogFileListResult struct { // The link used to get the next page of operations. NextLink *string // The list of logFiles in a server Value []*LogFile }
LogFileListResult - A List of logFiles.
func (LogFileListResult) MarshalJSON ¶
func (l LogFileListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogFileListResult.
func (*LogFileListResult) UnmarshalJSON ¶
func (l *LogFileListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogFileListResult.
type LogFileProperties ¶
type LogFileProperties struct { // Creation timestamp of the log file. CreatedTime *time.Time // Last modified timestamp of the log file. LastModifiedTime *time.Time // The size in kb of the logFile. SizeInKb *int64 // Type of the log file. Type *string // The url to download the log file from. URL *string }
LogFileProperties - The properties of a logFile.
func (LogFileProperties) MarshalJSON ¶
func (l LogFileProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogFileProperties.
func (*LogFileProperties) UnmarshalJSON ¶
func (l *LogFileProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogFileProperties.
type LogFilesClient ¶
type LogFilesClient struct {
// contains filtered or unexported fields
}
LogFilesClient contains the methods for the LogFiles group. Don't use this type directly, use NewLogFilesClient() instead.
func NewLogFilesClient ¶
func NewLogFilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LogFilesClient, error)
NewLogFilesClient creates a new instance of LogFilesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LogFilesClient) NewListByServerPager ¶
func (client *LogFilesClient) NewListByServerPager(resourceGroupName string, serverName string, options *LogFilesClientListByServerOptions) *runtime.Pager[LogFilesClientListByServerResponse]
NewListByServerPager - List all the server log files in a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - LogFilesClientListByServerOptions contains the optional parameters for the LogFilesClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/LogFilesListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLogFilesClient().NewListByServerPager("testrg", "postgresqltestsvc1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.LogFileListResult = armpostgresqlflexibleservers.LogFileListResult{ // Value: []*armpostgresqlflexibleservers.LogFile{ // { // Name: to.Ptr("postgresql-slow-postgresqltestsvc1-2018022823.log"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/logFiles"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestsvc1/logFiles/postgresql-slow-postgresqltestsvc1-2018022823.log"), // Properties: &armpostgresqlflexibleservers.LogFileProperties{ // Type: to.Ptr("slowlog"), // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()), // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-01T06:09:20.000Z"); return t}()), // SizeInKb: to.Ptr[int64](1), // URL: to.Ptr("https://wasd2prodwus1afse42.file.core.windows.net/833c99b2f36c47349e5554b903fe0440/serverlogs/postgresql-slow-postgresqltestsvc1-2018022823.log?sv=2015-04-05&sr=f&se=2018-03-01T07%3A12%3A13Z&sp=r"), // }, // }}, // } }
type LogFilesClientListByServerOptions ¶
type LogFilesClientListByServerOptions struct { }
LogFilesClientListByServerOptions contains the optional parameters for the LogFilesClient.NewListByServerPager method.
type LogFilesClientListByServerResponse ¶
type LogFilesClientListByServerResponse struct { // A List of logFiles. LogFileListResult }
LogFilesClientListByServerResponse contains the response from method LogFilesClient.NewListByServerPager.
type LogicalReplicationOnSourceDbEnum ¶
type LogicalReplicationOnSourceDbEnum string
LogicalReplicationOnSourceDbEnum - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
const ( LogicalReplicationOnSourceDbEnumFalse LogicalReplicationOnSourceDbEnum = "False" LogicalReplicationOnSourceDbEnumTrue LogicalReplicationOnSourceDbEnum = "True" )
func PossibleLogicalReplicationOnSourceDbEnumValues ¶
func PossibleLogicalReplicationOnSourceDbEnumValues() []LogicalReplicationOnSourceDbEnum
PossibleLogicalReplicationOnSourceDbEnumValues returns the possible values for the LogicalReplicationOnSourceDbEnum const type.
type LtrBackupOperationResponseProperties ¶
type LtrBackupOperationResponseProperties struct { // REQUIRED; Start time of the operation. StartTime *time.Time // REQUIRED; Service-set extensible enum indicating the status of operation Status *ExecutionStatus // Metadata to be stored in RP. Store everything that will be required to perform a successful restore using this Recovery // point. e.g. Versions, DataFormat etc BackupMetadata *string // Name of Backup operation BackupName *string // Data transferred in bytes DataTransferredInBytes *int64 // Size of datasource in bytes DatasourceSizeInBytes *int64 // End time of the operation. EndTime *time.Time // PercentageCompleted PercentComplete *float64 // READ-ONLY; The error code. ErrorCode *string // READ-ONLY; The error message. ErrorMessage *string }
LtrBackupOperationResponseProperties - Response for the backup request.
func (LtrBackupOperationResponseProperties) MarshalJSON ¶
func (l LtrBackupOperationResponseProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrBackupOperationResponseProperties.
func (*LtrBackupOperationResponseProperties) UnmarshalJSON ¶
func (l *LtrBackupOperationResponseProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrBackupOperationResponseProperties.
type LtrBackupOperationsClient ¶
type LtrBackupOperationsClient struct {
// contains filtered or unexported fields
}
LtrBackupOperationsClient contains the methods for the LtrBackupOperations group. Don't use this type directly, use NewLtrBackupOperationsClient() instead.
func NewLtrBackupOperationsClient ¶
func NewLtrBackupOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LtrBackupOperationsClient, error)
NewLtrBackupOperationsClient creates a new instance of LtrBackupOperationsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LtrBackupOperationsClient) Get ¶
func (client *LtrBackupOperationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *LtrBackupOperationsClientGetOptions) (LtrBackupOperationsClientGetResponse, error)
Get - Gets the result of the give long term retention backup operation for the flexible server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- backupName - The name of the backup.
- options - LtrBackupOperationsClientGetOptions contains the optional parameters for the LtrBackupOperationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/LongTermRetentionOperationGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewLtrBackupOperationsClient().Get(ctx, "rgLongTermRetention", "pgsqlltrtestserver", "backup1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.LtrServerBackupOperation = armpostgresqlflexibleservers.LtrServerBackupOperation{ // Name: to.Ptr("backup1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/ltrbackupOperations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/rgLongTermRetention/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsqlltrtestserver"), // Properties: &armpostgresqlflexibleservers.LtrBackupOperationResponseProperties{ // BackupMetadata: to.Ptr("backupMetadata"), // BackupName: to.Ptr("backup1"), // DataTransferredInBytes: to.Ptr[int64](9), // DatasourceSizeInBytes: to.Ptr[int64](21), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // PercentComplete: to.Ptr[float64](4), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // Status: to.Ptr(armpostgresqlflexibleservers.ExecutionStatusRunning), // }, // }
func (*LtrBackupOperationsClient) NewListByServerPager ¶
func (client *LtrBackupOperationsClient) NewListByServerPager(resourceGroupName string, serverName string, options *LtrBackupOperationsClientListByServerOptions) *runtime.Pager[LtrBackupOperationsClientListByServerResponse]
NewListByServerPager - Gets the result of the give long term retention backup operations for the flexible server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - LtrBackupOperationsClientListByServerOptions contains the optional parameters for the LtrBackupOperationsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/LongTermRetentionOperationListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLtrBackupOperationsClient().NewListByServerPager("rgLongTermRetention", "pgsqlltrtestserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.LtrServerBackupOperationList = armpostgresqlflexibleservers.LtrServerBackupOperationList{ // Value: []*armpostgresqlflexibleservers.LtrServerBackupOperation{ // { // Name: to.Ptr("backup1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/ltrbackupOperations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/rgLongTermRetention/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsqlltrtestserver"), // Properties: &armpostgresqlflexibleservers.LtrBackupOperationResponseProperties{ // BackupMetadata: to.Ptr("backupMetadata"), // BackupName: to.Ptr("backup1"), // DataTransferredInBytes: to.Ptr[int64](9), // DatasourceSizeInBytes: to.Ptr[int64](21), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // PercentComplete: to.Ptr[float64](4), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-13T01:32:30.128Z"); return t}()), // Status: to.Ptr(armpostgresqlflexibleservers.ExecutionStatusRunning), // }, // }}, // } }
type LtrBackupOperationsClientGetOptions ¶
type LtrBackupOperationsClientGetOptions struct { }
LtrBackupOperationsClientGetOptions contains the optional parameters for the LtrBackupOperationsClient.Get method.
type LtrBackupOperationsClientGetResponse ¶
type LtrBackupOperationsClientGetResponse struct { // Response for the LTR backup Operation API call LtrServerBackupOperation }
LtrBackupOperationsClientGetResponse contains the response from method LtrBackupOperationsClient.Get.
type LtrBackupOperationsClientListByServerOptions ¶
type LtrBackupOperationsClientListByServerOptions struct { }
LtrBackupOperationsClientListByServerOptions contains the optional parameters for the LtrBackupOperationsClient.NewListByServerPager method.
type LtrBackupOperationsClientListByServerResponse ¶
type LtrBackupOperationsClientListByServerResponse struct { // A list of long term retention backup operations for server. LtrServerBackupOperationList }
LtrBackupOperationsClientListByServerResponse contains the response from method LtrBackupOperationsClient.NewListByServerPager.
type LtrBackupRequest ¶
type LtrBackupRequest struct { // REQUIRED; Backup Settings BackupSettings *BackupSettings // REQUIRED; Backup store detail for target server TargetDetails *BackupStoreDetails }
LtrBackupRequest - The request that is made for a long term retention backup.
func (LtrBackupRequest) MarshalJSON ¶
func (l LtrBackupRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrBackupRequest.
func (*LtrBackupRequest) UnmarshalJSON ¶
func (l *LtrBackupRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrBackupRequest.
type LtrBackupResponse ¶
type LtrBackupResponse struct { // Long Term Retention Backup Operation Resource Properties Properties *LtrBackupOperationResponseProperties }
LtrBackupResponse - Response for the LTR backup API call
func (LtrBackupResponse) MarshalJSON ¶
func (l LtrBackupResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrBackupResponse.
func (*LtrBackupResponse) UnmarshalJSON ¶
func (l *LtrBackupResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrBackupResponse.
type LtrPreBackupRequest ¶
type LtrPreBackupRequest struct { // REQUIRED; Backup Settings BackupSettings *BackupSettings }
LtrPreBackupRequest - A request that is made for pre-backup.
func (LtrPreBackupRequest) MarshalJSON ¶
func (l LtrPreBackupRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrPreBackupRequest.
func (*LtrPreBackupRequest) UnmarshalJSON ¶
func (l *LtrPreBackupRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrPreBackupRequest.
type LtrPreBackupResponse ¶
type LtrPreBackupResponse struct { // REQUIRED; Additional Properties for the pre backup response Properties *LtrPreBackupResponseProperties }
LtrPreBackupResponse - Response for the LTR pre-backup API call
func (LtrPreBackupResponse) MarshalJSON ¶
func (l LtrPreBackupResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrPreBackupResponse.
func (*LtrPreBackupResponse) UnmarshalJSON ¶
func (l *LtrPreBackupResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrPreBackupResponse.
type LtrPreBackupResponseProperties ¶
type LtrPreBackupResponseProperties struct { // REQUIRED; Number of storage containers the plugin will use during backup. More than one containers may be used for size // limitations, parallelism, or redundancy etc. NumberOfContainers *int32 }
LtrPreBackupResponseProperties - Response for the pre-backup request.
func (LtrPreBackupResponseProperties) MarshalJSON ¶
func (l LtrPreBackupResponseProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrPreBackupResponseProperties.
func (*LtrPreBackupResponseProperties) UnmarshalJSON ¶
func (l *LtrPreBackupResponseProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrPreBackupResponseProperties.
type LtrServerBackupOperation ¶
type LtrServerBackupOperation struct { // Long Term Retention Backup Operation Resource Properties Properties *LtrBackupOperationResponseProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
LtrServerBackupOperation - Response for the LTR backup Operation API call
func (LtrServerBackupOperation) MarshalJSON ¶
func (l LtrServerBackupOperation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrServerBackupOperation.
func (*LtrServerBackupOperation) UnmarshalJSON ¶
func (l *LtrServerBackupOperation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrServerBackupOperation.
type LtrServerBackupOperationList ¶
type LtrServerBackupOperationList struct { // The link used to get the next page of operations. NextLink *string // The list of long term retention server backup operations Value []*LtrServerBackupOperation }
LtrServerBackupOperationList - A list of long term retention backup operations for server.
func (LtrServerBackupOperationList) MarshalJSON ¶
func (l LtrServerBackupOperationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LtrServerBackupOperationList.
func (*LtrServerBackupOperationList) UnmarshalJSON ¶
func (l *LtrServerBackupOperationList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LtrServerBackupOperationList.
type MaintenanceWindow ¶
type MaintenanceWindow struct { // indicates whether custom window is enabled or disabled CustomWindow *string // day of week for maintenance window DayOfWeek *int32 // start hour for maintenance window StartHour *int32 // start minute for maintenance window StartMinute *int32 }
MaintenanceWindow - Maintenance window properties of a server.
func (MaintenanceWindow) MarshalJSON ¶
func (m MaintenanceWindow) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MaintenanceWindow.
func (*MaintenanceWindow) UnmarshalJSON ¶
func (m *MaintenanceWindow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindow.
type MigrateRolesEnum ¶
type MigrateRolesEnum string
MigrateRolesEnum - To migrate roles and permissions we need to send this flag as True
const ( MigrateRolesEnumFalse MigrateRolesEnum = "False" MigrateRolesEnumTrue MigrateRolesEnum = "True" )
func PossibleMigrateRolesEnumValues ¶
func PossibleMigrateRolesEnumValues() []MigrateRolesEnum
PossibleMigrateRolesEnumValues returns the possible values for the MigrateRolesEnum const type.
type MigrationDbState ¶
type MigrationDbState string
MigrationDbState - Migration db state of an individual database
const ( MigrationDbStateCanceled MigrationDbState = "Canceled" MigrationDbStateCanceling MigrationDbState = "Canceling" MigrationDbStateFailed MigrationDbState = "Failed" MigrationDbStateInProgress MigrationDbState = "InProgress" MigrationDbStateSucceeded MigrationDbState = "Succeeded" MigrationDbStateWaitingForCutoverTrigger MigrationDbState = "WaitingForCutoverTrigger" )
func PossibleMigrationDbStateValues ¶
func PossibleMigrationDbStateValues() []MigrationDbState
PossibleMigrationDbStateValues returns the possible values for the MigrationDbState const type.
type MigrationListFilter ¶
type MigrationListFilter string
const ( MigrationListFilterActive MigrationListFilter = "Active" MigrationListFilterAll MigrationListFilter = "All" )
func PossibleMigrationListFilterValues ¶
func PossibleMigrationListFilterValues() []MigrationListFilter
PossibleMigrationListFilterValues returns the possible values for the MigrationListFilter const type.
type MigrationMode ¶
type MigrationMode string
MigrationMode - There are two types of migration modes Online and Offline
const ( MigrationModeOffline MigrationMode = "Offline" MigrationModeOnline MigrationMode = "Online" )
func PossibleMigrationModeValues ¶
func PossibleMigrationModeValues() []MigrationMode
PossibleMigrationModeValues returns the possible values for the MigrationMode const type.
type MigrationNameAvailabilityReason ¶
type MigrationNameAvailabilityReason string
MigrationNameAvailabilityReason - Migration name availability reason.
const ( MigrationNameAvailabilityReasonAlreadyExists MigrationNameAvailabilityReason = "AlreadyExists" MigrationNameAvailabilityReasonInvalid MigrationNameAvailabilityReason = "Invalid" )
func PossibleMigrationNameAvailabilityReasonValues ¶
func PossibleMigrationNameAvailabilityReasonValues() []MigrationNameAvailabilityReason
PossibleMigrationNameAvailabilityReasonValues returns the possible values for the MigrationNameAvailabilityReason const type.
type MigrationNameAvailabilityResource ¶
type MigrationNameAvailabilityResource struct { // REQUIRED; The resource name to verify. Name *string // REQUIRED; The type of the resource. Type *string // READ-ONLY; Migration name availability message. Message *string // READ-ONLY; Indicates whether the resource name is available. NameAvailable *bool // READ-ONLY; Migration name availability reason Reason *MigrationNameAvailabilityReason }
MigrationNameAvailabilityResource - Represents a migration name's availability.
func (MigrationNameAvailabilityResource) MarshalJSON ¶
func (m MigrationNameAvailabilityResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationNameAvailabilityResource.
func (*MigrationNameAvailabilityResource) UnmarshalJSON ¶
func (m *MigrationNameAvailabilityResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationNameAvailabilityResource.
type MigrationOption ¶
type MigrationOption string
MigrationOption - Supported types of migration request include Validate, Migrate and ValidateAndMigrate
const ( MigrationOptionMigrate MigrationOption = "Migrate" MigrationOptionValidate MigrationOption = "Validate" MigrationOptionValidateAndMigrate MigrationOption = "ValidateAndMigrate" )
func PossibleMigrationOptionValues ¶
func PossibleMigrationOptionValues() []MigrationOption
PossibleMigrationOptionValues returns the possible values for the MigrationOption const type.
type MigrationResource ¶
type MigrationResource struct { // REQUIRED; The geo-location where the resource lives Location *string // Migration resource properties. Properties *MigrationResourceProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
MigrationResource - Represents a migration resource.
func (MigrationResource) MarshalJSON ¶
func (m MigrationResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationResource.
func (*MigrationResource) UnmarshalJSON ¶
func (m *MigrationResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationResource.
type MigrationResourceForPatch ¶
type MigrationResourceForPatch struct { // Migration resource properties. Properties *MigrationResourcePropertiesForPatch // Application-specific metadata in the form of key-value pairs. Tags map[string]*string }
MigrationResourceForPatch - Represents a migration resource for patch.
func (MigrationResourceForPatch) MarshalJSON ¶
func (m MigrationResourceForPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationResourceForPatch.
func (*MigrationResourceForPatch) UnmarshalJSON ¶
func (m *MigrationResourceForPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationResourceForPatch.
type MigrationResourceListResult ¶
type MigrationResourceListResult struct { // READ-ONLY; The link used to get the next page of migrations. NextLink *string // READ-ONLY; A list of migration resources. Value []*MigrationResource }
MigrationResourceListResult - A list of migration resources.
func (MigrationResourceListResult) MarshalJSON ¶
func (m MigrationResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationResourceListResult.
func (*MigrationResourceListResult) UnmarshalJSON ¶
func (m *MigrationResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationResourceListResult.
type MigrationResourceProperties ¶
type MigrationResourceProperties struct { // To trigger cancel for entire migration we need to send this flag as True Cancel *CancelEnum // When you want to trigger cancel for specific databases send cancel flag as True and database names in this array DbsToCancelMigrationOn []*string // Number of databases to migrate DbsToMigrate []*string // When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array DbsToTriggerCutoverOn []*string // To migrate roles and permissions we need to send this flag as True MigrateRoles *MigrateRolesEnum // ResourceId of the private endpoint migration instance MigrationInstanceResourceID *string // There are two types of migration modes Online and Offline MigrationMode *MigrationMode // This indicates the supported Migration option for the migration MigrationOption *MigrationOption // End time in UTC for migration window MigrationWindowEndTimeInUTC *time.Time // Start time in UTC for migration window MigrationWindowStartTimeInUTC *time.Time // Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration // workflow will wait for a confirmation, if it detects that the database // already exists. OverwriteDbsInTarget *OverwriteDbsInTargetEnum // SSL modes for migration. Default SSL mode for PostgreSQLSingleServer is VerifyFull and Prefer for other source types SSLMode *SSLMode // Migration secret parameters SecretParameters *MigrationSecretParameters // Indicates whether to setup LogicalReplicationOnSourceDb, if needed SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum // Source server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration // service will always use it for connection SourceDbServerFullyQualifiedDomainName *string // ResourceId of the source database server in case the sourceType is PostgreSQLSingleServer. For other source types this // should be ipaddress:port@username or hostname:port@username SourceDbServerResourceID *string // migration source server type : OnPremises, AWS, GCP, AzureVM, PostgreSQLSingleServer, AWSRDS, AWSAURORA, AWSEC2, GCPCloudSQL, // GCPAlloyDB, GCPCompute, EDB, EDBOracleServer, EDBPostgreSQL, // PostgreSQLFlexibleServer, PostgreSQLCosmosDB, HuaweiRDS, HuaweiCompute, HerokuPostgreSQL, CrunchyPostgreSQL, ApsaraDBRDS, // DigitalOceanDroplets, DigitalOceanPostgreSQL, or Supabase_PostgreSQL SourceType *SourceType // Indicates whether the data migration should start right away StartDataMigration *StartDataMigrationEnum // Target server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration // service will always use it for connection TargetDbServerFullyQualifiedDomainName *string // To trigger cutover for entire migration we need to send this flag as True TriggerCutover *TriggerCutoverEnum // READ-ONLY; Current status of migration CurrentStatus *MigrationStatus // READ-ONLY; ID for migration, a GUID. MigrationID *string // READ-ONLY; Metadata of the source database server SourceDbServerMetadata *DbServerMetadata // READ-ONLY; Metadata of the target database server TargetDbServerMetadata *DbServerMetadata // READ-ONLY; ResourceId of the source database server TargetDbServerResourceID *string }
MigrationResourceProperties - Migration resource properties.
func (MigrationResourceProperties) MarshalJSON ¶
func (m MigrationResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationResourceProperties.
func (*MigrationResourceProperties) UnmarshalJSON ¶
func (m *MigrationResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationResourceProperties.
type MigrationResourcePropertiesForPatch ¶
type MigrationResourcePropertiesForPatch struct { // To trigger cancel for entire migration we need to send this flag as True Cancel *CancelEnum // When you want to trigger cancel for specific databases send cancel flag as True and database names in this array DbsToCancelMigrationOn []*string // Number of databases to migrate DbsToMigrate []*string // When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array DbsToTriggerCutoverOn []*string // To migrate roles and permissions we need to send this flag as True MigrateRoles *MigrateRolesEnum // There are two types of migration modes Online and Offline MigrationMode *MigrationMode // Start time in UTC for migration window MigrationWindowStartTimeInUTC *time.Time // Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration // workflow will wait for a confirmation, if it detects that the database // already exists. OverwriteDbsInTarget *OverwriteDbsInTargetEnum // Migration secret parameters SecretParameters *MigrationSecretParameters // Indicates whether to setup LogicalReplicationOnSourceDb, if needed SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum // Source server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration // service will always use it for connection SourceDbServerFullyQualifiedDomainName *string // ResourceId of the source database server SourceDbServerResourceID *string // Indicates whether the data migration should start right away StartDataMigration *StartDataMigrationEnum // Target server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration // service will always use it for connection TargetDbServerFullyQualifiedDomainName *string // To trigger cutover for entire migration we need to send this flag as True TriggerCutover *TriggerCutoverEnum }
MigrationResourcePropertiesForPatch - Migration resource properties for patch.
func (MigrationResourcePropertiesForPatch) MarshalJSON ¶
func (m MigrationResourcePropertiesForPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationResourcePropertiesForPatch.
func (*MigrationResourcePropertiesForPatch) UnmarshalJSON ¶
func (m *MigrationResourcePropertiesForPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationResourcePropertiesForPatch.
type MigrationSecretParameters ¶
type MigrationSecretParameters struct { // REQUIRED; Admin credentials for source and target servers AdminCredentials *AdminCredentials // Gets or sets the username for the source server. This user need not be an admin. SourceServerUsername *string // Gets or sets the username for the target server. This user need not be an admin. TargetServerUsername *string }
MigrationSecretParameters - Migration secret parameters.
func (MigrationSecretParameters) MarshalJSON ¶
func (m MigrationSecretParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationSecretParameters.
func (*MigrationSecretParameters) UnmarshalJSON ¶
func (m *MigrationSecretParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationSecretParameters.
type MigrationState ¶
type MigrationState string
MigrationState - Migration state.
const ( MigrationStateCanceled MigrationState = "Canceled" MigrationStateCleaningUp MigrationState = "CleaningUp" MigrationStateFailed MigrationState = "Failed" MigrationStateInProgress MigrationState = "InProgress" MigrationStateSucceeded MigrationState = "Succeeded" MigrationStateValidationFailed MigrationState = "ValidationFailed" MigrationStateWaitingForUserAction MigrationState = "WaitingForUserAction" )
func PossibleMigrationStateValues ¶
func PossibleMigrationStateValues() []MigrationState
PossibleMigrationStateValues returns the possible values for the MigrationState const type.
type MigrationStatus ¶
type MigrationStatus struct { // READ-ONLY; Current Migration sub state details. CurrentSubStateDetails *MigrationSubStateDetails // READ-ONLY; Error message, if any, for the migration state Error *string // READ-ONLY; State of migration State *MigrationState }
MigrationStatus - Migration status.
func (MigrationStatus) MarshalJSON ¶
func (m MigrationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationStatus.
func (*MigrationStatus) UnmarshalJSON ¶
func (m *MigrationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationStatus.
type MigrationSubState ¶
type MigrationSubState string
MigrationSubState - Migration sub state.
const ( MigrationSubStateCancelingRequestedDBMigrations MigrationSubState = "CancelingRequestedDBMigrations" MigrationSubStateCompleted MigrationSubState = "Completed" MigrationSubStateCompletingMigration MigrationSubState = "CompletingMigration" MigrationSubStateMigratingData MigrationSubState = "MigratingData" MigrationSubStatePerformingPreRequisiteSteps MigrationSubState = "PerformingPreRequisiteSteps" MigrationSubStateValidationInProgress MigrationSubState = "ValidationInProgress" MigrationSubStateWaitingForCutoverTrigger MigrationSubState = "WaitingForCutoverTrigger" MigrationSubStateWaitingForDBsToMigrateSpecification MigrationSubState = "WaitingForDBsToMigrateSpecification" MigrationSubStateWaitingForDataMigrationScheduling MigrationSubState = "WaitingForDataMigrationScheduling" MigrationSubStateWaitingForDataMigrationWindow MigrationSubState = "WaitingForDataMigrationWindow" MigrationSubStateWaitingForLogicalReplicationSetupRequestOnSourceDB MigrationSubState = "WaitingForLogicalReplicationSetupRequestOnSourceDB" MigrationSubStateWaitingForTargetDBOverwriteConfirmation MigrationSubState = "WaitingForTargetDBOverwriteConfirmation" )
func PossibleMigrationSubStateValues ¶
func PossibleMigrationSubStateValues() []MigrationSubState
PossibleMigrationSubStateValues returns the possible values for the MigrationSubState const type.
type MigrationSubStateDetails ¶
type MigrationSubStateDetails struct { // Dictionary of DbDetails map[string]*DbMigrationStatus // Details for the validation for migration ValidationDetails *ValidationDetails // READ-ONLY; Migration sub state. CurrentSubState *MigrationSubState }
MigrationSubStateDetails - Migration sub state details.
func (MigrationSubStateDetails) MarshalJSON ¶
func (m MigrationSubStateDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MigrationSubStateDetails.
func (*MigrationSubStateDetails) UnmarshalJSON ¶
func (m *MigrationSubStateDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MigrationSubStateDetails.
type MigrationsClient ¶
type MigrationsClient struct {
// contains filtered or unexported fields
}
MigrationsClient contains the methods for the Migrations group. Don't use this type directly, use NewMigrationsClient() instead.
func NewMigrationsClient ¶
func NewMigrationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*MigrationsClient, error)
NewMigrationsClient creates a new instance of MigrationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*MigrationsClient) Create ¶
func (client *MigrationsClient) Create(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, migrationName string, parameters MigrationResource, options *MigrationsClientCreateOptions) (MigrationsClientCreateResponse, error)
Create - Creates a new migration. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- migrationName - The name of the migration.
- parameters - The required parameters for creating a migration.
- options - MigrationsClientCreateOptions contains the optional parameters for the MigrationsClient.Create method.
Example (CreateMigrationWithOtherSourceTypesForValidateAndMigrate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_Other_SourceTypes_Validate_Migrate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidateAndMigrate), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerResourceID: to.Ptr("testsource:5432@pguser"), SourceType: to.Ptr(armpostgresqlflexibleservers.SourceTypeOnPremises), SSLMode: to.Ptr(armpostgresqlflexibleservers.SSLModePrefer), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateValidationInProgress), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidateAndMigrate), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("testsource:5432@pguser"), // SourceType: to.Ptr(armpostgresqlflexibleservers.SourceTypeOnPremises), // SSLMode: to.Ptr(armpostgresqlflexibleservers.SSLModePrefer), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (CreatePreMigrationValidation) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_Validate_Only.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidate), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateValidationInProgress), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidate), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsCreate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsCreateByPassingUserNames) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_With_Other_Users.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, SourceServerUsername: to.Ptr("newadmin@testsource"), TargetServerUsername: to.Ptr("targetadmin"), }, SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumFalse), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsCreateWithFullyQualifiedDomainName) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_With_FullyQualifiedDomainName.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerFullyQualifiedDomainName: to.Ptr("testsourcefqdn.example.com"), SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), TargetDbServerFullyQualifiedDomainName: to.Ptr("test-target-fqdn.example.com"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-10T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerFullyQualifiedDomainName: to.Ptr("testsourcefqdn.example.com"), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerFullyQualifiedDomainName: to.Ptr("test-target-fqdn.example.com"), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsCreateWithPrivateEndpoint) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_With_PrivateEndpoint_Servers.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrationInstanceResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testsourcemigration"), MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationInstanceResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testsourcemigration"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsCreateWithRoles) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Create_With_Roles.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Create(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResource{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ DbsToMigrate: []*string{ to.Ptr("db1"), to.Ptr("db2"), to.Ptr("db3"), to.Ptr("db4")}, MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumTrue), MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), SecretParameters: &armpostgresqlflexibleservers.MigrationSecretParameters{ AdminCredentials: &armpostgresqlflexibleservers.AdminCredentials{ SourceServerPassword: to.Ptr("xxxxxxxx"), TargetServerPassword: to.Ptr("xxxxxxxx"), }, }, SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "key1624": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // }, // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumTrue), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
func (*MigrationsClient) Delete ¶
func (client *MigrationsClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, migrationName string, options *MigrationsClientDeleteOptions) (MigrationsClientDeleteResponse, error)
Delete - Deletes a migration. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- migrationName - The name of the migration.
- options - MigrationsClientDeleteOptions contains the optional parameters for the MigrationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewMigrationsClient().Delete(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) }
func (*MigrationsClient) Get ¶
func (client *MigrationsClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, migrationName string, options *MigrationsClientGetOptions) (MigrationsClientGetResponse, error)
Get - Gets details of a migration. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- migrationName - The name of the migration.
- options - MigrationsClientGetOptions contains the optional parameters for the MigrationsClient.Get method.
Example (MigrationsGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Get(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumFalse), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("B_Gen5_2"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Basic")), // }, // StorageMb: to.Ptr[int32](1024), // Version: to.Ptr("10"), // }, // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // StorageMb: to.Ptr[int32](2048), // Version: to.Ptr("16"), // }, // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
Example (MigrationsGetMigrationWithSuccessfulValidationAndMigration) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationAndMigration.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Get(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigrationwithsuccessfulvalidationandmigration", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigrationwithsuccessfulvalidationandmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigrationwithsuccessfulvalidationandmigration"), // Location: to.Ptr("eastus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateCompleted), // DbDetails: map[string]*armpostgresqlflexibleservers.DbMigrationStatus{ // "testdb3": &armpostgresqlflexibleservers.DbMigrationStatus{ // AppliedChanges: to.Ptr[int32](0), // CdcDeleteCounter: to.Ptr[int32](0), // CdcInsertCounter: to.Ptr[int32](0), // CdcUpdateCounter: to.Ptr[int32](0), // DatabaseName: to.Ptr("testdb3"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:55:49.681Z"); return t}()), // FullLoadCompletedTables: to.Ptr[int32](10), // FullLoadErroredTables: to.Ptr[int32](0), // FullLoadLoadingTables: to.Ptr[int32](0), // FullLoadQueuedTables: to.Ptr[int32](0), // IncomingChanges: to.Ptr[int32](0), // Latency: to.Ptr[int32](0), // MigrationState: to.Ptr(armpostgresqlflexibleservers.MigrationDbStateSucceeded), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:55:28.995Z"); return t}()), // }, // }, // ValidationDetails: &armpostgresqlflexibleservers.ValidationDetails{ // DbLevelValidationDetails: []*armpostgresqlflexibleservers.DbLevelValidationStatus{ // { // DatabaseName: to.Ptr("testdb3"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:54:29.894Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:54:29.553Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("CollationsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }}, // ServerLevelValidationDetails: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("AuthenticationAndConnectivityValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("SourceVersionValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ServerParametersValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // Status: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // ValidationEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:55:00.499Z"); return t}()), // ValidationStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:54:28.077Z"); return t}()), // }, // }, // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateSucceeded), // }, // DbsToMigrate: []*string{ // to.Ptr("testdb3")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("f2354e72-2828-4a19-ad20-b4cd9e2673c1"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidateAndMigrate), // MigrationWindowEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:57:30.736Z"); return t}()), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-12T05:54:15.999Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerResourceID: to.Ptr("20.228.214.65:5432@postgres"), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumTrue), // }, // }
Example (MigrationsGetMigrationWithSuccessfulValidationButMigrationFailure) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Get(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigrationwithsuccessfulvalidationbutmigrationfailure", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigrationwithsuccessfulvalidationbutmigrationfailure"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigrationwithsuccessfulvalidationbutmigrationfailure"), // Location: to.Ptr("eastus2"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateCompleted), // DbDetails: map[string]*armpostgresqlflexibleservers.DbMigrationStatus{ // "testdb6": &armpostgresqlflexibleservers.DbMigrationStatus{ // AppliedChanges: to.Ptr[int32](0), // CdcDeleteCounter: to.Ptr[int32](0), // CdcInsertCounter: to.Ptr[int32](0), // CdcUpdateCounter: to.Ptr[int32](0), // DatabaseName: to.Ptr("testdb6"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:09:53.252Z"); return t}()), // FullLoadCompletedTables: to.Ptr[int32](0), // FullLoadErroredTables: to.Ptr[int32](0), // FullLoadLoadingTables: to.Ptr[int32](0), // FullLoadQueuedTables: to.Ptr[int32](0), // IncomingChanges: to.Ptr[int32](0), // Latency: to.Ptr[int32](0), // Message: to.Ptr("Collation/Encoding not Supported Error: User defined Collations are present in the source database. Please drop them before retrying the migration."), // MigrationState: to.Ptr(armpostgresqlflexibleservers.MigrationDbStateFailed), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:09:52.922Z"); return t}()), // }, // }, // ValidationDetails: &armpostgresqlflexibleservers.ValidationDetails{ // DbLevelValidationDetails: []*armpostgresqlflexibleservers.DbLevelValidationStatus{ // { // DatabaseName: to.Ptr("address_standardizer"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:24.565Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:24.565Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }}, // ServerLevelValidationDetails: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("AuthenticationAndConnectivityValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // Status: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // ValidationEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:24.565Z"); return t}()), // ValidationStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:21.623Z"); return t}()), // }, // }, // Error: to.Ptr("testdb6: Collation/Encoding not Supported Error: User defined Collations are present in the source database. Please drop them before retrying the migration. "), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateFailed), // }, // DbsToMigrate: []*string{ // to.Ptr("testdb6")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("da52db29-cfeb-4670-a1ad-683edb14c621"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidateAndMigrate), // MigrationWindowEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:24.565Z"); return t}()), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-21T13:04:24.565Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("eastus2"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // }, // StorageMb: to.Ptr[int32](102400), // }, // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/source-rg/providers/Microsoft.DBforPostgreSQL/servers/testsource"), // TargetDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("East US 2"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("Standard_D2ds_v4"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Standard_D2ds_v4")), // }, // StorageMb: to.Ptr[int32](131072), // }, // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testtarget"), // }, // }
Example (MigrationsGetMigrationWithSuccessfulValidationOnly) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationOnly.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Get(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigrationwithsuccessfulvalidationonly", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigrationwithsuccessfulvalidationonly"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigrationwithsuccessfulvalidationonly"), // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateCompleted), // DbDetails: map[string]*armpostgresqlflexibleservers.DbMigrationStatus{ // }, // ValidationDetails: &armpostgresqlflexibleservers.ValidationDetails{ // DbLevelValidationDetails: []*armpostgresqlflexibleservers.DbLevelValidationStatus{ // { // DatabaseName: to.Ptr("UnknownCollationTest"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:29:39.248Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:29:38.904Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("CollationsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }}, // ServerLevelValidationDetails: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("AuthenticationAndConnectivityValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("SourceVersionValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ServerParametersValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // Status: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // ValidationEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:29:39.666Z"); return t}()), // ValidationStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:29:35.634Z"); return t}()), // }, // }, // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateSucceeded), // }, // DbsToMigrate: []*string{ // to.Ptr("UnknownCollationTest")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("77840327-7be8-44b8-adc0-af0ccccfeb36"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidate), // MigrationWindowEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:30:05.885Z"); return t}()), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-16T05:28:58.775Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerResourceID: to.Ptr("20.228.214.65:5432@postgres"), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumTrue), // }, // }
Example (MigrationsGetMigrationWithValidationFailures) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_GetMigrationWithValidationFailures.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Get(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigrationwithvalidationfailure", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigrationwithvalidationfailure"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testtarget/migrations/testmigrationwithvalidationfailure"), // Location: to.Ptr("East US"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateCompleted), // DbDetails: map[string]*armpostgresqlflexibleservers.DbMigrationStatus{ // }, // ValidationDetails: &armpostgresqlflexibleservers.ValidationDetails{ // DbLevelValidationDetails: []*armpostgresqlflexibleservers.DbLevelValidationStatus{ // { // DatabaseName: to.Ptr("c.utf-8"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // Messages: []*armpostgresqlflexibleservers.ValidationMessage{ // { // Message: to.Ptr("Unsupported Extension. Single to Flex migration tool does not support migration of databases having postgres_fdw extension. Consider performing the migration through other migration tools such as pg_dump/pg_restore (https://aka.ms/migrate-using-pgdump-restore)"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateFailed), // }}, // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateFailed), // }, // { // Type: to.Ptr("CollationsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("postgres"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("CollationsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("readme_to_recover"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("CollationsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("testdb1"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("testdb2"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("testSchema"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // }, // { // DatabaseName: to.Ptr("UnknownCollationTest"), // EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:02.810Z"); return t}()), // StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:01.830Z"); return t}()), // Summary: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("SchemaValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ExtensionsValidation"), // Messages: []*armpostgresqlflexibleservers.ValidationMessage{ // { // Message: to.Ptr("Unsupported Extension. Single to Flex migration tool does not support migration of databases having postgres_fdw extension. Consider performing the migration through other migration tools such as pg_dump/pg_restore (https://aka.ms/migrate-using-pgdump-restore)"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateFailed), // }}, // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateFailed), // }}, // }}, // ServerLevelValidationDetails: []*armpostgresqlflexibleservers.ValidationSummaryItem{ // { // Type: to.Ptr("AuthenticationAndConnectivityValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("SourceVersionValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }, // { // Type: to.Ptr("ServerParametersValidation"), // State: to.Ptr(armpostgresqlflexibleservers.ValidationStateSucceeded), // }}, // Status: to.Ptr(armpostgresqlflexibleservers.ValidationStateFailed), // ValidationEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:20:33.136Z"); return t}()), // ValidationStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:19:59.917Z"); return t}()), // }, // }, // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateValidationFailed), // }, // DbsToMigrate: []*string{ // to.Ptr("c.utf-8"), // to.Ptr("postgres"), // to.Ptr("readme_to_recover"), // to.Ptr("testdb1"), // to.Ptr("testdb2"), // to.Ptr("testSchema"), // to.Ptr("UnknownCollationTest")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("a3e2d3cc-b139-4201-9431-e4f3003140fd"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOffline), // MigrationOption: to.Ptr(armpostgresqlflexibleservers.MigrationOptionValidate), // MigrationWindowEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:21:00.043Z"); return t}()), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-17T19:19:47.448Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerResourceID: to.Ptr("20.228.214.65:5432@postgres"), // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumTrue), // }, // }
func (*MigrationsClient) NewListByTargetServerPager ¶
func (client *MigrationsClient) NewListByTargetServerPager(subscriptionID string, resourceGroupName string, targetDbServerName string, options *MigrationsClientListByTargetServerOptions) *runtime.Pager[MigrationsClientListByTargetServerResponse]
NewListByTargetServerPager - List all the migrations on a given target server.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- options - MigrationsClientListByTargetServerOptions contains the optional parameters for the MigrationsClient.NewListByTargetServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_ListByTargetServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMigrationsClient().NewListByTargetServerPager("ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", &armpostgresqlflexibleservers.MigrationsClientListByTargetServerOptions{MigrationListFilter: to.Ptr(armpostgresqlflexibleservers.MigrationListFilterAll)}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.MigrationResourceListResult = armpostgresqlflexibleservers.MigrationResourceListResult{ // Value: []*armpostgresqlflexibleservers.MigrationResource{ // { // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumFalse), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumFalse), // SourceDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("B_Gen5_2"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Basic")), // }, // StorageMb: to.Ptr[int32](1024), // Version: to.Ptr("10"), // }, // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // StorageMb: to.Ptr[int32](2048), // Version: to.Ptr("16"), // }, // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }}, // } }
func (*MigrationsClient) Update ¶
func (client *MigrationsClient) Update(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, migrationName string, parameters MigrationResourceForPatch, options *MigrationsClientUpdateOptions) (MigrationsClientUpdateResponse, error)
Update - Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- migrationName - The name of the migration.
- parameters - The required parameters for updating a migration.
- options - MigrationsClientUpdateOptions contains the optional parameters for the MigrationsClient.Update method.
Example (CancelMigration) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Cancel.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Update(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResourceForPatch{ Properties: &armpostgresqlflexibleservers.MigrationResourcePropertiesForPatch{ Cancel: to.Ptr(armpostgresqlflexibleservers.CancelEnumTrue), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStateCompleted), // }, // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateCanceled), // }, // DbsToMigrate: []*string{ // to.Ptr("postgres")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationMode: to.Ptr(armpostgresqlflexibleservers.MigrationModeOnline), // MigrationWindowEndTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-15T07:23:56.326Z"); return t}()), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-15T07:22:57.700Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumTrue), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("eastasia"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("B_Gen5_2"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Basic")), // }, // }, // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // TargetDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("East Asia"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("Standard_D2ds_v4"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Standard_D2ds_v4")), // }, // }, // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // }, // }
Example (MigrationsUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Migrations_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMigrationsClient().Update(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", "testmigration", armpostgresqlflexibleservers.MigrationResourceForPatch{ Properties: &armpostgresqlflexibleservers.MigrationResourcePropertiesForPatch{ SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationResource = armpostgresqlflexibleservers.MigrationResource{ // Name: to.Ptr("testmigration"), // Type: to.Ptr("Microsoft.DBForPostgreSql/flexibleServers/migrations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget/migrations/testmigration"), // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.MigrationResourceProperties{ // CurrentStatus: &armpostgresqlflexibleservers.MigrationStatus{ // CurrentSubStateDetails: &armpostgresqlflexibleservers.MigrationSubStateDetails{ // CurrentSubState: to.Ptr(armpostgresqlflexibleservers.MigrationSubStatePerformingPreRequisiteSteps), // }, // Error: to.Ptr(""), // State: to.Ptr(armpostgresqlflexibleservers.MigrationStateInProgress), // }, // DbsToMigrate: []*string{ // to.Ptr("db1"), // to.Ptr("db2"), // to.Ptr("db3"), // to.Ptr("db4")}, // MigrateRoles: to.Ptr(armpostgresqlflexibleservers.MigrateRolesEnumFalse), // MigrationID: to.Ptr("d3ceacbb-a5fd-43dc-a9db-6022b5154856"), // MigrationWindowStartTimeInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-06T16:05:58.895Z"); return t}()), // OverwriteDbsInTarget: to.Ptr(armpostgresqlflexibleservers.OverwriteDbsInTargetEnumFalse), // SetupLogicalReplicationOnSourceDbIfNeeded: to.Ptr(armpostgresqlflexibleservers.LogicalReplicationOnSourceDbEnumTrue), // SourceDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("B_Gen5_2"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTier("Basic")), // }, // StorageMb: to.Ptr[int32](1024), // Version: to.Ptr("10"), // }, // SourceDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"), // StartDataMigration: to.Ptr(armpostgresqlflexibleservers.StartDataMigrationEnumFalse), // TargetDbServerMetadata: &armpostgresqlflexibleservers.DbServerMetadata{ // Location: to.Ptr("westus"), // SKU: &armpostgresqlflexibleservers.ServerSKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // StorageMb: to.Ptr[int32](2048), // Version: to.Ptr("16"), // }, // TargetDbServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/flexibleServers/testtarget"), // TriggerCutover: to.Ptr(armpostgresqlflexibleservers.TriggerCutoverEnumFalse), // }, // }
type MigrationsClientCreateOptions ¶
type MigrationsClientCreateOptions struct { }
MigrationsClientCreateOptions contains the optional parameters for the MigrationsClient.Create method.
type MigrationsClientCreateResponse ¶
type MigrationsClientCreateResponse struct { // Represents a migration resource. MigrationResource }
MigrationsClientCreateResponse contains the response from method MigrationsClient.Create.
type MigrationsClientDeleteOptions ¶
type MigrationsClientDeleteOptions struct { }
MigrationsClientDeleteOptions contains the optional parameters for the MigrationsClient.Delete method.
type MigrationsClientDeleteResponse ¶
type MigrationsClientDeleteResponse struct { }
MigrationsClientDeleteResponse contains the response from method MigrationsClient.Delete.
type MigrationsClientGetOptions ¶
type MigrationsClientGetOptions struct { }
MigrationsClientGetOptions contains the optional parameters for the MigrationsClient.Get method.
type MigrationsClientGetResponse ¶
type MigrationsClientGetResponse struct { // Represents a migration resource. MigrationResource }
MigrationsClientGetResponse contains the response from method MigrationsClient.Get.
type MigrationsClientListByTargetServerOptions ¶
type MigrationsClientListByTargetServerOptions struct { // Migration list filter. Retrieves either active migrations or all migrations. MigrationListFilter *MigrationListFilter }
MigrationsClientListByTargetServerOptions contains the optional parameters for the MigrationsClient.NewListByTargetServerPager method.
type MigrationsClientListByTargetServerResponse ¶
type MigrationsClientListByTargetServerResponse struct { // A list of migration resources. MigrationResourceListResult }
MigrationsClientListByTargetServerResponse contains the response from method MigrationsClient.NewListByTargetServerPager.
type MigrationsClientUpdateOptions ¶
type MigrationsClientUpdateOptions struct { }
MigrationsClientUpdateOptions contains the optional parameters for the MigrationsClient.Update method.
type MigrationsClientUpdateResponse ¶
type MigrationsClientUpdateResponse struct { // Represents a migration resource. MigrationResource }
MigrationsClientUpdateResponse contains the response from method MigrationsClient.Update.
type NameAvailability ¶
type NameAvailability struct { // Detailed reason why the given name is available. Message *string // Indicates if the resource name is available. NameAvailable *bool // The reason why the given name is not available. Reason *CheckNameAvailabilityReason // READ-ONLY; name of the PostgreSQL server. Name *string // READ-ONLY; type of the server Type *string }
NameAvailability - Represents a resource name availability.
func (NameAvailability) MarshalJSON ¶
func (n NameAvailability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NameAvailability.
func (*NameAvailability) UnmarshalJSON ¶
func (n *NameAvailability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailability.
type NameProperty ¶
NameProperty - Name property for quota usage
func (NameProperty) MarshalJSON ¶
func (n NameProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NameProperty.
func (*NameProperty) UnmarshalJSON ¶
func (n *NameProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NameProperty.
type Network ¶
type Network struct { // Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, // i.e. Private access server. During update, pass this only if we want to // update the value for Private DNS zone. DelegatedSubnetResourceID *string // Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, // i.e. Private access server. During update, pass this only if we want to // update the value for Private DNS zone. PrivateDNSZoneArmResourceID *string // public network access is enabled or not PublicNetworkAccess *ServerPublicNetworkAccessState }
Network properties of a server.
func (Network) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Network.
func (*Network) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Network.
type OnlineResizeSupportedEnum ¶
type OnlineResizeSupportedEnum string
OnlineResizeSupportedEnum - A value indicating whether online resize is supported in this region for the given subscription. "Enabled" means storage online resize is supported. "Disabled" means storage online resize is not supported. Will be deprecated in future, please look to Supported Features for "OnlineResize".
const ( OnlineResizeSupportedEnumDisabled OnlineResizeSupportedEnum = "Disabled" OnlineResizeSupportedEnumEnabled OnlineResizeSupportedEnum = "Enabled" )
func PossibleOnlineResizeSupportedEnumValues ¶
func PossibleOnlineResizeSupportedEnumValues() []OnlineResizeSupportedEnum
PossibleOnlineResizeSupportedEnumValues returns the possible values for the OnlineResizeSupportedEnum const type.
type Operation ¶
type Operation struct { // Indicates whether the operation is a data action IsDataAction *bool // READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay // READ-ONLY; The name of the operation being performed on this particular object. Name *string // READ-ONLY; The intended executor of the operation. Origin *OperationOrigin // READ-ONLY; Additional descriptions for the operation. Properties map[string]any }
Operation - REST API operation definition.
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; Operation description. Description *string // READ-ONLY; Localized friendly name for the operation. Operation *string // READ-ONLY; Operation resource provider name. Provider *string // READ-ONLY; Resource on which the operation is performed. Resource *string }
OperationDisplay - Display metadata associated with the operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // Collection of available operation details Value []*Operation }
OperationListResult - A list of resource provider operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationOrigin ¶
type OperationOrigin string
OperationOrigin - The intended executor of the operation.
const ( OperationOriginNotSpecified OperationOrigin = "NotSpecified" OperationOriginSystem OperationOrigin = "system" OperationOriginUser OperationOrigin = "user" )
func PossibleOperationOriginValues ¶
func PossibleOperationOriginValues() []OperationOrigin
PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available REST API operations.
Generated from API version 2025-01-01-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/OperationList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationListResult = armpostgresqlflexibleservers.OperationListResult{ // Value: []*armpostgresqlflexibleservers.Operation{ // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/queryTexts/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/queryTexts/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/recommendations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of recommended indexes for the Azure Database for PostgreSQL Flexible Server"), // Operation: to.Ptr("List Azure Database for PostgreSQL Flexible Server recommended indexes for tuning."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Recommended Indexes"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Tuning Options available for the Azure Database for PostgreSQL Flexible Server"), // Operation: to.Ptr("List Azure Database for PostgreSQL Flexible Server Tuning Options."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Tuning Option"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns a tuning option"), // Operation: to.Ptr("Get a single tuning option"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Tuning Option"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a migration with the specified parameters."), // Operation: to.Ptr("Create a database migration workflow."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the properties for the specified migration workflow."), // Operation: to.Ptr("Get Migration Workflow details."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("List of migration workflows for the specified database server."), // Operation: to.Ptr("List Migration Workflow details."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update the properties for the specified migration."), // Operation: to.Ptr("Update a database migration workflow."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing migration workflow."), // Operation: to.Ptr("Delete Migration Workflow."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/getAutoMigrationFreeSlots/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of free / available slots for auto migration of PostgreSQL server"), // Operation: to.Ptr("Get auto migration free / available slots for PostgreSQL"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Auto migration workflow to get free / available slots for auto migration"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/getLatestAutoMigrationSchedule/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the instance of the latest auto migration schedule for PostgreSQL server"), // Operation: to.Ptr("Get latest auto migration schedule for PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Auto migration workflow to get latest auto migration schedule"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/updateAutoMigrationSchedule/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update auto migration schedule for the PostgreSQL server"), // Operation: to.Ptr("Update auto migration schedule for the PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Auto migration workflow to update auto migration schedule"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/startSession/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Starts a server configuration tuning session on a server"), // Operation: to.Ptr("Start tuning configuration session"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/stopSession/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Stops the server configuration tuning session on a server"), // Operation: to.Ptr("Stop tuning configuration session"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/sessions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the list of server configuration tuning sessions on a server"), // Operation: to.Ptr("Server configuration tuning sessions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/enable/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Enables server configuration tuning feature on the server"), // Operation: to.Ptr("Enable server configuration tuning feature"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/startSession/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Starts a server configuration tuning session on a server"), // Operation: to.Ptr("Start tuning configuration session"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/stopSession/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Stops the server configuration tuning session on a server"), // Operation: to.Ptr("Stop tuning configuration session"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/sessions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the list of server configuration tuning sessions on a server"), // Operation: to.Ptr("Server configuration tuning sessions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/sessionDetails/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the list of iterations for a specified server configuration tuning session on a server"), // Operation: to.Ptr("Server configuration session details"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/disable/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Disables server configuration tuning feature on the server"), // Operation: to.Ptr("Disable server configuration tuning feature"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Configuration Tuning"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/restart/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Restarts an existing server"), // Operation: to.Ptr("Restart PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/start/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Starts an existing server"), // Operation: to.Ptr("Start PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/stop/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Stops an existing server"), // Operation: to.Ptr("Stops an existing server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/replicas/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of servers or gets the properties for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), // Operation: to.Ptr("Create/Update PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), // Operation: to.Ptr("Create/Update PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing server."), // Operation: to.Ptr("Delete PostgreSQL server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/capabilities/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the capabilities for this subscription in a given location"), // Operation: to.Ptr("Gets the capabilities for this subscription"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Location Capability"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/capabilities/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the capabilities for this subscription in a given location"), // Operation: to.Ptr("Gets the capabilities for this subscription"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Location Capability"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/capabilities/{serverName}/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the capabilities for this subscription in a given location"), // Operation: to.Ptr("Gets the capabilities for this subscription"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Location Capability"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Flexible server database backups"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Flexible server database backups"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Flexible server database backups"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advisors/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/waitStatistics/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/queryStatistics/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/topQueryStatistics/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/resetQueryPerformanceInsightData/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advisors/recommendedActions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/checkMigrationNameAvailability/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Checks the availability of the given migration name."), // Operation: to.Ptr("Check the availability of the given migration name."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Migration Name Availability Resource"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/assessForMigration/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Performs a migration assessment with the specified parameters"), // Operation: to.Ptr("Get Migration Assessment"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Migration Assessments"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of server administrators or gets the properties for the specified server administrator."), // Operation: to.Ptr("List/Get PostgreSQL server administrator"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Administrator"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of server administrators or gets the properties for the specified server administrator."), // Operation: to.Ptr("List/Get PostgreSQL server administrator"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Administrator"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing PostgreSQL server administrator."), // Operation: to.Ptr("Delete PostgreSQL server administrator"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Administrator"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server administrator with the specified parameters or update the properties or tags for the specified server administrator."), // Operation: to.Ptr("Create/Update PostgreSQL server administrator"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Administrator"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server administrator with the specified parameters or update the properties or tags for the specified server administrator."), // Operation: to.Ptr("Create/Update PostgreSQL server administrator"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Administrator"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a firewall rule with the specified parameters or update an existing rule."), // Operation: to.Ptr("Create/Update Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of firewall rules for a server or gets the properties for the specified firewall rule."), // Operation: to.Ptr("List/Get Firewall Rules"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing firewall rule."), // Operation: to.Ptr("Delete Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of PostgreSQL server databases or gets the database for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL server configuration"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Database"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or Updates the database of a PostgreSQL server."), // Operation: to.Ptr("Creates/Updates PostgreSQL server database"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Database"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Delete the database of a PostgreSQL server"), // Operation: to.Ptr("Delete PostgreSQL server database"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Database"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of PostgreSQL server configurations or gets the configurations for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL server configuration"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Configuration"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Updates the configuration of a PostgreSQL server."), // Operation: to.Ptr("Update PostgreSQL server configuration"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Configuration"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/getSourceDatabaseList/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Fetch Databases Pre Migration Workflow"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or Updates VirtualEndpoint"), // Operation: to.Ptr("VirtualEndpoint Create or Update operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Virtual Endpoint"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Patches the VirtualEndpoint. Currently patch does a full replace"), // Operation: to.Ptr("VirtualEndpoint Patch operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Virtual Endpoint"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes the VirtualEndpoint"), // Operation: to.Ptr("VirtualEndpoint Delete operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Virtual Endpoint"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the VirtualEndpoint details"), // Operation: to.Ptr("VirtualEndpoint Get operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Virtual Endpoint"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Lists the VirtualEndpoints"), // Operation: to.Ptr("VirtualEndpoint List operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Virtual Endpoint"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/testConnectivity/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Pre-migration Workflow for checking the server connectivity"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/logFiles/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return a list of server log Files for a PostgreSQL Flexible server with File download links"), // Operation: to.Ptr("List/Get PostgreSQL Flexible Server Log Files"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Flexible Server Log Files"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/startLtrBackup/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Start long term backup for a server"), // Operation: to.Ptr("Start long term backup for a server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Long term backup operation."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/ltrPreBackup/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Checks if a server is ready for a long term backup"), // Operation: to.Ptr("Checks if a server is ready for a long term backup"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Long term backup operation."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/ltrBackupOperations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the PostgreSQL server long term backup operation tracking by backup name."), // Operation: to.Ptr("Get PostgreSQL server long term backup operation by backup name"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Long term backup operation."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/ltrBackupOperations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of PostgreSQL server long term backup operation tracking."), // Operation: to.Ptr("List/Get PostgreSQL server long term backup operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Long term backup operation."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Advanced Threat Protection or gets the properties for the specified Advanced Threat Protection."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL Flexible Server Advanced Threat Protection states."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Advanced Threat Protection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Advanced Threat Protection or gets the properties for the specified Advanced Threat Protection."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL Flexible Server Advanced Threat Protection states."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Advanced Threat Protection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Enables/Disables Azure Database for PostgreSQL Flexible Server Advanced Threat Protection"), // Operation: to.Ptr("Update Azure Database for PostgreSQL Server Advanced Threat Protection state"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Advanced Threat Protection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/resourceType/usages/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the quota usages of a subscription"), // Operation: to.Ptr("Gets quota usage"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnectionProxies/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connection proxies or gets the properties for the specified private endpoint connection proxy."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL Flexible Server Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnectionProxies/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection proxy resource."), // Operation: to.Ptr("Delete Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnectionProxies/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a private endpoint connection proxy with the specified parameters or updates the properties or tags for the specified private endpoint connection proxy"), // Operation: to.Ptr("Create/Update Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnectionProxies/validate/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Validates a private endpoint connection create call from NRP side"), // Operation: to.Ptr("Validate Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Creation by NRP"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection"), // Operation: to.Ptr("Delete Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Approves or rejects an existing private endpoint connection"), // Operation: to.Ptr("Approve or Reject Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateLinkResources/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return a list containing private link resource or gets the specified private link resource."), // Operation: to.Ptr("List/Get PostgreSQL private link resource"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private link resource"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection via proxy"), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a private endpoint connection with the specified parameters or updates the properties or tags for the specified private endpoint connection via proxy"), // Operation: to.Ptr("Create/Update Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection via proxy"), // Operation: to.Ptr("Delete Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/validate/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Validates a private endpoint connection creation by NRP"), // Operation: to.Ptr("Validate Azure Database for PostgreSQL SGv2 Private Endpoint Connection Creation by NRP"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection"), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Approves or rejects an existing private endpoint connection"), // Operation: to.Ptr("Approve or Reject Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection"), // Operation: to.Ptr("Delete Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Get the private link resources for the corresponding PostgreSQL SGv2"), // Operation: to.Ptr("Get the private link resources for the corresponding PostgreSQL SGv2"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Link Resource"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionsApproval/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Determines if user is allowed to approve a private endpoint connection for PostgreSQL SGv2"), // Operation: to.Ptr("Private Endpoint Connections Approval for PostgreSQL SGv2"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL SGv2 Private Endpoint Connections Approval Resource"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/securityAlertPolicies/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Retrieve details of the server threat detection policy configured on a given server"), // Operation: to.Ptr("Get server threat detection policy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Threat Detection Policy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/securityAlertPolicies/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Change the server threat detection policy for a given server"), // Operation: to.Ptr("Update server threat detection policy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server Threat Detection Policy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/securityAlertPoliciesOperationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of Server threat detection operation result."), // Operation: to.Ptr("List/Get Server threat detection operation result."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server threat detection operation result"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/keys/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of server keys or gets the properties for the specified server key."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL Server Key(s)"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/keys/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a key with the specified parameters or update the properties or tags for the specified server key."), // Operation: to.Ptr("Create/Update Azure Database for PostgreSQL Server Keys"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/keys/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing server key."), // Operation: to.Ptr("Delete Azure Database for PostgreSQL Server Key"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Server Keys"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/serverKeyAzureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets in-progress operations on data encryption server keys"), // Operation: to.Ptr("Data Encryption server keys operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Data Encryption server key operation"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/serverKeyOperationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets in-progress operations on data encryption server keys"), // Operation: to.Ptr("Data Encryption server keys operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Data Encryption server key operation"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/advisors/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of advisors"), // Operation: to.Ptr("Return the list of advisors"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Advisors"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of recommended actions"), // Operation: to.Ptr("Return the list of recommended actions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Recommended Actions"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/advisors/recommendedActionSessions/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Make recommendations"), // Operation: to.Ptr("Make recommendations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Recommended Actions"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/queryTexts/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the text of a query"), // Operation: to.Ptr("List query text of a query"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Query Texts"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/queryTexts/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the texts for a list of queries"), // Operation: to.Ptr("List query texts for a list of queries"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Query Texts"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/resetQueryPerformanceInsightData/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Reset Query Performance Insight data"), // Operation: to.Ptr("Reset Query Performance Insight data"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Reset Query Performance Insight data"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/topQueryStatistics/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of Query Statistics for the top queries."), // Operation: to.Ptr("List/Get Query Statistic(s) for top queries"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Top Query Statistics"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/waitStatistics/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return wait statistics for an instance"), // Operation: to.Ptr("List Wait Statistics for an instance"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Wait Statistics"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/privateEndpointConnectionsApproval/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Determines if user is allowed to approve a private endpoint connection"), // Operation: to.Ptr("Private Endpoint Connections Approval"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Private Endpoint Connections Approval"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionsApproval/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Determines if user is allowed to approve a private endpoint connection"), // Operation: to.Ptr("Private Endpoint Connections Approval"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Private Endpoint Connections Approval"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateLinkResources/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Get the private link resources for the corresponding PostgreSQL Server"), // Operation: to.Ptr("Get the private link resources for the corresponding PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private link resource"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL private endpoint connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private endpoint connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection"), // Operation: to.Ptr("Delete Azure Database for PostgreSQL private endpoint connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private endpoint connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Approves or rejects an existing private endpoint connection"), // Operation: to.Ptr("Approve or Reject Azure Database for PostgreSQL private endpoint connection"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private endpoint connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionOperationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the result for a private endpoint connection operation"), // Operation: to.Ptr("Get private endpoint connection operation status"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private endpoint connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionAzureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the result for a private endpoint connection operation"), // Operation: to.Ptr("Get private endpoint connection operation status"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL private endpoint connection"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionProxyOperationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the result for a private endpoint connection proxy operation"), // Operation: to.Ptr("Get private endpoint connection proxy operation status"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/validate/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Validates a private endpoint connection create call from NRP side"), // Operation: to.Ptr("Validate Azure Database for PostgreSQL Private Endpoint Connection Creation by NRP"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of private endpoint connection proxies or gets the properties for the specified private endpoint connection proxy."), // Operation: to.Ptr("List/Get Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a private endpoint connection proxy with the specified parameters or updates the properties or tags for the specified private endpoint connection proxy."), // Operation: to.Ptr("Create/Update Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing private endpoint connection proxy"), // Operation: to.Ptr("Delete Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionProxyAzureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the result for a private endpoint connection proxy operation"), // Operation: to.Ptr("Get private endpoint connection proxy operation status"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Azure Database for PostgreSQL Private Endpoint Connection Proxy"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/performanceTiers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Performance Tiers available."), // Operation: to.Ptr("List Performance Tiers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Performance Tiers"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/operationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return ResourceGroup based PostgreSQL Server Operation Results"), // Operation: to.Ptr("Get PostgreSQL ResourceGroup based Server Operation Results "), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQ ResourceGroup based Server Operation Results"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/recoverableServers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the recoverable PostgreSQL Server info"), // Operation: to.Ptr("Get Recoverable PostgreSQL Server info"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Recoverable PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/replicas/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Get read replicas of a PostgreSQL server"), // Operation: to.Ptr("Get PostgreSQL read replicas"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of servers or gets the properties for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL Servers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), // Operation: to.Ptr("Create/Update PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing server."), // Operation: to.Ptr("Delete PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/performanceTiers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Performance Tiers available."), // Operation: to.Ptr("List Performance Tiers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Performance Tiers"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/operationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return PostgreSQL Server Operation Results"), // Operation: to.Ptr("Get PostgreSQL Server Operation Results"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Operation Results"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/restart/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Restarts a specific server."), // Operation: to.Ptr("Restart PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/securityAlertPoliciesAzureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of Server threat detection operation result."), // Operation: to.Ptr("List/Get Server threat detection operation result."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Server threat detection operation result"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/administrators/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets a list of PostgreSQL server administrators."), // Operation: to.Ptr("Get Administrators of PostgreSQL server."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Administrator of PostgreSQL server."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/administrators/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or updates PostgreSQL server administrator with the specified parameters."), // Operation: to.Ptr("Create/Update Administrator of PostgreSQL server."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Administrator of PostgreSQL server."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/administrators/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing administrator of PostgreSQL server."), // Operation: to.Ptr("Delete Administrator of PostgreSQL server."), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Administrator of PostgreSQL server."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/administratorAzureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets in-progress operations on PostgreSQL server administrators"), // Operation: to.Ptr("PostgreSQL server administrator operation"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Administrator opertiaons of PostgreSQL server."), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/administratorOperationResults/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return PostgreSQL Server administrator operation results"), // Operation: to.Ptr("Get PostgreSQL server operation results"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL server operation results"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/register/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Register PostgreSQL Resource Provider"), // Operation: to.Ptr("Register PostgreSQL Resource Provider"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Microsoft Database For PostgreSQL Resource Provider"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/updateConfigurations/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update configurations for the specified server"), // Operation: to.Ptr("Batch Update Server Configurations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/checkNameAvailability/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Verify whether given server name is available for provisioning worldwide for a given subscription."), // Operation: to.Ptr("Check Server Name Availability"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/configurations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of configurations for a server or gets the properties for the specified configuration."), // Operation: to.Ptr("List/Get Configurations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Configurations"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/configurations/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update the value for the specified configuration"), // Operation: to.Ptr("Update Configuration"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Configurations"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of virtual network rules or gets the properties for the specified virtual network rule."), // Operation: to.Ptr("List/Get Virtual Network Rule(s)"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Virtual Network Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a virtual network rule with the specified parameters or update the properties or tags for the specified virtual network rule."), // Operation: to.Ptr("Create/Update Virtual Network Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Virtual Network Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing Virtual Network Rule"), // Operation: to.Ptr("Delete Virtual Network Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Virtual Network Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/locations/azureAsyncOperation/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return PostgreSQL Server Operation Results"), // Operation: to.Ptr("Get PostgreSQL Server Operation Results"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server Operation Results"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of PostgreSQL Databases or gets the properties for the specified Database."), // Operation: to.Ptr("List/Get PostgreSQL Database"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Databases"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a PostgreSQL Database with the specified parameters or update the properties for the specified Database."), // Operation: to.Ptr("Create/Update PostgreSQL Database"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Databases"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing PostgreSQL Database."), // Operation: to.Ptr("Delete PostgreSQL Database"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Databases"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/firewallRules/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of firewall rules for a server or gets the properties for the specified firewall rule."), // Operation: to.Ptr("List/Get Firewall Rules"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/firewallRules/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a firewall rule with the specified parameters or update an existing rule."), // Operation: to.Ptr("Create/Update Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/firewallRules/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing firewall rule."), // Operation: to.Ptr("Delete Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/logFiles/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of PostgreSQL LogFiles."), // Operation: to.Ptr("List/Get PostgreSQL LogFiles"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL LogFiles"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/performanceTiers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Returns the list of Performance Tiers available."), // Operation: to.Ptr("List Performance Tiers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Performance Tiers"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/operations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of PostgreSQL Operations."), // Operation: to.Ptr("List/Get PostgreSQL Operations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Operations"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/metricDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return types of metrics that are available for databases"), // Operation: to.Ptr("Get database metric definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "metricSpecifications":[]any{ // map[string]any{ // "name": "cpu_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "CPU percent", // "displayName": "CPU percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "memory_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Memory percent", // "displayName": "Memory percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "io_consumption_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "IO percent", // "displayName": "IO percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "storage_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage percent", // "displayName": "Storage percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage used", // "displayName": "Storage used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "storage_limit", // "aggregationType": "Maximum", // "category": "Saturation", // "displayDescription": "Storage limit", // "displayName": "Storage limit", // "supportedAggregationTypes":[]any{ // "Maximum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "serverlog_storage_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Server Log storage percent", // "displayName": "Server Log storage percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "serverlog_storage_usage", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Server Log storage used", // "displayName": "Server Log storage used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "serverlog_storage_limit", // "aggregationType": "Maximum", // "category": "Saturation", // "displayDescription": "Server Log storage limit", // "displayName": "Server Log storage limit", // "supportedAggregationTypes":[]any{ // "Maximum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "active_connections", // "aggregationType": "Average", // "category": "Traffic", // "displayDescription": "Active Connections", // "displayName": "Active Connections", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "connections_failed", // "aggregationType": "Total", // "category": "Errors", // "displayDescription": "Failed Connections", // "displayName": "Failed Connections", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Count", // }, // map[string]any{ // "name": "backup_storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Backup Storage Used", // "displayName": "Backup Storage Used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "supportedTimeGrainTypes":[]any{ // "PT15M", // "PT30M", // "PT1H", // "PT6H", // "PT12H", // "P1D", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "network_bytes_egress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network Out across active connections", // "displayName": "Network Out", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "network_bytes_ingress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network In across active connections", // "displayName": "Network In", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "pg_replica_log_delay_in_seconds", // "aggregationType": "Maximum", // "category": "Latency", // "displayDescription": "Replica lag in seconds", // "displayName": "Replica Lag", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Seconds", // }, // map[string]any{ // "name": "pg_replica_log_delay_in_bytes", // "aggregationType": "Maximum", // "category": "Latency", // "displayDescription": "Lag in bytes of the most lagging replica", // "displayName": "Max Lag Across Replicas", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/logDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the available logs for PostgreSQL servers"), // Operation: to.Ptr("Read server log definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("The log definition of servers"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "logSpecifications":[]any{ // map[string]any{ // "name": "PostgreSQLLogs", // "blobDuration": "PT1H", // "displayName": "PostgreSQL Server Logs", // }, // map[string]any{ // "name": "QueryStoreRuntimeStatistics", // "blobDuration": "PT1H", // "displayName": "PostgreSQL Query Store Runtime Statistics", // }, // map[string]any{ // "name": "QueryStoreWaitStatistics", // "blobDuration": "PT1H", // "displayName": "PostgreSQL Query Store Wait Statistics", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the disagnostic setting for the resource"), // Operation: to.Ptr("Read diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), // Operation: to.Ptr("Write diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/metricDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return types of metrics that are available for databases"), // Operation: to.Ptr("Get database metric definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "metricSpecifications":[]any{ // map[string]any{ // "name": "cpu_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "CPU percent", // "displayName": "CPU percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "memory_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Memory percent", // "displayName": "Memory percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "iops", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "IO Operations per second", // "displayName": "IOPS", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "storage_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage percent", // "displayName": "Storage percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage used", // "displayName": "Storage used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "active_connections", // "aggregationType": "Average", // "category": "Traffic", // "displayDescription": "Active Connections", // "displayName": "Active Connections", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "network_bytes_egress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network Out across active connections", // "displayName": "Network Out", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "network_bytes_ingress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network In across active connections", // "displayName": "Network In", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/logDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the available logs for PostgreSQL servers"), // Operation: to.Ptr("Read server log definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("The log definition of servers"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "logSpecifications":[]any{ // map[string]any{ // "name": "PostgreSQLLogs", // "blobDuration": "PT1H", // "displayName": "PostgreSQL Server Logs", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/diagnosticSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the disagnostic setting for the resource"), // Operation: to.Ptr("Read diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/diagnosticSettings/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), // Operation: to.Ptr("Write diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of servers or gets the properties for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL Servers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), // Operation: to.Ptr("Create/Update PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing server."), // Operation: to.Ptr("Delete PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/firewallRules/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of firewall rules for a server or gets the properties for the specified firewall rule."), // Operation: to.Ptr("List/Get Firewall Rules"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/firewallRules/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a firewall rule with the specified parameters or update an existing rule."), // Operation: to.Ptr("Create/Update Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/firewallRules/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing firewall rule."), // Operation: to.Ptr("Delete Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/configurations/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of configurations for a server or gets the properties for the specified configuration."), // Operation: to.Ptr("List/Get Configurations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Configurations"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/configurations/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update the value for the specified configuration"), // Operation: to.Ptr("Update Configuration"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Configurations"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/serversv2/updateConfigurations/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Update configurations for the specified server"), // Operation: to.Ptr("Batch Update Server Configurations"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return types of metrics that are available for databases"), // Operation: to.Ptr("Get database metric definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "metricSpecifications":[]any{ // map[string]any{ // "name": "backup_storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Backup Storage Used", // "displayName": "Backup Storage Used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "cpu_credits_consumed", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Total number of credits consumed by the database server", // "displayName": "CPU Credits Consumed", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "cpu_credits_remaining", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Total number of credits available to burst", // "displayName": "CPU Credits Remaining", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "cpu_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "CPU percent", // "displayName": "CPU percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "memory_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Memory percent", // "displayName": "Memory percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "iops", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "IO Operations per second", // "displayName": "IOPS", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "disk_queue_depth", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Number of outstanding I/O operations to the data disk", // "displayName": "Disk Queue Depth", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "read_throughput", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Bytes read per second from the data disk during monitoring period", // "displayName": "Read Throughput Bytes/Sec", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "write_throughput", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Bytes written per second to the data disk during monitoring period", // "displayName": "Write Throughput Bytes/Sec", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "read_iops", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Number of data disk I/O read operations per second", // "displayName": "Read IOPS", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "write_iops", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Number of data disk I/O write operations per second", // "displayName": "Write IOPS", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "storage_percent", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage percent", // "displayName": "Storage percent", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Percent", // }, // map[string]any{ // "name": "storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage used", // "displayName": "Storage used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "storage_free", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Storage Free", // "displayName": "Storage Free", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "txlogs_storage_used", // "aggregationType": "Average", // "category": "Saturation", // "displayDescription": "Transaction Log Storage Used", // "displayName": "Transaction Log Storage Used", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "active_connections", // "aggregationType": "Average", // "category": "Traffic", // "displayDescription": "Active Connections", // "displayName": "Active Connections", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // map[string]any{ // "name": "network_bytes_egress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network Out across active connections", // "displayName": "Network Out", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "network_bytes_ingress", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Network In across active connections", // "displayName": "Network In", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Bytes", // }, // map[string]any{ // "name": "connections_failed", // "aggregationType": "Total", // "category": "Errors", // "displayDescription": "Failed Connections", // "displayName": "Failed Connections", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Count", // }, // map[string]any{ // "name": "connections_succeeded", // "aggregationType": "Total", // "category": "Traffic", // "displayDescription": "Succeeded Connections", // "displayName": "Succeeded Connections", // "supportedAggregationTypes":[]any{ // "Total", // }, // "unit": "Count", // }, // map[string]any{ // "name": "maximum_used_transactionIDs", // "aggregationType": "Average", // "category": "Traffic", // "displayDescription": "Maximum Used Transaction IDs", // "displayName": "Maximum Used Transaction IDs", // "supportedAggregationTypes":[]any{ // "Average", // "Maximum", // "Minimum", // }, // "unit": "Count", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/logDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the available logs for PostgreSQL servers"), // Operation: to.Ptr("Read server log definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("The log definition of servers"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "logSpecifications":[]any{ // map[string]any{ // "name": "PostgreSQLLogs", // "blobDuration": "PT1H", // "displayName": "PostgreSQL Server Logs", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the disagnostic setting for the resource"), // Operation: to.Ptr("Read diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), // Operation: to.Ptr("Write diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnectionsApproval/action"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Determines if the user is allowed to approve a private endpoint connection"), // Operation: to.Ptr("Private Endpoint Connections Approval"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Private Endpoint Connections Approval"), // }, // }}, // } }
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of resource provider operations. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - Backup type.
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type OverwriteDbsInTargetEnum ¶
type OverwriteDbsInTargetEnum string
OverwriteDbsInTargetEnum - Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.
const ( OverwriteDbsInTargetEnumFalse OverwriteDbsInTargetEnum = "False" OverwriteDbsInTargetEnumTrue OverwriteDbsInTargetEnum = "True" )
func PossibleOverwriteDbsInTargetEnumValues ¶
func PossibleOverwriteDbsInTargetEnumValues() []OverwriteDbsInTargetEnum
PossibleOverwriteDbsInTargetEnumValues returns the possible values for the OverwriteDbsInTargetEnum const type.
type PasswordAuthEnum ¶
type PasswordAuthEnum string
PasswordAuthEnum - If Enabled, Password authentication is enabled.
const ( PasswordAuthEnumDisabled PasswordAuthEnum = "Disabled" PasswordAuthEnumEnabled PasswordAuthEnum = "Enabled" )
func PossiblePasswordAuthEnumValues ¶
func PossiblePasswordAuthEnumValues() []PasswordAuthEnum
PossiblePasswordAuthEnumValues returns the possible values for the PasswordAuthEnum const type.
type PostgreSQLManagementClient ¶
type PostgreSQLManagementClient struct {
// contains filtered or unexported fields
}
PostgreSQLManagementClient contains the methods for the PostgreSQLManagementClient group. Don't use this type directly, use NewPostgreSQLManagementClient() instead.
func NewPostgreSQLManagementClient ¶
func NewPostgreSQLManagementClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PostgreSQLManagementClient, error)
NewPostgreSQLManagementClient creates a new instance of PostgreSQLManagementClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PostgreSQLManagementClient) CheckMigrationNameAvailability ¶
func (client *PostgreSQLManagementClient) CheckMigrationNameAvailability(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters MigrationNameAvailabilityResource, options *PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions) (PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse, error)
CheckMigrationNameAvailability - This method checks whether a proposed migration name is valid and available. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- subscriptionID - The subscription ID of the target database server.
- resourceGroupName - The resource group name of the target database server.
- targetDbServerName - The name of the target database server.
- parameters - The required parameters for checking if a migration name is available.
- options - PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the PostgreSQLManagementClient.CheckMigrationNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/CheckMigrationNameAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPostgreSQLManagementClient().CheckMigrationNameAvailability(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", armpostgresqlflexibleservers.MigrationNameAvailabilityResource{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.MigrationNameAvailabilityResource = armpostgresqlflexibleservers.MigrationNameAvailabilityResource{ // Name: to.Ptr("name1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations"), // NameAvailable: to.Ptr(true), // }
type PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions ¶
type PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions struct { }
PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the PostgreSQLManagementClient.CheckMigrationNameAvailability method.
type PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse ¶
type PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse struct { // Represents a migration name's availability. MigrationNameAvailabilityResource }
PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse contains the response from method PostgreSQLManagementClient.CheckMigrationNameAvailability.
type PrincipalType ¶
type PrincipalType string
PrincipalType - The principal type used to represent the type of Microsoft Entra Administrator.
const ( PrincipalTypeGroup PrincipalType = "Group" PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal" PrincipalTypeUnknown PrincipalType = "Unknown" PrincipalTypeUser PrincipalType = "User" )
func PossiblePrincipalTypeValues ¶
func PossiblePrincipalTypeValues() []PrincipalType
PossiblePrincipalTypeValues returns the possible values for the PrincipalType const type.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for private endpoint. ID *string }
PrivateEndpoint - The private endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (p PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
func (*PrivateEndpoint) UnmarshalJSON ¶
func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // Resource properties. Properties *PrivateEndpointConnectionProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
PrivateEndpointConnection - The private endpoint connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionClient ¶
type PrivateEndpointConnectionClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionClient contains the methods for the PrivateEndpointConnection group. Don't use this type directly, use NewPrivateEndpointConnectionClient() instead.
func NewPrivateEndpointConnectionClient ¶
func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionClient, error)
NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionClient) BeginDelete ¶
func (client *PrivateEndpointConnectionClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection with a given name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- privateEndpointConnectionName - The name of the private endpoint connection.
- options - PrivateEndpointConnectionClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateEndpointConnectionDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionClient().BeginDelete(ctx, "Default", "test-svr", "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*PrivateEndpointConnectionClient) BeginUpdate ¶
func (client *PrivateEndpointConnectionClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionClientBeginUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionClientUpdateResponse], error)
BeginUpdate - Approve or reject a private endpoint connection with a given name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- privateEndpointConnectionName - The name of the private endpoint connection.
- parameters - The required parameters for updating private endpoint connection.
- options - PrivateEndpointConnectionClientBeginUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateEndpointConnectionUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionClient().BeginUpdate(ctx, "Default", "test-svr", "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e", armpostgresqlflexibleservers.PrivateEndpointConnection{ Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ Description: to.Ptr("Approved by johndoe@contoso.com"), Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateEndpointConnection = armpostgresqlflexibleservers.PrivateEndpointConnection{ // Name: to.Ptr("private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateEndpointConnections/private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ // to.Ptr("postgresqlServer")}, // PrivateEndpoint: &armpostgresqlflexibleservers.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"), // }, // PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Approved by johndoe@contoso.com"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // }
type PrivateEndpointConnectionClientBeginDeleteOptions ¶
type PrivateEndpointConnectionClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
PrivateEndpointConnectionClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.BeginDelete method.
type PrivateEndpointConnectionClientBeginUpdateOptions ¶
type PrivateEndpointConnectionClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
PrivateEndpointConnectionClientBeginUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.BeginUpdate method.
type PrivateEndpointConnectionClientDeleteResponse ¶
type PrivateEndpointConnectionClientDeleteResponse struct { }
PrivateEndpointConnectionClientDeleteResponse contains the response from method PrivateEndpointConnectionClient.BeginDelete.
type PrivateEndpointConnectionClientUpdateResponse ¶
type PrivateEndpointConnectionClientUpdateResponse struct { // The private endpoint connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionClientUpdateResponse contains the response from method PrivateEndpointConnectionClient.BeginUpdate.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { // READ-ONLY; The URL to get the next set of results. NextLink *string // READ-ONLY; Array of results. Value []*PrivateEndpointConnection }
PrivateEndpointConnectionListResult - A list of private endpoint connections.
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
func (*PrivateEndpointConnectionListResult) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // The private endpoint resource. PrivateEndpoint *PrivateEndpoint // READ-ONLY; The group ids for the private endpoint resource. GroupIDs []*string // READ-ONLY; The provisioning state of the private endpoint connection resource. ProvisioningState *PrivateEndpointConnectionProvisioningState }
PrivateEndpointConnectionProperties - Properties of the private endpoint connection.
func (PrivateEndpointConnectionProperties) MarshalJSON ¶
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
func (*PrivateEndpointConnectionProperties) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState - The current provisioning state.
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Gets a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- privateEndpointConnectionName - The name of the private endpoint connection.
- options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateEndpointConnectionGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "Default", "test-svr", "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateEndpointConnection = armpostgresqlflexibleservers.PrivateEndpointConnection{ // Name: to.Ptr("private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateEndpointConnections/private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ // to.Ptr("postgresqlServer")}, // PrivateEndpoint: &armpostgresqlflexibleservers.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"), // }, // PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // }
func (*PrivateEndpointConnectionsClient) NewListByServerPager ¶
func (client *PrivateEndpointConnectionsClient) NewListByServerPager(resourceGroupName string, serverName string, options *PrivateEndpointConnectionsClientListByServerOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse]
NewListByServerPager - Gets all private endpoint connections on a server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - PrivateEndpointConnectionsClientListByServerOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateEndpointConnectionList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListByServerPager("Default", "test-svr", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.PrivateEndpointConnectionListResult = armpostgresqlflexibleservers.PrivateEndpointConnectionListResult{ // Value: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // { // Name: to.Ptr("private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateEndpointConnections/private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ // to.Ptr("postgresqlServer")}, // PrivateEndpoint: &armpostgresqlflexibleservers.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"), // }, // PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // }, // { // Name: to.Ptr("private-endpoint-connection-name-2.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateEndpointConnections/private-endpoint-connection-name-2.1fa229cd-bf3f-47f0-8c49-afb36723997e"), // Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ // to.Ptr("postgresqlServer")}, // PrivateEndpoint: &armpostgresqlflexibleservers.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2"), // }, // PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // }}, // } }
type PrivateEndpointConnectionsClientGetOptions ¶
type PrivateEndpointConnectionsClientGetOptions struct { }
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶
type PrivateEndpointConnectionsClientGetResponse struct { // The private endpoint connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListByServerOptions ¶
type PrivateEndpointConnectionsClientListByServerOptions struct { }
PrivateEndpointConnectionsClientListByServerOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByServerPager method.
type PrivateEndpointConnectionsClientListByServerResponse ¶
type PrivateEndpointConnectionsClientListByServerResponse struct { // A list of private endpoint connections. PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsClientListByServerResponse contains the response from method PrivateEndpointConnectionsClient.NewListByServerPager.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct { // Resource properties. Properties *PrivateLinkResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
PrivateLinkResource - A private link resource.
func (PrivateLinkResource) MarshalJSON ¶
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; Array of results. Value []*PrivateLinkResource }
PrivateLinkResourceListResult - A list of private link resources
func (PrivateLinkResourceListResult) MarshalJSON ¶
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
func (*PrivateLinkResourceListResult) UnmarshalJSON ¶
func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // The private link resource private link DNS zone name. RequiredZoneNames []*string // READ-ONLY; The private link resource group id. GroupID *string // READ-ONLY; The private link resource required member names. RequiredMembers []*string }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
func (*PrivateLinkResourceProperties) UnmarshalJSON ¶
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, serverName string, groupName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Gets a private link resource for PostgreSQL server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- groupName - The name of the private link resource.
- options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateLinkResourcesGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "Default", "test-svr", "plr", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateLinkResource = armpostgresqlflexibleservers.PrivateLinkResource{ // Name: to.Ptr("plr"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateLinkResources"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateLinkResources/plr"), // Properties: &armpostgresqlflexibleservers.PrivateLinkResourceProperties{ // GroupID: to.Ptr("postgresqlServer"), // RequiredMembers: []*string{ // to.Ptr("postgresqlServer")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.meru.com")}, // }, // }
func (*PrivateLinkResourcesClient) NewListByServerPager ¶
func (client *PrivateLinkResourcesClient) NewListByServerPager(resourceGroupName string, serverName string, options *PrivateLinkResourcesClientListByServerOptions) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse]
NewListByServerPager - Gets the private link resources for PostgreSQL server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - PrivateLinkResourcesClientListByServerOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PrivateLinkResourcesList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkResourcesClient().NewListByServerPager("Default", "test-svr", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.PrivateLinkResourceListResult = armpostgresqlflexibleservers.PrivateLinkResourceListResult{ // Value: []*armpostgresqlflexibleservers.PrivateLinkResource{ // { // Name: to.Ptr("plr"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateLinkResources"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/Default/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-svr/privateLinkResources/plr"), // Properties: &armpostgresqlflexibleservers.PrivateLinkResourceProperties{ // GroupID: to.Ptr("postgresqlServer"), // RequiredMembers: []*string{ // to.Ptr("postgresqlServer")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.meru.com")}, // }, // }}, // } }
type PrivateLinkResourcesClientGetOptions ¶
type PrivateLinkResourcesClientGetOptions struct { }
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶
type PrivateLinkResourcesClientGetResponse struct { // A private link resource. PrivateLinkResource }
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListByServerOptions ¶
type PrivateLinkResourcesClientListByServerOptions struct { }
PrivateLinkResourcesClientListByServerOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByServerPager method.
type PrivateLinkResourcesClientListByServerResponse ¶
type PrivateLinkResourcesClientListByServerResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesClientListByServerResponse contains the response from method PrivateLinkResourcesClient.NewListByServerPager.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string // The reason for approval/rejection of the connection. Description *string // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Status *PrivateEndpointServiceConnectionStatus }
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
func (PrivateLinkServiceConnectionState) MarshalJSON ¶
func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
func (*PrivateLinkServiceConnectionState) UnmarshalJSON ¶
func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
type QuotaUsage ¶
type QuotaUsage struct { // Current Quota usage value CurrentValue *int64 // Fully qualified ARM resource Id ID *string // Quota limit Limit *int64 // Name of quota usage for flexible servers Name *NameProperty // Quota unit Unit *string }
QuotaUsage - Quota usage for flexible servers
func (QuotaUsage) MarshalJSON ¶
func (q QuotaUsage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaUsage.
func (*QuotaUsage) UnmarshalJSON ¶
func (q *QuotaUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaUsage.
type QuotaUsagesClient ¶
type QuotaUsagesClient struct {
// contains filtered or unexported fields
}
QuotaUsagesClient contains the methods for the QuotaUsages group. Don't use this type directly, use NewQuotaUsagesClient() instead.
func NewQuotaUsagesClient ¶
func NewQuotaUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotaUsagesClient, error)
NewQuotaUsagesClient creates a new instance of QuotaUsagesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*QuotaUsagesClient) NewListPager ¶
func (client *QuotaUsagesClient) NewListPager(locationName string, options *QuotaUsagesClientListOptions) *runtime.Pager[QuotaUsagesClientListResponse]
NewListPager - Get quota usages at specified location in a given subscription.
Generated from API version 2025-01-01-preview
- locationName - The name of the location.
- options - QuotaUsagesClientListOptions contains the optional parameters for the QuotaUsagesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/QuotaUsagesForFlexibleServers.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewQuotaUsagesClient().NewListPager("westus", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.QuotaUsagesListResult = armpostgresqlflexibleservers.QuotaUsagesListResult{ // Value: []*armpostgresqlflexibleservers.QuotaUsage{ // { // Name: &armpostgresqlflexibleservers.NameProperty{ // LocalizedValue: to.Ptr("standardBSFamily"), // Value: to.Ptr("standardBSFamily"), // }, // CurrentValue: to.Ptr[int64](0), // ID: to.Ptr(""), // Limit: to.Ptr[int64](10000), // Unit: to.Ptr("Count"), // }, // { // Name: &armpostgresqlflexibleservers.NameProperty{ // LocalizedValue: to.Ptr("standardDDSv4Family"), // Value: to.Ptr("standardDDSv4Family"), // }, // CurrentValue: to.Ptr[int64](0), // ID: to.Ptr(""), // Limit: to.Ptr[int64](100), // Unit: to.Ptr("Count"), // }}, // } }
type QuotaUsagesClientListOptions ¶
type QuotaUsagesClientListOptions struct { }
QuotaUsagesClientListOptions contains the optional parameters for the QuotaUsagesClient.NewListPager method.
type QuotaUsagesClientListResponse ¶
type QuotaUsagesClientListResponse struct { // Capability for the PostgreSQL server QuotaUsagesListResult }
QuotaUsagesClientListResponse contains the response from method QuotaUsagesClient.NewListPager.
type QuotaUsagesListResult ¶
type QuotaUsagesListResult struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; A list of quota usages. Value []*QuotaUsage }
QuotaUsagesListResult - Capability for the PostgreSQL server
func (QuotaUsagesListResult) MarshalJSON ¶
func (q QuotaUsagesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaUsagesListResult.
func (*QuotaUsagesListResult) UnmarshalJSON ¶
func (q *QuotaUsagesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaUsagesListResult.
type ReadReplicaPromoteMode ¶
type ReadReplicaPromoteMode string
ReadReplicaPromoteMode - Sets the promote mode for a replica server. This is a write only property.
const ( ReadReplicaPromoteModeStandalone ReadReplicaPromoteMode = "standalone" ReadReplicaPromoteModeSwitchover ReadReplicaPromoteMode = "switchover" )
func PossibleReadReplicaPromoteModeValues ¶
func PossibleReadReplicaPromoteModeValues() []ReadReplicaPromoteMode
PossibleReadReplicaPromoteModeValues returns the possible values for the ReadReplicaPromoteMode const type.
type RecommendationType ¶
type RecommendationType string
const ( RecommendationTypeCreateIndex RecommendationType = "CreateIndex" RecommendationTypeDropIndex RecommendationType = "DropIndex" )
func PossibleRecommendationTypeValues ¶
func PossibleRecommendationTypeValues() []RecommendationType
PossibleRecommendationTypeValues returns the possible values for the RecommendationType const type.
type RecommendationTypeEnum ¶
type RecommendationTypeEnum string
RecommendationTypeEnum - Type for this recommendation.
const ( RecommendationTypeEnumCreateIndex RecommendationTypeEnum = "CreateIndex" RecommendationTypeEnumDropIndex RecommendationTypeEnum = "DropIndex" RecommendationTypeEnumReIndex RecommendationTypeEnum = "ReIndex" )
func PossibleRecommendationTypeEnumValues ¶
func PossibleRecommendationTypeEnumValues() []RecommendationTypeEnum
PossibleRecommendationTypeEnumValues returns the possible values for the RecommendationTypeEnum const type.
type Replica ¶
type Replica struct { // Sets the promote mode for a replica server. This is a write only property. PromoteMode *ReadReplicaPromoteMode // Sets the promote options for a replica server. This is a write only property. PromoteOption *ReplicationPromoteOption // Used to indicate role of the server in replication set. Role *ReplicationRole // READ-ONLY; Replicas allowed for a server. Capacity *int32 // READ-ONLY; Gets the replication state of a replica server. This property is returned only for replicas api call. Supported // values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring ReplicationState *ReplicationState }
Replica properties of a server
func (Replica) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Replica.
func (*Replica) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Replica.
type ReplicasClient ¶
type ReplicasClient struct {
// contains filtered or unexported fields
}
ReplicasClient contains the methods for the Replicas group. Don't use this type directly, use NewReplicasClient() instead.
func NewReplicasClient ¶
func NewReplicasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicasClient, error)
NewReplicasClient creates a new instance of ReplicasClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ReplicasClient) NewListByServerPager ¶
func (client *ReplicasClient) NewListByServerPager(resourceGroupName string, serverName string, options *ReplicasClientListByServerOptions) *runtime.Pager[ReplicasClientListByServerResponse]
NewListByServerPager - List all the replicas for a given server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ReplicasListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewReplicasClient().NewListByServerPager("testrg", "sourcepgservername", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtestsvc5rep"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](0), // ReplicationState: to.Ptr(armpostgresqlflexibleservers.ReplicationStateActive), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // }, // ReplicaCapacity: to.Ptr[int32](0), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
type ReplicasClientListByServerOptions ¶
type ReplicasClientListByServerOptions struct { }
ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager method.
type ReplicasClientListByServerResponse ¶
type ReplicasClientListByServerResponse struct { // A list of servers. ServerListResult }
ReplicasClientListByServerResponse contains the response from method ReplicasClient.NewListByServerPager.
type ReplicationPromoteOption ¶
type ReplicationPromoteOption string
ReplicationPromoteOption - Sets the promote options for a replica server. This is a write only property.
const ( ReplicationPromoteOptionForced ReplicationPromoteOption = "forced" ReplicationPromoteOptionPlanned ReplicationPromoteOption = "planned" )
func PossibleReplicationPromoteOptionValues ¶
func PossibleReplicationPromoteOptionValues() []ReplicationPromoteOption
PossibleReplicationPromoteOptionValues returns the possible values for the ReplicationPromoteOption const type.
type ReplicationRole ¶
type ReplicationRole string
ReplicationRole - Used to indicate role of the server in replication set.
const ( ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" ReplicationRoleNone ReplicationRole = "None" ReplicationRolePrimary ReplicationRole = "Primary" )
func PossibleReplicationRoleValues ¶
func PossibleReplicationRoleValues() []ReplicationRole
PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
type ReplicationState ¶
type ReplicationState string
ReplicationState - Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
const ( ReplicationStateActive ReplicationState = "Active" ReplicationStateBroken ReplicationState = "Broken" ReplicationStateCatchup ReplicationState = "Catchup" ReplicationStateProvisioning ReplicationState = "Provisioning" ReplicationStateReconfiguring ReplicationState = "Reconfiguring" ReplicationStateUpdating ReplicationState = "Updating" )
func PossibleReplicationStateValues ¶
func PossibleReplicationStateValues() []ReplicationState
PossibleReplicationStateValues returns the possible values for the ReplicationState const type.
type RestartParameter ¶
type RestartParameter struct { // Failover mode. FailoverMode *FailoverMode // Indicates whether to restart the server with failover. RestartWithFailover *bool }
RestartParameter - Represents server restart parameters.
func (RestartParameter) MarshalJSON ¶
func (r RestartParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestartParameter.
func (*RestartParameter) UnmarshalJSON ¶
func (r *RestartParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestartParameter.
type RestrictedEnum ¶
type RestrictedEnum string
RestrictedEnum - A value indicating whether this region is restricted. "Enabled" means region is restricted. "Disabled" stands for region is not restricted. Will be deprecated in future, please look to Supported Features for "Restricted".
const ( RestrictedEnumDisabled RestrictedEnum = "Disabled" RestrictedEnumEnabled RestrictedEnum = "Enabled" )
func PossibleRestrictedEnumValues ¶
func PossibleRestrictedEnumValues() []RestrictedEnum
PossibleRestrictedEnumValues returns the possible values for the RestrictedEnum const type.
type SKU ¶
type SKU struct { // REQUIRED; The name of the sku, typically, tier + family + cores, e.g. StandardD4sv3. Name *string // REQUIRED; The tier of the particular SKU, e.g. Burstable. Tier *SKUTier }
SKU - Sku information related properties of a server.
func (SKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUTier ¶
type SKUTier string
SKUTier - The tier of the particular SKU, e.g. Burstable.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type SSLMode ¶
type SSLMode string
SSLMode - Supported SSL modes for migration. VerifyFull is the recommended SSL mode for Single server migration. Prefer, Require are recommended SSL modes for other source types
func PossibleSSLModeValues ¶
func PossibleSSLModeValues() []SSLMode
PossibleSSLModeValues returns the possible values for the SSLMode const type.
type Server ¶
type Server struct { // REQUIRED; The geo-location where the resource lives Location *string // Describes the identity of the application. Identity *UserAssignedIdentity // Properties of the server. Properties *ServerProperties // The SKU (pricing tier) of the server. SKU *SKU // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Server - Represents a server.
func (Server) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Server.
func (*Server) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Server.
type ServerBackup ¶
type ServerBackup struct { // The properties of a server backup. Properties *ServerBackupProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ServerBackup - Server backup properties
func (ServerBackup) MarshalJSON ¶
func (s ServerBackup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackup.
func (*ServerBackup) UnmarshalJSON ¶
func (s *ServerBackup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackup.
type ServerBackupListResult ¶
type ServerBackupListResult struct { // The link used to get the next page of operations. NextLink *string // The list of backups of a server. Value []*ServerBackup }
ServerBackupListResult - A list of server backups.
func (ServerBackupListResult) MarshalJSON ¶
func (s ServerBackupListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackupListResult.
func (*ServerBackupListResult) UnmarshalJSON ¶
func (s *ServerBackupListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackupListResult.
type ServerBackupProperties ¶
type ServerBackupProperties struct { // Backup type. BackupType *Origin // Backup completed time (ISO8601 format). CompletedTime *time.Time // Backup source Source *string }
ServerBackupProperties - The properties of a server backup.
func (ServerBackupProperties) MarshalJSON ¶
func (s ServerBackupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackupProperties.
func (*ServerBackupProperties) UnmarshalJSON ¶
func (s *ServerBackupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackupProperties.
type ServerCapabilitiesClient ¶
type ServerCapabilitiesClient struct {
// contains filtered or unexported fields
}
ServerCapabilitiesClient contains the methods for the ServerCapabilities group. Don't use this type directly, use NewServerCapabilitiesClient() instead.
func NewServerCapabilitiesClient ¶
func NewServerCapabilitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServerCapabilitiesClient, error)
NewServerCapabilitiesClient creates a new instance of ServerCapabilitiesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServerCapabilitiesClient) NewListPager ¶
func (client *ServerCapabilitiesClient) NewListPager(resourceGroupName string, serverName string, options *ServerCapabilitiesClientListOptions) *runtime.Pager[ServerCapabilitiesClientListResponse]
NewListPager - Get capabilities for a flexible server.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServerCapabilitiesClientListOptions contains the optional parameters for the ServerCapabilitiesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCapabilities.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServerCapabilitiesClient().NewListPager("testrg", "pgtestsvc4", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CapabilitiesListResult = armpostgresqlflexibleservers.CapabilitiesListResult{ // Value: []*armpostgresqlflexibleservers.FlexibleServerCapability{ // { // Name: to.Ptr("FlexibleServerCapabilities"), // FastProvisioningSupported: to.Ptr(armpostgresqlflexibleservers.FastProvisioningSupportedEnumEnabled), // GeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.GeoBackupSupportedEnumEnabled), // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumEnabled), // Restricted: to.Ptr(armpostgresqlflexibleservers.RestrictedEnumDisabled), // StorageAutoGrowthSupported: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowthSupportedEnumEnabled), // SupportedFastProvisioningEditions: []*armpostgresqlflexibleservers.FastProvisioningEditionCapability{ // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("12"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("13"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("15"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_b2s"), // SupportedStorageGb: to.Ptr[int32](32), // SupportedTier: to.Ptr("Burstable"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_d2s_v3"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_d2ds_v4"), // SupportedStorageGb: to.Ptr[int32](128), // SupportedTier: to.Ptr("GeneralPurpose"), // }, // { // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("16"), // SupportedSKU: to.Ptr("standard_e2ds_v4"), // SupportedStorageGb: to.Ptr[int32](512), // SupportedTier: to.Ptr("MemoryOptimized"), // }}, // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // { // Name: to.Ptr("FastProvisioning"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("ZoneRedundantHa"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("GeoBackup"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("ZoneRedundantHaAndGeoBackup"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("StorageAutoGrowth"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("OnlineResize"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("OfferRestricted"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumDisabled), // }, // { // Name: to.Ptr("IndexTuning"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }, // { // Name: to.Ptr("Clusters"), // Status: to.Ptr(armpostgresqlflexibleservers.SupportedFeatureStatusEnumEnabled), // }}, // SupportedServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // DefaultSKUName: to.Ptr("Standard_B1ms"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_B1ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](640), // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](1), // }, // { // Name: to.Ptr("Standard_B2s"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](1280), // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_B2ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](1920), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_B4ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](2880), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_B8ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_B12ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](12), // }, // { // Name: to.Ptr("Standard_B16ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_B20ms"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](4320), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // DefaultSKUName: to.Ptr("Standard_D4ds_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D2ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3750), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_D4ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_D8ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_D16ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_D32ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_D48ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_D64ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_D96ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }, // { // Name: to.Ptr("UltraDisk"), // DefaultStorageSizeMb: to.Ptr[int64](65536), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](4800), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](400000), // SupportedMaximumThroughput: to.Ptr[int32](10000), // SupportedThroughput: to.Ptr[int32](1200), // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // DefaultSKUName: to.Ptr("Standard_E4ds_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_M64"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](40000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](16384), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_M128"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](16384), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](128), // }, // { // Name: to.Ptr("Standard_E2ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](3750), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](2), // }, // { // Name: to.Ptr("Standard_E4ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](4), // }, // { // Name: to.Ptr("Standard_E8ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](8), // }, // { // Name: to.Ptr("Standard_E16ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](16), // }, // { // Name: to.Ptr("Standard_E20ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](20), // }, // { // Name: to.Ptr("Standard_E32ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](32), // }, // { // Name: to.Ptr("Standard_E48ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](48), // }, // { // Name: to.Ptr("Standard_E64ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](64), // }, // { // Name: to.Ptr("Standard_E96ds_v5"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("P4"), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](120), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int32](120), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P6"), // StorageSizeMb: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int32](240), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int32](240), // }, // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P10"), // StorageSizeMb: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int32](500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P10"), // Iops: to.Ptr[int32](500), // }, // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P15"), // StorageSizeMb: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int32](1100), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P15"), // Iops: to.Ptr[int32](1100), // }, // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P20"), // StorageSizeMb: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int32](2300), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P20"), // Iops: to.Ptr[int32](2300), // }, // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P30"), // StorageSizeMb: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int32](5000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P30"), // Iops: to.Ptr[int32](5000), // }, // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P40"), // StorageSizeMb: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P40"), // Iops: to.Ptr[int32](7500), // }, // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4193280), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P50"), // Iops: to.Ptr[int32](7500), // }}, // }, // { // DefaultIopsTier: to.Ptr("P60"), // StorageSizeMb: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int32](16000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P60"), // Iops: to.Ptr[int32](16000), // }, // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P70"), // StorageSizeMb: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int32](18000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P70"), // Iops: to.Ptr[int32](18000), // }, // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }, // { // DefaultIopsTier: to.Ptr("P80"), // StorageSizeMb: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int32](20000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P80"), // Iops: to.Ptr[int32](20000), // }}, // }}, // }, // { // Name: to.Ptr("ManagedDiskV2"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](3000), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }, // { // Name: to.Ptr("UltraDisk"), // DefaultStorageSizeMb: to.Ptr[int64](131072), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), // MaximumStorageSizeMb: to.Ptr[int64](67108864), // StorageSizeMb: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int32](4800), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("None"), // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](400000), // SupportedMaximumThroughput: to.Ptr[int32](10000), // SupportedThroughput: to.Ptr[int32](1200), // }}, // }}, // }}, // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("12"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("13"), // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("13"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("14"), // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("14"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("15"), // to.Ptr("16")}, // }, // { // Name: to.Ptr("15"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("16")}, // }, // { // Name: to.Ptr("16"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // }, // }, // { // Name: to.Ptr("17"), // SupportedFeatures: []*armpostgresqlflexibleservers.SupportedFeature{ // }, // SupportedVersionsToUpgrade: []*string{ // }, // }}, // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), // }}, // } }
type ServerCapabilitiesClientListOptions ¶
type ServerCapabilitiesClientListOptions struct { }
ServerCapabilitiesClientListOptions contains the optional parameters for the ServerCapabilitiesClient.NewListPager method.
type ServerCapabilitiesClientListResponse ¶
type ServerCapabilitiesClientListResponse struct { // Capability for the PostgreSQL server CapabilitiesListResult }
ServerCapabilitiesClientListResponse contains the response from method ServerCapabilitiesClient.NewListPager.
type ServerForUpdate ¶
type ServerForUpdate struct { // Describes the identity of the application. Identity *UserAssignedIdentity // Properties of the server. Properties *ServerPropertiesForUpdate // The SKU (pricing tier) of the server. SKU *SKU // Application-specific metadata in the form of key-value pairs. Tags map[string]*string }
ServerForUpdate - Represents a server to be updated.
func (ServerForUpdate) MarshalJSON ¶
func (s ServerForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerForUpdate.
func (*ServerForUpdate) UnmarshalJSON ¶
func (s *ServerForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerForUpdate.
type ServerHAState ¶
type ServerHAState string
ServerHAState - A state of a HA server that is visible to user.
const ( ServerHAStateCreatingStandby ServerHAState = "CreatingStandby" ServerHAStateFailingOver ServerHAState = "FailingOver" ServerHAStateHealthy ServerHAState = "Healthy" ServerHAStateNotEnabled ServerHAState = "NotEnabled" ServerHAStateRemovingStandby ServerHAState = "RemovingStandby" ServerHAStateReplicatingData ServerHAState = "ReplicatingData" )
func PossibleServerHAStateValues ¶
func PossibleServerHAStateValues() []ServerHAState
PossibleServerHAStateValues returns the possible values for the ServerHAState const type.
type ServerListResult ¶
type ServerListResult struct { // The link used to get the next page of operations. NextLink *string // The list of flexible servers Value []*Server }
ServerListResult - A list of servers.
func (ServerListResult) MarshalJSON ¶
func (s ServerListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerListResult.
func (*ServerListResult) UnmarshalJSON ¶
func (s *ServerListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerListResult.
type ServerProperties ¶
type ServerProperties struct { // The administrator's login name of a server. Can only be specified when the server is being created (and is required for // creation). AdministratorLogin *string // The administrator login password (required for server creation). AdministratorLoginPassword *string // AuthConfig properties of a server. AuthConfig *AuthConfig // availability zone information of the server. AvailabilityZone *string // Backup properties of a server. Backup *Backup // Cluster properties of a server. Cluster *Cluster // The mode to create a new PostgreSQL server. CreateMode *CreateMode // Data encryption properties of a server. DataEncryption *DataEncryption // High availability properties of a server. HighAvailability *HighAvailability // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow // Network properties of a server. This Network property is required to be passed only in case you want the server to be Private // access server. Network *Network // Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' // or 'GeoRestore' or 'ReviveDropped'. PointInTimeUTC *time.Time // Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server. Replica *Replica // Replication role of the server ReplicationRole *ReplicationRole // The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' // or 'Replica' or 'ReviveDropped'. This property is returned only for Replica // server SourceServerResourceID *string // Storage properties of a server. Storage *Storage // PostgreSQL Server version. Version *ServerVersion // READ-ONLY; The fully qualified domain name of a server. FullyQualifiedDomainName *string // READ-ONLY; The minor version of the server. MinorVersion *string // READ-ONLY; List of private endpoint connections associated with the specified resource. PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; Replicas allowed for a server. ReplicaCapacity *int32 // READ-ONLY; A state of a server that is visible to user. State *ServerState }
ServerProperties - The properties of a server.
func (ServerProperties) MarshalJSON ¶
func (s ServerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerProperties.
func (*ServerProperties) UnmarshalJSON ¶
func (s *ServerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerProperties.
type ServerPropertiesForUpdate ¶
type ServerPropertiesForUpdate struct { // The administrator's login name of a server. Can only be specified when the server is trying to switch to password authentication // and does not have default administrator login. AdministratorLogin *string // The password of the administrator login. AdministratorLoginPassword *string // AuthConfig properties of a server. AuthConfig *AuthConfig // Backup properties of a server. Backup *Backup // Cluster properties of a server. Cluster *Cluster // The mode to update a new PostgreSQL server. CreateMode *CreateModeForUpdate // Data encryption properties of a server. DataEncryption *DataEncryption // High availability properties of a server. HighAvailability *HighAvailability // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow // Network properties of a server. These are required to be passed only in case if server is a private access server. Network *Network // Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server. Replica *Replica // Replication role of the server ReplicationRole *ReplicationRole // Storage properties of a server. Storage *Storage // PostgreSQL Server version. Version 17 is currently not supported for MVU. Version *ServerVersion }
func (ServerPropertiesForUpdate) MarshalJSON ¶
func (s ServerPropertiesForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerPropertiesForUpdate.
func (*ServerPropertiesForUpdate) UnmarshalJSON ¶
func (s *ServerPropertiesForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerPropertiesForUpdate.
type ServerPublicNetworkAccessState ¶
type ServerPublicNetworkAccessState string
ServerPublicNetworkAccessState - public network access is enabled or not
const ( ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled" ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled" )
func PossibleServerPublicNetworkAccessStateValues ¶
func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState
PossibleServerPublicNetworkAccessStateValues returns the possible values for the ServerPublicNetworkAccessState const type.
type ServerSKU ¶
type ServerSKU struct { // The name of the sku, typically, tier + family + cores, e.g. StandardD4sv3. Name *string // The tier of the particular SKU, e.g. Burstable. Tier *SKUTier }
ServerSKU - Sku information related properties of a server.
func (ServerSKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type ServerSKU.
func (*ServerSKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type ServerSKU.
type ServerSKUCapability ¶
type ServerSKUCapability struct { // READ-ONLY; Sku name Name *string // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The value of security profile indicating if its confidential vm SecurityProfile *string // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; The supported features. SupportedFeatures []*SupportedFeature // READ-ONLY; Supported high availability mode SupportedHaMode []*HaMode // READ-ONLY; Supported IOPS SupportedIops *int32 // READ-ONLY; Supported memory per vCore in MB SupportedMemoryPerVcoreMb *int64 // READ-ONLY; List of supported Availability Zones. E.g. "1", "2", "3" SupportedZones []*string // READ-ONLY; Supported vCores VCores *int32 }
ServerSKUCapability - Sku capability
func (ServerSKUCapability) MarshalJSON ¶
func (s ServerSKUCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerSKUCapability.
func (*ServerSKUCapability) UnmarshalJSON ¶
func (s *ServerSKUCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerSKUCapability.
type ServerState ¶
type ServerState string
ServerState - A state of a server that is visible to user.
const ( ServerStateDisabled ServerState = "Disabled" ServerStateDropping ServerState = "Dropping" ServerStateInaccessible ServerState = "Inaccessible" ServerStateProvisioning ServerState = "Provisioning" ServerStateReady ServerState = "Ready" ServerStateRestarting ServerState = "Restarting" ServerStateStarting ServerState = "Starting" ServerStateStopped ServerState = "Stopped" ServerStateStopping ServerState = "Stopping" ServerStateUpdating ServerState = "Updating" )
func PossibleServerStateValues ¶
func PossibleServerStateValues() []ServerState
PossibleServerStateValues returns the possible values for the ServerState const type.
type ServerThreatProtectionListResult ¶
type ServerThreatProtectionListResult struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; Array of results. Value []*ServerThreatProtectionSettingsModel }
ServerThreatProtectionListResult - A list of the server's Advanced Threat Protection settings.
func (ServerThreatProtectionListResult) MarshalJSON ¶
func (s ServerThreatProtectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerThreatProtectionListResult.
func (*ServerThreatProtectionListResult) UnmarshalJSON ¶
func (s *ServerThreatProtectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerThreatProtectionListResult.
type ServerThreatProtectionProperties ¶
type ServerThreatProtectionProperties struct { // REQUIRED; Specifies the state of the Threat Protection, whether it is enabled or disabled or a state has not been applied // yet on the specific server. State *ThreatProtectionState // READ-ONLY; Specifies the UTC creation time of the policy. CreationTime *time.Time }
ServerThreatProtectionProperties - Properties of server Threat Protection state.
func (ServerThreatProtectionProperties) MarshalJSON ¶
func (s ServerThreatProtectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerThreatProtectionProperties.
func (*ServerThreatProtectionProperties) UnmarshalJSON ¶
func (s *ServerThreatProtectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerThreatProtectionProperties.
type ServerThreatProtectionSettingsClient ¶
type ServerThreatProtectionSettingsClient struct {
// contains filtered or unexported fields
}
ServerThreatProtectionSettingsClient contains the methods for the ServerThreatProtectionSettings group. Don't use this type directly, use NewServerThreatProtectionSettingsClient() instead.
func NewServerThreatProtectionSettingsClient ¶
func NewServerThreatProtectionSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServerThreatProtectionSettingsClient, error)
NewServerThreatProtectionSettingsClient creates a new instance of ServerThreatProtectionSettingsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServerThreatProtectionSettingsClient) BeginCreateOrUpdate ¶
func (client *ServerThreatProtectionSettingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, threatProtectionName ThreatProtectionName, parameters ServerThreatProtectionSettingsModel, options *ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServerThreatProtectionSettingsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a server's Advanced Threat Protection settings. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- threatProtectionName - The name of the Threat Protection state.
- parameters - The Advanced Threat Protection state for the flexible server.
- options - ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerThreatProtectionSettingsCreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServerThreatProtectionSettingsClient().BeginCreateOrUpdate(ctx, "threatprotection-4799", "threatprotection-6440", armpostgresqlflexibleservers.ThreatProtectionNameDefault, armpostgresqlflexibleservers.ServerThreatProtectionSettingsModel{ Properties: &armpostgresqlflexibleservers.ServerThreatProtectionProperties{ State: to.Ptr(armpostgresqlflexibleservers.ThreatProtectionStateEnabled), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerThreatProtectionSettingsModel = armpostgresqlflexibleservers.ServerThreatProtectionSettingsModel{ // Name: to.Ptr("Default"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings"), // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/threatprotection-4799/providers/Microsoft.DBforPostgreSQL/flexibleServers/threatprotection-6440/advancedThreatProtectionSettings/Default"), // Properties: &armpostgresqlflexibleservers.ServerThreatProtectionProperties{ // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-03T04:41:33.937Z"); return t}()), // State: to.Ptr(armpostgresqlflexibleservers.ThreatProtectionStateEnabled), // }, // }
func (*ServerThreatProtectionSettingsClient) Get ¶
func (client *ServerThreatProtectionSettingsClient) Get(ctx context.Context, resourceGroupName string, serverName string, threatProtectionName ThreatProtectionName, options *ServerThreatProtectionSettingsClientGetOptions) (ServerThreatProtectionSettingsClientGetResponse, error)
Get - Get a server's Advanced Threat Protection settings. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- threatProtectionName - The name of the Threat Protection state.
- options - ServerThreatProtectionSettingsClientGetOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerThreatProtectionSettingsGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServerThreatProtectionSettingsClient().Get(ctx, "threatprotection-6852", "threatprotection-2080", armpostgresqlflexibleservers.ThreatProtectionNameDefault, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerThreatProtectionSettingsModel = armpostgresqlflexibleservers.ServerThreatProtectionSettingsModel{ // Name: to.Ptr("Default"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings"), // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/threatprotection-4799/providers/Microsoft.DBforPostgreSQL/flexibleServers/threatprotection-6440/advancedThreatProtectionSettings/Default"), // Properties: &armpostgresqlflexibleservers.ServerThreatProtectionProperties{ // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-03T04:41:33.937Z"); return t}()), // State: to.Ptr(armpostgresqlflexibleservers.ThreatProtectionStateEnabled), // }, // }
func (*ServerThreatProtectionSettingsClient) NewListByServerPager ¶
func (client *ServerThreatProtectionSettingsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerThreatProtectionSettingsClientListByServerOptions) *runtime.Pager[ServerThreatProtectionSettingsClientListByServerResponse]
NewListByServerPager - Get a list of server's Threat Protection state.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServerThreatProtectionSettingsClientListByServerOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerThreatProtectionSettingsListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServerThreatProtectionSettingsClient().NewListByServerPager("threatprotection-6852", "threatprotection-2080", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerThreatProtectionListResult = armpostgresqlflexibleservers.ServerThreatProtectionListResult{ // Value: []*armpostgresqlflexibleservers.ServerThreatProtectionSettingsModel{ // { // Name: to.Ptr("Default"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings"), // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/threatprotection-6852/providers/Microsoft.DBforPostgreSQL/flexibleServers/threatprotection-2080/advancedThreatProtectionSettings/Default"), // Properties: &armpostgresqlflexibleservers.ServerThreatProtectionProperties{ // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-03T04:41:33.937Z"); return t}()), // State: to.Ptr(armpostgresqlflexibleservers.ThreatProtectionStateEnabled), // }, // }}, // } }
type ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions ¶
type ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.BeginCreateOrUpdate method.
type ServerThreatProtectionSettingsClientCreateOrUpdateResponse ¶
type ServerThreatProtectionSettingsClientCreateOrUpdateResponse struct { // Server's Advanced Threat Protection settings. ServerThreatProtectionSettingsModel }
ServerThreatProtectionSettingsClientCreateOrUpdateResponse contains the response from method ServerThreatProtectionSettingsClient.BeginCreateOrUpdate.
type ServerThreatProtectionSettingsClientGetOptions ¶
type ServerThreatProtectionSettingsClientGetOptions struct { }
ServerThreatProtectionSettingsClientGetOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.Get method.
type ServerThreatProtectionSettingsClientGetResponse ¶
type ServerThreatProtectionSettingsClientGetResponse struct { // Server's Advanced Threat Protection settings. ServerThreatProtectionSettingsModel }
ServerThreatProtectionSettingsClientGetResponse contains the response from method ServerThreatProtectionSettingsClient.Get.
type ServerThreatProtectionSettingsClientListByServerOptions ¶
type ServerThreatProtectionSettingsClientListByServerOptions struct { }
ServerThreatProtectionSettingsClientListByServerOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.NewListByServerPager method.
type ServerThreatProtectionSettingsClientListByServerResponse ¶
type ServerThreatProtectionSettingsClientListByServerResponse struct { // A list of the server's Advanced Threat Protection settings. ServerThreatProtectionListResult }
ServerThreatProtectionSettingsClientListByServerResponse contains the response from method ServerThreatProtectionSettingsClient.NewListByServerPager.
type ServerThreatProtectionSettingsModel ¶
type ServerThreatProtectionSettingsModel struct { // Advanced Threat Protection properties. Properties *ServerThreatProtectionProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ServerThreatProtectionSettingsModel - Server's Advanced Threat Protection settings.
func (ServerThreatProtectionSettingsModel) MarshalJSON ¶
func (s ServerThreatProtectionSettingsModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerThreatProtectionSettingsModel.
func (*ServerThreatProtectionSettingsModel) UnmarshalJSON ¶
func (s *ServerThreatProtectionSettingsModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerThreatProtectionSettingsModel.
type ServerVersion ¶
type ServerVersion string
ServerVersion - The version of a server.
const ( ServerVersionEleven ServerVersion = "11" ServerVersionFifteen ServerVersion = "15" ServerVersionFourteen ServerVersion = "14" ServerVersionSeventeen ServerVersion = "17" ServerVersionSixteen ServerVersion = "16" ServerVersionThirteen ServerVersion = "13" ServerVersionTwelve ServerVersion = "12" )
func PossibleServerVersionValues ¶
func PossibleServerVersionValues() []ServerVersion
PossibleServerVersionValues returns the possible values for the ServerVersion const type.
type ServerVersionCapability ¶
type ServerVersionCapability struct { // READ-ONLY; Server version Name *string // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; The supported features. SupportedFeatures []*SupportedFeature // READ-ONLY; Supported servers versions to upgrade SupportedVersionsToUpgrade []*string }
ServerVersionCapability - Server version capabilities.
func (ServerVersionCapability) MarshalJSON ¶
func (s ServerVersionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerVersionCapability.
func (*ServerVersionCapability) UnmarshalJSON ¶
func (s *ServerVersionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerVersionCapability.
type ServersClient ¶
type ServersClient struct {
// contains filtered or unexported fields
}
ServersClient contains the methods for the Servers group. Don't use this type directly, use NewServersClient() instead.
func NewServersClient ¶
func NewServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServersClient, error)
NewServersClient creates a new instance of ServersClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServersClient) BeginCreate ¶
func (client *ServersClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, parameters Server, options *ServersClientBeginCreateOptions) (*runtime.Poller[ServersClientCreateResponse], error)
BeginCreate - Creates a new server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- parameters - The required parameters for creating or updating a server.
- options - ServersClientBeginCreateOptions contains the optional parameters for the ServersClient.BeginCreate method.
Example (ClusterCreate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ClusterCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestcluster", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("login"), AdministratorLoginPassword: to.Ptr("Password1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, Cluster: &armpostgresqlflexibleservers.Cluster{ ClusterSize: to.Ptr[int32](2), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), }, Network: &armpostgresqlflexibleservers.Network{ PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), }, Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), StorageSizeGB: to.Ptr[int32](256), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP15), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4ds_v5"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestcluster"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestcluster"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-10T18:31:50.730Z"); return t}()), // }, // Location: to.Ptr("westus"), // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-10T18:40:39.045Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // Cluster: &armpostgresqlflexibleservers.Cluster{ // ClusterSize: to.Ptr[int32](2), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // ReplicationState: to.Ptr(armpostgresqlflexibleservers.ReplicationStateActive), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](1100), // StorageSizeGB: to.Ptr[int32](256), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP15), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (CreateADatabaseAsAGeoRestoreInGeoPairedLocation) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreateGeoRestoreWithDataEncryptionEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5geo", armpostgresqlflexibleservers.Server{ Location: to.Ptr("eastus"), Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": {}, "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeGeoRestore), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), GeoBackupKeyURI: to.Ptr("https://test-geo-kv.vault.azure.net/keys/test-key1/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"), GeoBackupUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity"), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5geo"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5geo"), // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // TenantID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("llllllll-llll-llll-llll-llllllllllll"), // PrincipalID: to.Ptr("rrrrrrrr-rrrr-rrrr-rrrr-rrrrrrrrrrrr"), // }, // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // GeoBackupEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // GeoBackupKeyURI: to.Ptr("https://test-geo-kv.vault.azure.net/keys/test-key1/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"), // GeoBackupUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity"), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5geo.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (CreateADatabaseAsAPointInTimeRestore) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreatePointInTimeRestore.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModePointInTimeRestore), PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (CreateANewServer) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "testpgflex", armpostgresqlflexibleservers.Server{ Location: to.Ptr("eastus"), Tags: map[string]*string{ "VNetServer": to.Ptr("1"), }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("login"), AdministratorLoginPassword: to.Ptr("Password1"), AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/testpgflex.private.postgres.database"), }, Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), StorageSizeGB: to.Ptr[int32](512), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4ds_v5"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("testpgflex"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testpgflex"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:44:30.709Z"); return t}()), // }, // Location: to.Ptr("East US"), // Tags: map[string]*string{ // "VnetServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:49:56.940Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("testpgflex.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/testpgflex.private.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (CreateANewServerWithMicrosoftEntraAuthenticationEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreateWithMicrosoftEntraEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Tags: map[string]*string{ "ElasticServer": to.Ptr("1"), }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("login"), AdministratorLoginPassword: to.Ptr("Password1"), AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), }, AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), }, HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), }, Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), StorageSizeGB: to.Ptr[int32](512), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4ds_v5"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:08:06.719Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerCreateReplica) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreateReplica.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5rep", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeReplica), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), GeoBackupKeyURI: to.Ptr(""), GeoBackupUserAssignedIdentityID: to.Ptr(""), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5rep"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // TenantID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](0), // ReplicationState: to.Ptr(armpostgresqlflexibleservers.ReplicationStateActive), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // }, // ReplicaCapacity: to.Ptr[int32](0), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerCreateReviveDropped) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreateReviveDropped.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5-rev", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeReviveDropped), PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5-rev"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5-rev"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5-rev.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // ReplicaCapacity: to.Ptr[int32](0), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerCreateWithDataEncryptionEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerCreateWithDataEncryptionEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("login"), AdministratorLoginPassword: to.Ptr("Password1"), AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), GeoBackupKeyURI: to.Ptr(""), GeoBackupUserAssignedIdentityID: to.Ptr(""), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), }, Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), StorageSizeGB: to.Ptr[int32](512), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4ds_v5"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // TenantID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:08:06.719Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
func (*ServersClient) BeginDelete ¶
func (client *ServersClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginDeleteOptions) (*runtime.Poller[ServersClientDeleteResponse], error)
BeginDelete - Deletes a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServersClientBeginDeleteOptions contains the optional parameters for the ServersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginDelete(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*ServersClient) BeginRestart ¶
func (client *ServersClient) BeginRestart(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginRestartOptions) (*runtime.Poller[ServersClientRestartResponse], error)
BeginRestart - Restarts a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServersClientBeginRestartOptions contains the optional parameters for the ServersClient.BeginRestart method.
Example (ServerRestart) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerRestart.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Example (ServerRestartWithFailover) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerRestartWithFailover.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: &armpostgresqlflexibleservers.RestartParameter{ FailoverMode: to.Ptr(armpostgresqlflexibleservers.FailoverModeForcedFailover), RestartWithFailover: to.Ptr(true), }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*ServersClient) BeginStart ¶
func (client *ServersClient) BeginStart(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStartOptions) (*runtime.Poller[ServersClientStartResponse], error)
BeginStart - Starts a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServersClientBeginStartOptions contains the optional parameters for the ServersClient.BeginStart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerStart.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginStart(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*ServersClient) BeginStop ¶
func (client *ServersClient) BeginStop(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStopOptions) (*runtime.Poller[ServersClientStopResponse], error)
BeginStop - Stops a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServersClientBeginStopOptions contains the optional parameters for the ServersClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerStop.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginStop(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*ServersClient) BeginUpdate ¶
func (client *ServersClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate, options *ServersClientBeginUpdateOptions) (*runtime.Poller[ServersClientUpdateResponse], error)
BeginUpdate - Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- parameters - The required parameters for updating a server.
- options - ServersClientBeginUpdateOptions contains the optional parameters for the ServersClient.BeginUpdate method.
Example (PromoteAReplicaServerAsAStandaloneServerAsForcedIEItWillPromoteAReplicaServerImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PromoteReplicaAsForcedStandaloneServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testResourceGroup", "pgtestsvc4-replica", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ Replica: &armpostgresqlflexibleservers.Replica{ PromoteMode: to.Ptr(armpostgresqlflexibleservers.ReadReplicaPromoteModeStandalone), PromoteOption: to.Ptr(armpostgresqlflexibleservers.ReplicationPromoteOptionForced), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4-replica"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4-replica"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4-replica.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](0), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleNone), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (PromoteAReplicaServerAsAStandaloneServerAsPlannedIEItWillWaitForReplicationToComplete) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PromoteReplicaAsPlannedStandaloneServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testResourceGroup", "pgtestsvc4-replica", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ Replica: &armpostgresqlflexibleservers.Replica{ PromoteMode: to.Ptr(armpostgresqlflexibleservers.ReadReplicaPromoteModeStandalone), PromoteOption: to.Ptr(armpostgresqlflexibleservers.ReplicationPromoteOptionPlanned), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4-replica"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4-replica"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4-replica.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](0), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleNone), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), StorageSizeGB: to.Ptr[int32](1024), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerUpdateWithCustomerMaintenanceWindow) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ CustomWindow: to.Ptr("Enabled"), DayOfWeek: to.Ptr[int32](0), StartHour: to.Ptr[int32](8), StartMinute: to.Ptr[int32](0), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Enabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](8), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerUpdateWithDataEncryptionEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerUpdateWithDataEncryptionEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": {}, "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), GeoBackupKeyURI: to.Ptr("https://test-geo-kv.vault.azure.net/keys/test-key1/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"), GeoBackupUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity"), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // TenantID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity-1": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("cccccccc-cccc-cccc-cccc-cccccccccccc"), // PrincipalID: to.Ptr("90008082-e024-4cc3-8fcf-63bcdb9cf6b6"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // GeoBackupEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // GeoBackupKeyURI: to.Ptr("https://test-geo-kv.vault.azure.net/keys/test-key1/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"), // GeoBackupUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity"), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerUpdateWithMajorVersionUpgrade) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerUpdateWithMajorVersionUpgrade.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerUpdateWithMicrosoftEntraEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerUpdateWithMicrosoftEntraEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), }, Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Storage: &armpostgresqlflexibleservers.Storage{ AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), StorageSizeGB: to.Ptr[int32](1024), Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (SwitchOverAReplicaServerAsForcedIEItWillReplicaAsPrimaryAndOriginalPrimaryAsReplicaImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PromoteReplicaAsForcedSwitchover.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testResourceGroup", "pgtestsvc4-replica", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ Replica: &armpostgresqlflexibleservers.Replica{ PromoteMode: to.Ptr(armpostgresqlflexibleservers.ReadReplicaPromoteModeSwitchover), PromoteOption: to.Ptr(armpostgresqlflexibleservers.ReplicationPromoteOptionForced), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4-replica"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4-replica"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4-replica.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (SwitchOverAReplicaServerAsPlannedIEItWillWaitForReplicationToCompleteBeforePromotingReplicaAsPrimaryAndOriginalPrimaryAsReplica) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/PromoteReplicaAsPlannedSwitchover.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testResourceGroup", "pgtestsvc4-replica", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ Replica: &armpostgresqlflexibleservers.Replica{ PromoteMode: to.Ptr(armpostgresqlflexibleservers.ReadReplicaPromoteModeSwitchover), PromoteOption: to.Ptr(armpostgresqlflexibleservers.ReplicationPromoteOptionPlanned), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4-replica"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4-replica"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc4-replica.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowEnabled), // Iops: to.Ptr[int32](5000), // StorageSizeGB: to.Ptr[int32](1024), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP30), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
func (*ServersClient) Get ¶
func (client *ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientGetOptions) (ServersClientGetResponse, error)
Get - Gets information about a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - ServersClientGetOptions contains the optional parameters for the ServersClient.Get method.
Example (ServerGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "testpgflex", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("testpgflex"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testpgflex"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-12-02T21:26:40.243Z"); return t}()), // }, // Location: to.Ptr("East US"), // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-25T02:11:46.457Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("testpgflex.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](500), // StorageSizeGB: to.Ptr[int32](128), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP10), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerGetWithPrivateEndpoints) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerGetWithPrivateEndpoints.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "pgtestsvc2", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc2"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T23:07:25.816Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc2.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // { // Name: to.Ptr("asdfasdfa.40c899c7-5847-493e-9c9e-d0a0c90aaf92"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc2/privateEndpointConnections/asdfasdfa.40c899c7-5847-493e-9c9e-d0a0c90aaf92"), // Properties: &armpostgresqlflexibleservers.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ // to.Ptr("postgresqlServer")}, // PrivateEndpoint: &armpostgresqlflexibleservers.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/pe-test-rg/providers/Microsoft.Network/privateEndpoints/asdfasdfa"), // }, // PrivateLinkServiceConnectionState: &armpostgresqlflexibleservers.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armpostgresqlflexibleservers.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // }}, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Example (ServerGetWithVnet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerGetWithVnet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "testpgflex", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("testpgflex"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testpgflex"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:44:30.709Z"); return t}()), // }, // Location: to.Ptr("East US"), // Tags: map[string]*string{ // "VnetServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:49:56.940Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("testpgflex.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/testpgflex.private.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
func (*ServersClient) NewListByResourceGroupPager ¶
func (client *ServersClient) NewListByResourceGroupPager(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the servers in a given resource group.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServersClient().NewListByResourceGroupPager("testrgn", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtest2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest2"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:44:30.709Z"); return t}()), // }, // Location: to.Ptr("East US"), // Tags: map[string]*string{ // "VnetServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:49:56.940Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtest2.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.Network/privateDnsZones/pgtest2.private.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtest6"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest6"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-23T00:13:34.864Z"); return t}()), // }, // Location: to.Ptr("East US 2"), // Tags: map[string]*string{ // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("rrrrrrrr-rrrr-rrrr-rrrr-rrrrrrrrrrrr"), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-user": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-25T01:24:56.297Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-vault1.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-user"), // }, // FullyQualifiedDomainName: to.Ptr("pgtest6.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](500), // StorageSizeGB: to.Ptr[int32](128), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP10), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
func (*ServersClient) NewListPager ¶
func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse]
NewListPager - List all the servers in a given subscription.
Generated from API version 2025-01-01-preview
- options - ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/ServerList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServersClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtest2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest2"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:44:30.709Z"); return t}()), // }, // Location: to.Ptr("East US"), // Tags: map[string]*string{ // "VnetServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T17:49:56.940Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtest2.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.Network/privateDnsZones/pgtest2.private.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](2300), // StorageSizeGB: to.Ptr[int32](512), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP20), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtest3"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg6/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest3"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T23:41:01.102Z"); return t}()), // }, // Location: to.Ptr("East US"), // Tags: map[string]*string{ // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-03T23:48:24.491Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtest3.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("1"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](500), // StorageSizeGB: to.Ptr[int32](128), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP10), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtest6"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest6"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-23T00:13:34.864Z"); return t}()), // }, // Location: to.Ptr("East US 2"), // Tags: map[string]*string{ // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeSystemAssignedUserAssigned), // PrincipalID: to.Ptr("rrrrrrrr-rrrr-rrrr-rrrr-rrrrrrrrrrrr"), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrgn/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-user": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // PrincipalID: to.Ptr("pppppppp-pppp-pppp-pppp-pppppppppppp"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-25T01:24:56.297Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryEncryptionKeyStatus: to.Ptr(armpostgresqlflexibleservers.KeyStatusEnumValid), // PrimaryKeyURI: to.Ptr("https://test-vault1.vault.azure.net/keys/test-key1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-user"), // }, // FullyQualifiedDomainName: to.Ptr("pgtest6.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageType("")), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](500), // StorageSizeGB: to.Ptr[int32](128), // Tier: to.Ptr(armpostgresqlflexibleservers.AzureManagedDiskPerformanceTiersP10), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtest9"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg9/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtest9"), // SystemData: &armpostgresqlflexibleservers.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T21:17:37.501Z"); return t}()), // }, // Location: to.Ptr("East US 2"), // Tags: map[string]*string{ // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("login"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-02-26T21:41:19.335Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtest9.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("8"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // PrivateEndpointConnections: []*armpostgresqlflexibleservers.PrivateEndpointConnection{ // }, // Replica: &armpostgresqlflexibleservers.Replica{ // Capacity: to.Ptr[int32](5), // Role: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // }, // ReplicaCapacity: to.Ptr[int32](5), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRolePrimary), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // Type: to.Ptr(armpostgresqlflexibleservers.StorageTypePremiumV2LRS), // AutoGrow: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowDisabled), // Iops: to.Ptr[int32](3000), // StorageSizeGB: to.Ptr[int32](512), // Throughput: to.Ptr[int32](125), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionSixteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4ds_v5"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
type ServersClientBeginCreateOptions ¶
type ServersClientBeginCreateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginCreateOptions contains the optional parameters for the ServersClient.BeginCreate method.
type ServersClientBeginDeleteOptions ¶
type ServersClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginDeleteOptions contains the optional parameters for the ServersClient.BeginDelete method.
type ServersClientBeginRestartOptions ¶
type ServersClientBeginRestartOptions struct { // The parameters for restarting a server. Parameters *RestartParameter // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginRestartOptions contains the optional parameters for the ServersClient.BeginRestart method.
type ServersClientBeginStartOptions ¶
type ServersClientBeginStartOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginStartOptions contains the optional parameters for the ServersClient.BeginStart method.
type ServersClientBeginStopOptions ¶
type ServersClientBeginStopOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginStopOptions contains the optional parameters for the ServersClient.BeginStop method.
type ServersClientBeginUpdateOptions ¶
type ServersClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
ServersClientBeginUpdateOptions contains the optional parameters for the ServersClient.BeginUpdate method.
type ServersClientCreateResponse ¶
type ServersClientCreateResponse struct { // Represents a server. Server }
ServersClientCreateResponse contains the response from method ServersClient.BeginCreate.
type ServersClientDeleteResponse ¶
type ServersClientDeleteResponse struct { }
ServersClientDeleteResponse contains the response from method ServersClient.BeginDelete.
type ServersClientGetOptions ¶
type ServersClientGetOptions struct { }
ServersClientGetOptions contains the optional parameters for the ServersClient.Get method.
type ServersClientGetResponse ¶
type ServersClientGetResponse struct { // Represents a server. Server }
ServersClientGetResponse contains the response from method ServersClient.Get.
type ServersClientListByResourceGroupOptions ¶
type ServersClientListByResourceGroupOptions struct { }
ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager method.
type ServersClientListByResourceGroupResponse ¶
type ServersClientListByResourceGroupResponse struct { // A list of servers. ServerListResult }
ServersClientListByResourceGroupResponse contains the response from method ServersClient.NewListByResourceGroupPager.
type ServersClientListOptions ¶
type ServersClientListOptions struct { }
ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method.
type ServersClientListResponse ¶
type ServersClientListResponse struct { // A list of servers. ServerListResult }
ServersClientListResponse contains the response from method ServersClient.NewListPager.
type ServersClientRestartResponse ¶
type ServersClientRestartResponse struct { }
ServersClientRestartResponse contains the response from method ServersClient.BeginRestart.
type ServersClientStartResponse ¶
type ServersClientStartResponse struct { }
ServersClientStartResponse contains the response from method ServersClient.BeginStart.
type ServersClientStopResponse ¶
type ServersClientStopResponse struct { }
ServersClientStopResponse contains the response from method ServersClient.BeginStop.
type ServersClientUpdateResponse ¶
type ServersClientUpdateResponse struct { // Represents a server. Server }
ServersClientUpdateResponse contains the response from method ServersClient.BeginUpdate.
type SessionDetailsListResult ¶
type SessionDetailsListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // A list of details of the session. Value []*SessionDetailsResource }
SessionDetailsListResult - A list of tuning configuration sessions.
func (SessionDetailsListResult) MarshalJSON ¶
func (s SessionDetailsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SessionDetailsListResult.
func (*SessionDetailsListResult) UnmarshalJSON ¶
func (s *SessionDetailsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SessionDetailsListResult.
type SessionDetailsResource ¶
type SessionDetailsResource struct { // Applied configuration for the iteration. AppliedConfiguration *string // The aqr for the iteration. AverageQueryRuntimeMs *string // Iteration id. IterationID *string // Iteration start time. IterationStartTime *string // Session id. SessionID *string // The tps for the iteration. TransactionsPerSecond *string }
SessionDetailsResource - Session details properties.
func (SessionDetailsResource) MarshalJSON ¶
func (s SessionDetailsResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SessionDetailsResource.
func (*SessionDetailsResource) UnmarshalJSON ¶
func (s *SessionDetailsResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SessionDetailsResource.
type SessionResource ¶
type SessionResource struct { // The post tuning aqr. PostTuningAqr *string // The post tuning tps. PostTuningTps *string // The pre tuning aqr. PreTuningAqr *string // The pre tuning tps. PreTuningTps *string // Session id. SessionID *string // the tuning session start time. SessionStartTime *string // The status of the tuning session. Status *string }
SessionResource - Session resource properties.
func (SessionResource) MarshalJSON ¶
func (s SessionResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SessionResource.
func (*SessionResource) UnmarshalJSON ¶
func (s *SessionResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SessionResource.
type SessionsListResult ¶
type SessionsListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // A list of tuning configuration sessions. Value []*SessionResource }
SessionsListResult - A list of tuning configuration sessions.
func (SessionsListResult) MarshalJSON ¶
func (s SessionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SessionsListResult.
func (*SessionsListResult) UnmarshalJSON ¶
func (s *SessionsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SessionsListResult.
type SourceType ¶
type SourceType string
SourceType - Migration source server type : OnPremises, AWS, GCP, AzureVM, PostgreSQLSingleServer, AWSRDS, AWSAURORA, AWSEC2, GCPCloudSQL, GCPAlloyDB, GCPCompute, EDB, EDBOracleServer, EDBPostgreSQL, PostgreSQLFlexibleServer, PostgreSQLCosmosDB, HuaweiRDS, HuaweiCompute, HerokuPostgreSQL, CrunchyPostgreSQL, ApsaraDBRDS, DigitalOceanDroplets, DigitalOceanPostgreSQL, or Supabase_PostgreSQL
const ( SourceTypeAWS SourceType = "AWS" SourceTypeAWSAURORA SourceType = "AWS_AURORA" SourceTypeAWSEC2 SourceType = "AWS_EC2" SourceTypeAWSRDS SourceType = "AWS_RDS" SourceTypeApsaraDBRDS SourceType = "ApsaraDB_RDS" SourceTypeAzureVM SourceType = "AzureVM" SourceTypeCrunchyPostgreSQL SourceType = "Crunchy_PostgreSQL" SourceTypeDigitalOceanDroplets SourceType = "Digital_Ocean_Droplets" SourceTypeDigitalOceanPostgreSQL SourceType = "Digital_Ocean_PostgreSQL" SourceTypeEDB SourceType = "EDB" SourceTypeEDBOracleServer SourceType = "EDB_Oracle_Server" SourceTypeEDBPostgreSQL SourceType = "EDB_PostgreSQL" SourceTypeGCP SourceType = "GCP" SourceTypeGCPAlloyDB SourceType = "GCP_AlloyDB" SourceTypeGCPCloudSQL SourceType = "GCP_CloudSQL" SourceTypeGCPCompute SourceType = "GCP_Compute" SourceTypeHerokuPostgreSQL SourceType = "Heroku_PostgreSQL" SourceTypeHuaweiCompute SourceType = "Huawei_Compute" SourceTypeHuaweiRDS SourceType = "Huawei_RDS" SourceTypeOnPremises SourceType = "OnPremises" SourceTypePostgreSQLCosmosDB SourceType = "PostgreSQLCosmosDB" SourceTypePostgreSQLFlexibleServer SourceType = "PostgreSQLFlexibleServer" SourceTypePostgreSQLSingleServer SourceType = "PostgreSQLSingleServer" SourceTypeSupabasePostgreSQL SourceType = "Supabase_PostgreSQL" )
func PossibleSourceTypeValues ¶
func PossibleSourceTypeValues() []SourceType
PossibleSourceTypeValues returns the possible values for the SourceType const type.
type StartDataMigrationEnum ¶
type StartDataMigrationEnum string
StartDataMigrationEnum - Indicates whether the data migration should start right away
const ( StartDataMigrationEnumFalse StartDataMigrationEnum = "False" StartDataMigrationEnumTrue StartDataMigrationEnum = "True" )
func PossibleStartDataMigrationEnumValues ¶
func PossibleStartDataMigrationEnumValues() []StartDataMigrationEnum
PossibleStartDataMigrationEnumValues returns the possible values for the StartDataMigrationEnum const type.
type Storage ¶
type Storage struct { // Flag to enable / disable Storage Auto grow for flexible server. AutoGrow *StorageAutoGrow // Storage IOPS quantity. This property is required to be set for storage Type PremiumV2LRS and UltraSSDLRS. Iops *int32 // Max storage allowed for a server. StorageSizeGB *int32 // Storage throughput for the server. This is required to be set for storage Type PremiumV2LRS and UltraSSDLRS. Throughput *int32 // Name of storage tier for IOPS. Tier *AzureManagedDiskPerformanceTiers // Storage type for the server. Allowed values are PremiumLRS, PremiumV2LRS, and UltraSSDLRS. Default is PremiumLRS if not // specified Type *StorageType }
Storage properties of a server
func (Storage) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Storage.
func (*Storage) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Storage.
type StorageAutoGrow ¶
type StorageAutoGrow string
StorageAutoGrow - Flag to enable / disable Storage Auto grow for flexible server.
const ( StorageAutoGrowDisabled StorageAutoGrow = "Disabled" StorageAutoGrowEnabled StorageAutoGrow = "Enabled" )
func PossibleStorageAutoGrowValues ¶
func PossibleStorageAutoGrowValues() []StorageAutoGrow
PossibleStorageAutoGrowValues returns the possible values for the StorageAutoGrow const type.
type StorageAutoGrowthSupportedEnum ¶
type StorageAutoGrowthSupportedEnum string
StorageAutoGrowthSupportedEnum - A value indicating whether storage auto-grow is supported in this region. "Enabled" means storage auto-grow is supported. "Disabled" stands for storage auto-grow is not supported. Will be deprecated in future, please look to Supported Features for "StorageAutoGrowth".
const ( StorageAutoGrowthSupportedEnumDisabled StorageAutoGrowthSupportedEnum = "Disabled" StorageAutoGrowthSupportedEnumEnabled StorageAutoGrowthSupportedEnum = "Enabled" )
func PossibleStorageAutoGrowthSupportedEnumValues ¶
func PossibleStorageAutoGrowthSupportedEnumValues() []StorageAutoGrowthSupportedEnum
PossibleStorageAutoGrowthSupportedEnumValues returns the possible values for the StorageAutoGrowthSupportedEnum const type.
type StorageEditionCapability ¶
type StorageEditionCapability struct { // READ-ONLY; Default storage size in MB for storage edition DefaultStorageSizeMb *int64 // READ-ONLY; Storage edition name Name *string // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; Flexible server supported storage range in MB SupportedStorageMb []*StorageMbCapability }
StorageEditionCapability - Storage edition capability
func (StorageEditionCapability) MarshalJSON ¶
func (s StorageEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageEditionCapability.
func (*StorageEditionCapability) UnmarshalJSON ¶
func (s *StorageEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageEditionCapability.
type StorageMbCapability ¶
type StorageMbCapability struct { // READ-ONLY; Default tier for IOPS DefaultIopsTier *string // READ-ONLY; Maximum value of Storage size in MB MaximumStorageSizeMb *int64 // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The status of the capability. Status *CapabilityStatus // READ-ONLY; Storage size in MB StorageSizeMb *int64 // READ-ONLY; Supported IOPS SupportedIops *int32 // READ-ONLY; List of available options to upgrade the storage performance SupportedIopsTiers []*StorageTierCapability // READ-ONLY; Maximum IOPS supported by this #Vcores or PremiumV2_LRS Storage Size SupportedMaximumIops *int32 // READ-ONLY; Maximum values of throughput in MB/s SupportedMaximumThroughput *int32 // READ-ONLY; Values of throughput in MB/s SupportedThroughput *int32 }
StorageMbCapability - storage size in MB capability
func (StorageMbCapability) MarshalJSON ¶
func (s StorageMbCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageMbCapability.
func (*StorageMbCapability) UnmarshalJSON ¶
func (s *StorageMbCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageMbCapability.
type StorageTierCapability ¶
type StorageTierCapability struct { // READ-ONLY; Supported IOPS for this storage tier Iops *int32 // READ-ONLY; Name to represent Storage tier capability Name *string // READ-ONLY; The reason for the capability not being available. Reason *string // READ-ONLY; The status of the capability. Status *CapabilityStatus }
StorageTierCapability - Represents capability of a storage tier
func (StorageTierCapability) MarshalJSON ¶
func (s StorageTierCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageTierCapability.
func (*StorageTierCapability) UnmarshalJSON ¶
func (s *StorageTierCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageTierCapability.
type StorageType ¶
type StorageType string
StorageType - Storage type for the server. Allowed values are PremiumLRS, PremiumV2LRS, and UltraSSDLRS. Default is PremiumLRS if not specified
const ( StorageTypePremiumLRS StorageType = "Premium_LRS" StorageTypePremiumV2LRS StorageType = "PremiumV2_LRS" StorageTypeUltraSSDLRS StorageType = "UltraSSD_LRS" )
func PossibleStorageTypeValues ¶
func PossibleStorageTypeValues() []StorageType
PossibleStorageTypeValues returns the possible values for the StorageType const type.
type SupportedFeature ¶
type SupportedFeature struct { // READ-ONLY; Name of feature Name *string // READ-ONLY; Status of feature Status *SupportedFeatureStatusEnum }
SupportedFeature - The supported features.
func (SupportedFeature) MarshalJSON ¶
func (s SupportedFeature) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SupportedFeature.
func (*SupportedFeature) UnmarshalJSON ¶
func (s *SupportedFeature) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SupportedFeature.
type SupportedFeatureStatusEnum ¶
type SupportedFeatureStatusEnum string
SupportedFeatureStatusEnum - Status of feature
const ( SupportedFeatureStatusEnumDisabled SupportedFeatureStatusEnum = "Disabled" SupportedFeatureStatusEnumEnabled SupportedFeatureStatusEnum = "Enabled" )
func PossibleSupportedFeatureStatusEnumValues ¶
func PossibleSupportedFeatureStatusEnumValues() []SupportedFeatureStatusEnum
PossibleSupportedFeatureStatusEnumValues returns the possible values for the SupportedFeatureStatusEnum const type.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. CreatedBy *string // The type of identity that created the resource. CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time // The identity that last modified the resource. LastModifiedBy *string // The type of identity that last modified the resource. LastModifiedByType *CreatedByType }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type ThreatProtectionName ¶
type ThreatProtectionName string
const (
ThreatProtectionNameDefault ThreatProtectionName = "Default"
)
func PossibleThreatProtectionNameValues ¶
func PossibleThreatProtectionNameValues() []ThreatProtectionName
PossibleThreatProtectionNameValues returns the possible values for the ThreatProtectionName const type.
type ThreatProtectionState ¶
type ThreatProtectionState string
ThreatProtectionState - Specifies the state of the Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific server.
const ( ThreatProtectionStateDisabled ThreatProtectionState = "Disabled" ThreatProtectionStateEnabled ThreatProtectionState = "Enabled" )
func PossibleThreatProtectionStateValues ¶
func PossibleThreatProtectionStateValues() []ThreatProtectionState
PossibleThreatProtectionStateValues returns the possible values for the ThreatProtectionState const type.
type TriggerCutoverEnum ¶
type TriggerCutoverEnum string
TriggerCutoverEnum - To trigger cutover for entire migration we need to send this flag as True
const ( TriggerCutoverEnumFalse TriggerCutoverEnum = "False" TriggerCutoverEnumTrue TriggerCutoverEnum = "True" )
func PossibleTriggerCutoverEnumValues ¶
func PossibleTriggerCutoverEnumValues() []TriggerCutoverEnum
PossibleTriggerCutoverEnumValues returns the possible values for the TriggerCutoverEnum const type.
type TuningConfigurationClient ¶
type TuningConfigurationClient struct {
// contains filtered or unexported fields
}
TuningConfigurationClient contains the methods for the TuningConfiguration group. Don't use this type directly, use NewTuningConfigurationClient() instead.
func NewTuningConfigurationClient ¶
func NewTuningConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TuningConfigurationClient, error)
NewTuningConfigurationClient creates a new instance of TuningConfigurationClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TuningConfigurationClient) BeginDisable ¶
func (client *TuningConfigurationClient) BeginDisable(ctx context.Context, resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningConfigurationClientBeginDisableOptions) (*runtime.Poller[TuningConfigurationClientDisableResponse], error)
BeginDisable - Disables the config tuning. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningConfigurationClientBeginDisableOptions contains the optional parameters for the TuningConfigurationClient.BeginDisable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_Disable.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewTuningConfigurationClient().BeginDisable(ctx, "testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*TuningConfigurationClient) BeginEnable ¶
func (client *TuningConfigurationClient) BeginEnable(ctx context.Context, resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningConfigurationClientBeginEnableOptions) (*runtime.Poller[TuningConfigurationClientEnableResponse], error)
BeginEnable - Enables the config tuning. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningConfigurationClientBeginEnableOptions contains the optional parameters for the TuningConfigurationClient.BeginEnable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_Enable.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewTuningConfigurationClient().BeginEnable(ctx, "testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*TuningConfigurationClient) BeginStartSession ¶
func (client *TuningConfigurationClient) BeginStartSession(ctx context.Context, resourceGroupName string, serverName string, tuningOption TuningOptionEnum, configTuningRequest ConfigTuningRequestParameter, options *TuningConfigurationClientBeginStartSessionOptions) (*runtime.Poller[TuningConfigurationClientStartSessionResponse], error)
BeginStartSession - Starts up the config tuning session. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- configTuningRequest - The parameters for tuning request.
- options - TuningConfigurationClientBeginStartSessionOptions contains the optional parameters for the TuningConfigurationClient.BeginStartSession method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_StartSession.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewTuningConfigurationClient().BeginStartSession(ctx, "testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, armpostgresqlflexibleservers.ConfigTuningRequestParameter{ AllowServerRestarts: to.Ptr(false), TargetImprovementMetric: to.Ptr("targetImprovementMetric"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*TuningConfigurationClient) BeginStopSession ¶
func (client *TuningConfigurationClient) BeginStopSession(ctx context.Context, resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningConfigurationClientBeginStopSessionOptions) (*runtime.Poller[TuningConfigurationClientStopSessionResponse], error)
BeginStopSession - Stops the config tuning session. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningConfigurationClientBeginStopSessionOptions contains the optional parameters for the TuningConfigurationClient.BeginStopSession method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_StopSession.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewTuningConfigurationClient().BeginStopSession(ctx, "testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*TuningConfigurationClient) NewListSessionDetailsPager ¶
func (client *TuningConfigurationClient) NewListSessionDetailsPager(resourceGroupName string, serverName string, tuningOption TuningOptionEnum, sessionID string, options *TuningConfigurationClientListSessionDetailsOptions) *runtime.Pager[TuningConfigurationClientListSessionDetailsResponse]
NewListSessionDetailsPager - Gets the session details of a config tuning session.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- sessionID - Guid of the objectId for the session.
- options - TuningConfigurationClientListSessionDetailsOptions contains the optional parameters for the TuningConfigurationClient.NewListSessionDetailsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_ListSessionDetails.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTuningConfigurationClient().NewListSessionDetailsPager("testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.SessionDetailsListResult = armpostgresqlflexibleservers.SessionDetailsListResult{ // Value: []*armpostgresqlflexibleservers.SessionDetailsResource{ // { // AppliedConfiguration: to.Ptr("{\"work_mem\": 4096, \"max_wal_size\": 12288, \"min_wal_size\": 80, \"seq_page_cost\": 1, \"bgwriter_delay\": 20, \"random_page_cost\": 2, \"max_parallel_workers\": 8, \"bgwriter_lru_maxpages\": 100, \"effective_io_concurrency\": 1, \"max_parallel_workers_per_gather\": 2}"), // AverageQueryRuntimeMs: to.Ptr("0.38"), // IterationID: to.Ptr("1"), // IterationStartTime: to.Ptr("02/26/2025 22:57:30"), // SessionID: to.Ptr("7fb4b3c1-8d77-4fae-82d8-fcd26c892d75"), // TransactionsPerSecond: to.Ptr("2.86"), // }, // { // AppliedConfiguration: to.Ptr("{\"work_mem\": 53566, \"max_wal_size\": 24576, \"min_wal_size\": 6144, \"seq_page_cost\": 1, \"bgwriter_delay\": 200, \"random_page_cost\": 3.5, \"max_parallel_workers\": 2, \"bgwriter_lru_maxpages\": 100, \"effective_io_concurrency\": 300, \"max_parallel_workers_per_gather\": 2}"), // AverageQueryRuntimeMs: to.Ptr("0.40"), // IterationID: to.Ptr("2"), // IterationStartTime: to.Ptr("02/26/2025 23:02:32"), // SessionID: to.Ptr("7fb4b3c1-8d77-4fae-82d8-fcd26c892d75"), // TransactionsPerSecond: to.Ptr("2.81"), // }, // { // AppliedConfiguration: to.Ptr("{\"work_mem\": 9681, \"max_wal_size\": 4096, \"min_wal_size\": 1024, \"seq_page_cost\": 1, \"bgwriter_delay\": 150, \"random_page_cost\": 1.5, \"max_parallel_workers\": 6, \"bgwriter_lru_maxpages\": 300, \"effective_io_concurrency\": 400, \"max_parallel_workers_per_gather\": 2}"), // AverageQueryRuntimeMs: to.Ptr("0.42"), // IterationID: to.Ptr("3"), // IterationStartTime: to.Ptr("02/26/2025 23:07:33"), // SessionID: to.Ptr("7fb4b3c1-8d77-4fae-82d8-fcd26c892d75"), // TransactionsPerSecond: to.Ptr("2.67"), // }}, // } }
func (*TuningConfigurationClient) NewListSessionsPager ¶
func (client *TuningConfigurationClient) NewListSessionsPager(resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningConfigurationClientListSessionsOptions) *runtime.Pager[TuningConfigurationClientListSessionsResponse]
NewListSessionsPager - Gets up the config tuning session status.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningConfigurationClientListSessionsOptions contains the optional parameters for the TuningConfigurationClient.NewListSessionsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningConfiguration_ListSessions.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTuningConfigurationClient().NewListSessionsPager("testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumConfiguration, nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.SessionsListResult = armpostgresqlflexibleservers.SessionsListResult{ // Value: []*armpostgresqlflexibleservers.SessionResource{ // { // PostTuningAqr: to.Ptr("1.818203395454569"), // PostTuningTps: to.Ptr("2.594203762997024"), // PreTuningAqr: to.Ptr("1.9069379374999662"), // PreTuningTps: to.Ptr("2.592924534523614"), // SessionID: to.Ptr("29f70be5-74ac-498b-949c-38b0997b4290"), // SessionStartTime: to.Ptr("09/26/2024 02:13:05"), // Status: to.Ptr("completed"), // }}, // } }
type TuningConfigurationClientBeginDisableOptions ¶
type TuningConfigurationClientBeginDisableOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
TuningConfigurationClientBeginDisableOptions contains the optional parameters for the TuningConfigurationClient.BeginDisable method.
type TuningConfigurationClientBeginEnableOptions ¶
type TuningConfigurationClientBeginEnableOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
TuningConfigurationClientBeginEnableOptions contains the optional parameters for the TuningConfigurationClient.BeginEnable method.
type TuningConfigurationClientBeginStartSessionOptions ¶
type TuningConfigurationClientBeginStartSessionOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
TuningConfigurationClientBeginStartSessionOptions contains the optional parameters for the TuningConfigurationClient.BeginStartSession method.
type TuningConfigurationClientBeginStopSessionOptions ¶
type TuningConfigurationClientBeginStopSessionOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
TuningConfigurationClientBeginStopSessionOptions contains the optional parameters for the TuningConfigurationClient.BeginStopSession method.
type TuningConfigurationClientDisableResponse ¶
type TuningConfigurationClientDisableResponse struct { }
TuningConfigurationClientDisableResponse contains the response from method TuningConfigurationClient.BeginDisable.
type TuningConfigurationClientEnableResponse ¶
type TuningConfigurationClientEnableResponse struct { }
TuningConfigurationClientEnableResponse contains the response from method TuningConfigurationClient.BeginEnable.
type TuningConfigurationClientListSessionDetailsOptions ¶
type TuningConfigurationClientListSessionDetailsOptions struct { }
TuningConfigurationClientListSessionDetailsOptions contains the optional parameters for the TuningConfigurationClient.NewListSessionDetailsPager method.
type TuningConfigurationClientListSessionDetailsResponse ¶
type TuningConfigurationClientListSessionDetailsResponse struct { // A list of tuning configuration sessions. SessionDetailsListResult }
TuningConfigurationClientListSessionDetailsResponse contains the response from method TuningConfigurationClient.NewListSessionDetailsPager.
type TuningConfigurationClientListSessionsOptions ¶
type TuningConfigurationClientListSessionsOptions struct { }
TuningConfigurationClientListSessionsOptions contains the optional parameters for the TuningConfigurationClient.NewListSessionsPager method.
type TuningConfigurationClientListSessionsResponse ¶
type TuningConfigurationClientListSessionsResponse struct { // A list of tuning configuration sessions. SessionsListResult }
TuningConfigurationClientListSessionsResponse contains the response from method TuningConfigurationClient.NewListSessionsPager.
type TuningConfigurationClientStartSessionResponse ¶
type TuningConfigurationClientStartSessionResponse struct { }
TuningConfigurationClientStartSessionResponse contains the response from method TuningConfigurationClient.BeginStartSession.
type TuningConfigurationClientStopSessionResponse ¶
type TuningConfigurationClientStopSessionResponse struct { }
TuningConfigurationClientStopSessionResponse contains the response from method TuningConfigurationClient.BeginStopSession.
type TuningIndexClient ¶
type TuningIndexClient struct {
// contains filtered or unexported fields
}
TuningIndexClient contains the methods for the TuningIndex group. Don't use this type directly, use NewTuningIndexClient() instead.
func NewTuningIndexClient ¶
func NewTuningIndexClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TuningIndexClient, error)
NewTuningIndexClient creates a new instance of TuningIndexClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TuningIndexClient) NewListRecommendationsPager ¶
func (client *TuningIndexClient) NewListRecommendationsPager(resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningIndexClientListRecommendationsOptions) *runtime.Pager[TuningIndexClientListRecommendationsResponse]
NewListRecommendationsPager - Retrieve the list of available tuning index recommendations.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningIndexClientListRecommendationsOptions contains the optional parameters for the TuningIndexClient.NewListRecommendationsPager method.
Example (TuningIndexListFilteredRecommendations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningIndex_GetFilteredRecommendations.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTuningIndexClient().NewListRecommendationsPager("testrg", "pgtestrecs", armpostgresqlflexibleservers.TuningOptionEnumIndex, &armpostgresqlflexibleservers.TuningIndexClientListRecommendationsOptions{RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeCreateIndex)}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.IndexRecommendationListResult = armpostgresqlflexibleservers.IndexRecommendationListResult{ // Value: []*armpostgresqlflexibleservers.IndexRecommendationResource{ // { // Name: to.Ptr("CreateIndex_ecommerce_public_ps_suppkey_idx"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/index"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestrecs/tuningOptions/index/recommendations/1"), // Properties: &armpostgresqlflexibleservers.IndexRecommendationResourceProperties{ // AnalyzedWorkload: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesAnalyzedWorkload{ // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:12.063Z"); return t}()), // QueryCount: to.Ptr[int32](25), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T04:31:12.063Z"); return t}()), // }, // EstimatedImpact: []*armpostgresqlflexibleservers.ImpactRecord{ // { // AbsoluteValue: to.Ptr[float64](15.3671875), // DimensionName: to.Ptr("IndexSize"), // Unit: to.Ptr("MB"), // }, // { // AbsoluteValue: to.Ptr[float64](99.67668452400453), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-3775242682326862300), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](85.56742436827899), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](6829938984138799000), // Unit: to.Ptr("Percentage"), // }}, // ImplementationDetails: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesImplementationDetails{ // Method: to.Ptr("SQL"), // Script: to.Ptr("create index concurrently ps_suppkey_idx on public.partsupp(ps_suppkey)"), // }, // ImprovedQueryIDs: []*int64{ // to.Ptr[int64](-3775242682326862300), // to.Ptr[int64](6829938984138799000)}, // InitialRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:32.306Z"); return t}()), // LastRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:32.306Z"); return t}()), // RecommendationReason: to.Ptr("Column \"partsupp\".\"ps_suppkey\" appear in Join On clause(s) in query -3775242682326862475; Column \"partsupp\".\"ps_suppkey\" appear in Join On clause(s) in query 6829938984138799352;"), // RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeEnumCreateIndex), // TimesRecommended: to.Ptr[int32](1), // Details: &armpostgresqlflexibleservers.IndexRecommendationDetails{ // Schema: to.Ptr("public"), // DatabaseName: to.Ptr("ecommerce"), // IndexColumns: []*string{ // to.Ptr("\"partsupp\".\"ps_suppkey\"")}, // IndexName: to.Ptr("ps_suppkey_idx"), // IndexType: to.Ptr("BTREE"), // Table: to.Ptr("partsupp"), // }, // }, // }, // { // Name: to.Ptr("CreateIndex_ecommerce_public_ps_partkey_idx"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/index"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestrecs/tuningOptions/index/recommendations/2"), // Properties: &armpostgresqlflexibleservers.IndexRecommendationResourceProperties{ // AnalyzedWorkload: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesAnalyzedWorkload{ // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:12.063Z"); return t}()), // QueryCount: to.Ptr[int32](25), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T04:31:12.063Z"); return t}()), // }, // EstimatedImpact: []*armpostgresqlflexibleservers.ImpactRecord{ // { // AbsoluteValue: to.Ptr[float64](15.3671875), // DimensionName: to.Ptr("IndexSize"), // Unit: to.Ptr("MB"), // }, // { // AbsoluteValue: to.Ptr[float64](99.67668452400453), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-3775242682326862300), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](79.06603712430707), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](4735984994430715000), // Unit: to.Ptr("Percentage"), // }}, // ImplementationDetails: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesImplementationDetails{ // Method: to.Ptr("SQL"), // Script: to.Ptr("create index concurrently ps_partkey_idx on public.partsupp(ps_partkey)"), // }, // ImprovedQueryIDs: []*int64{ // to.Ptr[int64](-3775242682326862300), // to.Ptr[int64](4735984994430715000)}, // InitialRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:32.311Z"); return t}()), // LastRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-12T16:31:32.311Z"); return t}()), // RecommendationReason: to.Ptr("Column \"partsupp\".\"ps_partkey\" appear in Equal Predicate clause(s) in query -3775242682326862475; Column \"partsupp\".\"ps_partkey\" appear in Join On clause(s) in query 4735984994430714735;"), // RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeEnumCreateIndex), // TimesRecommended: to.Ptr[int32](1), // Details: &armpostgresqlflexibleservers.IndexRecommendationDetails{ // Schema: to.Ptr("public"), // DatabaseName: to.Ptr("ecommerce"), // IndexColumns: []*string{ // to.Ptr("\"partsupp\".\"ps_partkey\"")}, // IndexName: to.Ptr("ps_partkey_idx"), // IndexType: to.Ptr("BTREE"), // Table: to.Ptr("partsupp"), // }, // }, // }}, // } }
Example (TuningIndexListRecommendations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/TuningIndex_GetRecommendations.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTuningIndexClient().NewListRecommendationsPager("testrg", "pgtestsvc4", armpostgresqlflexibleservers.TuningOptionEnumIndex, &armpostgresqlflexibleservers.TuningIndexClientListRecommendationsOptions{RecommendationType: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.IndexRecommendationListResult = armpostgresqlflexibleservers.IndexRecommendationListResult{ // Value: []*armpostgresqlflexibleservers.IndexRecommendationResource{ // { // Name: to.Ptr("CreateIndex_ecommerce_public_c_custkey_idx"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/index"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/tuningOptions/index/recommendations/14"), // Properties: &armpostgresqlflexibleservers.IndexRecommendationResourceProperties{ // AnalyzedWorkload: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesAnalyzedWorkload{ // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // QueryCount: to.Ptr[int32](25), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T07:14:34.412Z"); return t}()), // }, // EstimatedImpact: []*armpostgresqlflexibleservers.ImpactRecord{ // { // AbsoluteValue: to.Ptr[float64](2.890625), // DimensionName: to.Ptr("IndexSize"), // Unit: to.Ptr("MB"), // }, // { // AbsoluteValue: to.Ptr[float64](56.75424930485546), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-5265741861999699000), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](43.67826245896799), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](234118651516953380), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](10.176593636567572), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-632598438706436700), // Unit: to.Ptr("Percentage"), // }}, // ImplementationDetails: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesImplementationDetails{ // Method: to.Ptr("SQL"), // Script: to.Ptr("create index concurrently c_custkey_idx on public.customer(c_custkey)"), // }, // ImprovedQueryIDs: []*int64{ // to.Ptr[int64](-5265741861999699000), // to.Ptr[int64](-632598438706436700), // to.Ptr[int64](234118651516953380)}, // InitialRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T08:13:55.382Z"); return t}()), // LastRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // RecommendationReason: to.Ptr("Column \"customer\".\"c_custkey\" appear in Join On clause(s) in query -5265741861999699191; Column \"customer\".\"c_custkey\" appear in Join On clause(s) in query -632598438706436788; Column \"customer\".\"c_custkey\" appear in Join On clause(s) in query 234118651516953391;"), // RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeEnumCreateIndex), // TimesRecommended: to.Ptr[int32](2), // Details: &armpostgresqlflexibleservers.IndexRecommendationDetails{ // Schema: to.Ptr("public"), // DatabaseName: to.Ptr("ecommerce"), // IndexColumns: []*string{ // to.Ptr("\"customer\".\"c_custkey\"")}, // IndexName: to.Ptr("c_custkey_idx"), // IndexType: to.Ptr("BTREE"), // Table: to.Ptr("customer"), // }, // }, // }, // { // Name: to.Ptr("CreateIndex_ecommerce_public_l_orderkey_idx"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/index"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/tuningOptions/index/recommendations/11"), // Properties: &armpostgresqlflexibleservers.IndexRecommendationResourceProperties{ // AnalyzedWorkload: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesAnalyzedWorkload{ // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // QueryCount: to.Ptr[int32](25), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T07:14:34.412Z"); return t}()), // }, // EstimatedImpact: []*armpostgresqlflexibleservers.ImpactRecord{ // { // AbsoluteValue: to.Ptr[float64](115.21875), // DimensionName: to.Ptr("IndexSize"), // Unit: to.Ptr("MB"), // }, // { // AbsoluteValue: to.Ptr[float64](63.42250763539086), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-1887467119476231700), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](56.75424930485546), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-5265741861999699000), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](77.23764140869261), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-5259344436787616000), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](43.67826245896799), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](234118651516953380), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](75.73857546652877), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-2174336608863105800), // Unit: to.Ptr("Percentage"), // }}, // ImplementationDetails: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesImplementationDetails{ // Method: to.Ptr("SQL"), // Script: to.Ptr("create index concurrently l_orderkey_idx on public.lineitem(l_orderkey)"), // }, // ImprovedQueryIDs: []*int64{ // to.Ptr[int64](-5265741861999699000), // to.Ptr[int64](-5259344436787616000), // to.Ptr[int64](-2174336608863105800), // to.Ptr[int64](-1887467119476231700), // to.Ptr[int64](234118651516953380)}, // InitialRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T08:13:55.382Z"); return t}()), // LastRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // RecommendationReason: to.Ptr("Column \"lineitem\".\"l_orderkey\" appear in Join On clause(s) in query -5265741861999699191; Column \"lineitem\".\"l_orderkey\" appear in Join On clause(s) in query -5259344436787615838; Column \"lineitem\".\"l_orderkey\" appear in Join On clause(s) in query -2174336608863105762; Column \"lineitem\".\"l_orderkey\" appear in Equal Predicate clause(s) in query -1887467119476231661; Column \"lineitem\".\"l_orderkey\" appear in Join On clause(s) in query 234118651516953391;"), // RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeEnumCreateIndex), // TimesRecommended: to.Ptr[int32](2), // Details: &armpostgresqlflexibleservers.IndexRecommendationDetails{ // Schema: to.Ptr("public"), // DatabaseName: to.Ptr("ecommerce"), // IndexColumns: []*string{ // to.Ptr("\"lineitem\".\"l_orderkey\"")}, // IndexName: to.Ptr("l_orderkey_idx"), // IndexType: to.Ptr("BTREE"), // Table: to.Ptr("lineitem"), // }, // }, // }, // { // Name: to.Ptr("CreateIndex_ecommerce_public_l_orderkey_l_shipdate_idx"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningOptions/index"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/tuningOptions/index/recommendations/18"), // Properties: &armpostgresqlflexibleservers.IndexRecommendationResourceProperties{ // AnalyzedWorkload: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesAnalyzedWorkload{ // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // QueryCount: to.Ptr[int32](25), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T07:14:34.412Z"); return t}()), // }, // EstimatedImpact: []*armpostgresqlflexibleservers.ImpactRecord{ // { // AbsoluteValue: to.Ptr[float64](161.140625), // DimensionName: to.Ptr("IndexSize"), // Unit: to.Ptr("MB"), // }, // { // AbsoluteValue: to.Ptr[float64](43.07835695205126), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-6263488632059809000), // Unit: to.Ptr("Percentage"), // }, // { // AbsoluteValue: to.Ptr[float64](83.06572136980492), // DimensionName: to.Ptr("QueryCostImprovement"), // QueryID: to.Ptr[int64](-2436244725743338500), // Unit: to.Ptr("Percentage"), // }}, // ImplementationDetails: &armpostgresqlflexibleservers.IndexRecommendationResourcePropertiesImplementationDetails{ // Method: to.Ptr("SQL"), // Script: to.Ptr("create index concurrently l_orderkey_l_shipdate_idx on public.lineitem(l_orderkey,l_shipdate)"), // }, // ImprovedQueryIDs: []*int64{ // to.Ptr[int64](-6263488632059809000), // to.Ptr[int64](-2436244725743338500)}, // InitialRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T08:13:55.382Z"); return t}()), // LastRecommendedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-05-31T19:14:34.412Z"); return t}()), // RecommendationReason: to.Ptr("Column \"lineitem\".\"l_orderkey\" appear in Join On clause(s) in query -6263488632059808423; Column \"lineitem\".\"l_shipdate\" appear in Non-Equal Predicate clause(s) in query -6263488632059808423;"), // RecommendationType: to.Ptr(armpostgresqlflexibleservers.RecommendationTypeEnumCreateIndex), // TimesRecommended: to.Ptr[int32](2), // Details: &armpostgresqlflexibleservers.IndexRecommendationDetails{ // Schema: to.Ptr("public"), // DatabaseName: to.Ptr("ecommerce"), // IndexColumns: []*string{ // to.Ptr("\"lineitem\".\"l_orderkey\""), // to.Ptr("\"lineitem\".\"l_shipdate\"")}, // IndexName: to.Ptr("l_orderkey_l_shipdate_idx"), // IndexType: to.Ptr("BTREE"), // Table: to.Ptr("lineitem"), // }, // }, // }}, // } }
type TuningIndexClientListRecommendationsOptions ¶
type TuningIndexClientListRecommendationsOptions struct { // Recommendations list filter. Retrieves recommendations based on type. RecommendationType *RecommendationType }
TuningIndexClientListRecommendationsOptions contains the optional parameters for the TuningIndexClient.NewListRecommendationsPager method.
type TuningIndexClientListRecommendationsResponse ¶
type TuningIndexClientListRecommendationsResponse struct { // A list of available index recommendations. IndexRecommendationListResult }
TuningIndexClientListRecommendationsResponse contains the response from method TuningIndexClient.NewListRecommendationsPager.
type TuningOptionEnum ¶
type TuningOptionEnum string
const ( TuningOptionEnumConfiguration TuningOptionEnum = "configuration" TuningOptionEnumIndex TuningOptionEnum = "index" )
func PossibleTuningOptionEnumValues ¶
func PossibleTuningOptionEnumValues() []TuningOptionEnum
PossibleTuningOptionEnumValues returns the possible values for the TuningOptionEnum const type.
type TuningOptionsClient ¶
type TuningOptionsClient struct {
// contains filtered or unexported fields
}
TuningOptionsClient contains the methods for the TuningOptions group. Don't use this type directly, use NewTuningOptionsClient() instead.
func NewTuningOptionsClient ¶
func NewTuningOptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TuningOptionsClient, error)
NewTuningOptionsClient creates a new instance of TuningOptionsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TuningOptionsClient) Get ¶
func (client *TuningOptionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, tuningOption TuningOptionEnum, options *TuningOptionsClientGetOptions) (TuningOptionsClientGetResponse, error)
Get - Retrieve the tuning option on a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- tuningOption - The name of the tuning option.
- options - TuningOptionsClientGetOptions contains the optional parameters for the TuningOptionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Tuning_GetTuningOption.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewTuningOptionsClient().Get(ctx, "testrg", "testserver", armpostgresqlflexibleservers.TuningOptionEnumIndex, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.TuningOptionsResource = armpostgresqlflexibleservers.TuningOptionsResource{ // Name: to.Ptr("index"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningoptions"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/tuningoptions/index"), // }
func (*TuningOptionsClient) NewListByServerPager ¶
func (client *TuningOptionsClient) NewListByServerPager(resourceGroupName string, serverName string, options *TuningOptionsClientListByServerOptions) *runtime.Pager[TuningOptionsClientListByServerResponse]
NewListByServerPager - Retrieve the list of available tuning options.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - TuningOptionsClientListByServerOptions contains the optional parameters for the TuningOptionsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/Tuning_ListTuningOptions.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTuningOptionsClient().NewListByServerPager("testrg", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.TuningOptionsListResult = armpostgresqlflexibleservers.TuningOptionsListResult{ // Value: []*armpostgresqlflexibleservers.TuningOptionsResource{ // { // Name: to.Ptr("index"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/tuningoptions"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/tuningoptions/index"), // }}, // } }
type TuningOptionsClientGetOptions ¶
type TuningOptionsClientGetOptions struct { }
TuningOptionsClientGetOptions contains the optional parameters for the TuningOptionsClient.Get method.
type TuningOptionsClientGetResponse ¶
type TuningOptionsClientGetResponse struct { // Stores property that features impact on some metric if this recommended action is applied. TuningOptionsResource }
TuningOptionsClientGetResponse contains the response from method TuningOptionsClient.Get.
type TuningOptionsClientListByServerOptions ¶
type TuningOptionsClientListByServerOptions struct { }
TuningOptionsClientListByServerOptions contains the optional parameters for the TuningOptionsClient.NewListByServerPager method.
type TuningOptionsClientListByServerResponse ¶
type TuningOptionsClientListByServerResponse struct { // A list of server tuning options. TuningOptionsListResult }
TuningOptionsClientListByServerResponse contains the response from method TuningOptionsClient.NewListByServerPager.
type TuningOptionsListResult ¶
type TuningOptionsListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // A list of available tuning options. Value []*TuningOptionsResource }
TuningOptionsListResult - A list of server tuning options.
func (TuningOptionsListResult) MarshalJSON ¶
func (t TuningOptionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TuningOptionsListResult.
func (*TuningOptionsListResult) UnmarshalJSON ¶
func (t *TuningOptionsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TuningOptionsListResult.
type TuningOptionsResource ¶
type TuningOptionsResource struct { // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
TuningOptionsResource - Stores property that features impact on some metric if this recommended action is applied.
func (TuningOptionsResource) MarshalJSON ¶
func (t TuningOptionsResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TuningOptionsResource.
func (*TuningOptionsResource) UnmarshalJSON ¶
func (t *TuningOptionsResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TuningOptionsResource.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // REQUIRED; the types of identities associated with this resource Type *IdentityType // the identity principal Id of the server. PrincipalID *string // represents user assigned identities map. UserAssignedIdentities map[string]*UserIdentity // READ-ONLY; Tenant id of the server. TenantID *string }
UserAssignedIdentity - Information describing the identities associated with this application.
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type UserIdentity ¶
type UserIdentity struct { // the client identifier of the Service Principal which this identity represents. ClientID *string // the object identifier of the Service Principal which this identity represents. PrincipalID *string }
UserIdentity - Describes a single user-assigned identity associated with the application.
func (UserIdentity) MarshalJSON ¶
func (u UserIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserIdentity.
func (*UserIdentity) UnmarshalJSON ¶
func (u *UserIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserIdentity.
type ValidationDetails ¶
type ValidationDetails struct { // Details of server level validations DbLevelValidationDetails []*DbLevelValidationStatus // Details of server level validations ServerLevelValidationDetails []*ValidationSummaryItem // Validation status for migration Status *ValidationState // Validation End date-time in UTC ValidationEndTimeInUTC *time.Time // Validation Start date-time in UTC ValidationStartTimeInUTC *time.Time }
ValidationDetails - Details for the validation for migration
func (ValidationDetails) MarshalJSON ¶
func (v ValidationDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ValidationDetails.
func (*ValidationDetails) UnmarshalJSON ¶
func (v *ValidationDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ValidationDetails.
type ValidationMessage ¶
type ValidationMessage struct { // Validation message string Message *string // Severity of validation message State *ValidationState }
ValidationMessage - Validation message object
func (ValidationMessage) MarshalJSON ¶
func (v ValidationMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ValidationMessage.
func (*ValidationMessage) UnmarshalJSON ¶
func (v *ValidationMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ValidationMessage.
type ValidationState ¶
type ValidationState string
ValidationState - Validation status for migration
const ( ValidationStateFailed ValidationState = "Failed" ValidationStateSucceeded ValidationState = "Succeeded" ValidationStateWarning ValidationState = "Warning" )
func PossibleValidationStateValues ¶
func PossibleValidationStateValues() []ValidationState
PossibleValidationStateValues returns the possible values for the ValidationState const type.
type ValidationSummaryItem ¶
type ValidationSummaryItem struct { // Validation messages Messages []*ValidationMessage // Validation status for migration State *ValidationState // Validation type Type *string }
ValidationSummaryItem - Validation summary object
func (ValidationSummaryItem) MarshalJSON ¶
func (v ValidationSummaryItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ValidationSummaryItem.
func (*ValidationSummaryItem) UnmarshalJSON ¶
func (v *ValidationSummaryItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ValidationSummaryItem.
type VirtualEndpointResource ¶
type VirtualEndpointResource struct { // Properties of the virtual endpoint resource. Properties *VirtualEndpointResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
VirtualEndpointResource - Represents a virtual endpoint for a server.
func (VirtualEndpointResource) MarshalJSON ¶
func (v VirtualEndpointResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualEndpointResource.
func (*VirtualEndpointResource) UnmarshalJSON ¶
func (v *VirtualEndpointResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualEndpointResource.
type VirtualEndpointResourceForPatch ¶
type VirtualEndpointResourceForPatch struct { // Properties of the virtual endpoint resource. Properties *VirtualEndpointResourceProperties }
VirtualEndpointResourceForPatch - Represents a virtual endpoint for a server.
func (VirtualEndpointResourceForPatch) MarshalJSON ¶
func (v VirtualEndpointResourceForPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualEndpointResourceForPatch.
func (*VirtualEndpointResourceForPatch) UnmarshalJSON ¶
func (v *VirtualEndpointResourceForPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualEndpointResourceForPatch.
type VirtualEndpointResourceProperties ¶
type VirtualEndpointResourceProperties struct { // The endpoint type for the virtual endpoint. EndpointType *VirtualEndpointType // List of members for a virtual endpoint Members []*string // READ-ONLY; List of virtual endpoints for a server VirtualEndpoints []*string }
VirtualEndpointResourceProperties - The properties of a virtual endpoint.
func (VirtualEndpointResourceProperties) MarshalJSON ¶
func (v VirtualEndpointResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualEndpointResourceProperties.
func (*VirtualEndpointResourceProperties) UnmarshalJSON ¶
func (v *VirtualEndpointResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualEndpointResourceProperties.
type VirtualEndpointType ¶
type VirtualEndpointType string
VirtualEndpointType - The endpoint type for the virtual endpoint.
const (
VirtualEndpointTypeReadWrite VirtualEndpointType = "ReadWrite"
)
func PossibleVirtualEndpointTypeValues ¶
func PossibleVirtualEndpointTypeValues() []VirtualEndpointType
PossibleVirtualEndpointTypeValues returns the possible values for the VirtualEndpointType const type.
type VirtualEndpointsClient ¶
type VirtualEndpointsClient struct {
// contains filtered or unexported fields
}
VirtualEndpointsClient contains the methods for the VirtualEndpoints group. Don't use this type directly, use NewVirtualEndpointsClient() instead.
func NewVirtualEndpointsClient ¶
func NewVirtualEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualEndpointsClient, error)
NewVirtualEndpointsClient creates a new instance of VirtualEndpointsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VirtualEndpointsClient) BeginCreate ¶
func (client *VirtualEndpointsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, parameters VirtualEndpointResource, options *VirtualEndpointsClientBeginCreateOptions) (*runtime.Poller[VirtualEndpointsClientCreateResponse], error)
BeginCreate - Creates a new virtual endpoint for PostgreSQL flexible server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- virtualEndpointName - The name of the virtual endpoint.
- parameters - The required parameters for creating or updating virtual endpoints.
- options - VirtualEndpointsClientBeginCreateOptions contains the optional parameters for the VirtualEndpointsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualEndpointCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVirtualEndpointsClient().BeginCreate(ctx, "testrg", "pgtestsvc4", "pgVirtualEndpoint1", armpostgresqlflexibleservers.VirtualEndpointResource{ Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), Members: []*string{ to.Ptr("testPrimary1")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VirtualEndpointResource = armpostgresqlflexibleservers.VirtualEndpointResource{ // Name: to.Ptr("pgVirtualEndpoint1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualEndpoints"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/virtualEndpoints/pgVirtualEndpoint1"), // Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ // EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), // Members: []*string{ // to.Ptr("testPrimary1")}, // VirtualEndpoints: []*string{ // to.Ptr("pgVirtualEndpoint1.reader.postgres.database.azure.com"), // to.Ptr("pgVirtualEndpoint1.writer.postgres.database.azure.com")}, // }, // }
func (*VirtualEndpointsClient) BeginDelete ¶
func (client *VirtualEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, options *VirtualEndpointsClientBeginDeleteOptions) (*runtime.Poller[VirtualEndpointsClientDeleteResponse], error)
BeginDelete - Deletes a virtual endpoint. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- virtualEndpointName - The name of the virtual endpoint.
- options - VirtualEndpointsClientBeginDeleteOptions contains the optional parameters for the VirtualEndpointsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualEndpointDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVirtualEndpointsClient().BeginDelete(ctx, "testrg", "pgtestsvc4", "pgVirtualEndpoint1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
func (*VirtualEndpointsClient) BeginUpdate ¶
func (client *VirtualEndpointsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, parameters VirtualEndpointResourceForPatch, options *VirtualEndpointsClientBeginUpdateOptions) (*runtime.Poller[VirtualEndpointsClientUpdateResponse], error)
BeginUpdate - Updates an existing virtual endpoint. The request body can contain one to many of the properties present in the normal virtual endpoint definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- virtualEndpointName - The name of the virtual endpoint.
- parameters - The required parameters for updating a server.
- options - VirtualEndpointsClientBeginUpdateOptions contains the optional parameters for the VirtualEndpointsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualEndpointUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVirtualEndpointsClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", "pgVirtualEndpoint1", armpostgresqlflexibleservers.VirtualEndpointResourceForPatch{ Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), Members: []*string{ to.Ptr("testReplica1")}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VirtualEndpointResource = armpostgresqlflexibleservers.VirtualEndpointResource{ // Name: to.Ptr("pgVirtualEndpoint1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualEndpoints"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/virtualEndpoints/pgVirtualEndpoint1"), // Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ // EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), // Members: []*string{ // to.Ptr("testReplica1")}, // VirtualEndpoints: []*string{ // to.Ptr("pgVirtualEndpoint1.reader.postgres.database.azure.com"), // to.Ptr("pgVirtualEndpoint1.writer.postgres.database.azure.com")}, // }, // }
func (*VirtualEndpointsClient) Get ¶
func (client *VirtualEndpointsClient) Get(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, options *VirtualEndpointsClientGetOptions) (VirtualEndpointsClientGetResponse, error)
Get - Gets information about a virtual endpoint. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- virtualEndpointName - The name of the virtual endpoint.
- options - VirtualEndpointsClientGetOptions contains the optional parameters for the VirtualEndpointsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualEndpointsGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVirtualEndpointsClient().Get(ctx, "testrg", "pgtestsvc4", "pgVirtualEndpoint1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VirtualEndpointResource = armpostgresqlflexibleservers.VirtualEndpointResource{ // Name: to.Ptr("pgVirtualEndpoint1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualEndpoints"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/virtualEndpoints/pgVirtualEndpoint1"), // Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ // EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), // Members: []*string{ // to.Ptr("testReplica1")}, // VirtualEndpoints: []*string{ // to.Ptr("pgVirtualEndpoint1.reader.postgres.database.azure.com"), // to.Ptr("pgVirtualEndpoint1.writer.postgres.database.azure.com")}, // }, // }
func (*VirtualEndpointsClient) NewListByServerPager ¶
func (client *VirtualEndpointsClient) NewListByServerPager(resourceGroupName string, serverName string, options *VirtualEndpointsClientListByServerOptions) *runtime.Pager[VirtualEndpointsClientListByServerResponse]
NewListByServerPager - List all the servers in a given resource group.
Generated from API version 2025-01-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- serverName - The name of the server.
- options - VirtualEndpointsClientListByServerOptions contains the optional parameters for the VirtualEndpointsClient.NewListByServerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualEndpointsListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewVirtualEndpointsClient().NewListByServerPager("testrg", "pgtestsvc4", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.VirtualEndpointsListResult = armpostgresqlflexibleservers.VirtualEndpointsListResult{ // Value: []*armpostgresqlflexibleservers.VirtualEndpointResource{ // { // Name: to.Ptr("pgVirtualEndpoint1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/virtualEndpoints"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4/virtualEndpoints/pgVirtualEndpoint1"), // Properties: &armpostgresqlflexibleservers.VirtualEndpointResourceProperties{ // EndpointType: to.Ptr(armpostgresqlflexibleservers.VirtualEndpointTypeReadWrite), // Members: []*string{ // to.Ptr("testReplica1")}, // VirtualEndpoints: []*string{ // to.Ptr("pgVirtualEndpoint1.reader.postgres.database.azure.com"), // to.Ptr("pgVirtualEndpoint1.writer.postgres.database.azure.com")}, // }, // }}, // } }
type VirtualEndpointsClientBeginCreateOptions ¶
type VirtualEndpointsClientBeginCreateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
VirtualEndpointsClientBeginCreateOptions contains the optional parameters for the VirtualEndpointsClient.BeginCreate method.
type VirtualEndpointsClientBeginDeleteOptions ¶
type VirtualEndpointsClientBeginDeleteOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
VirtualEndpointsClientBeginDeleteOptions contains the optional parameters for the VirtualEndpointsClient.BeginDelete method.
type VirtualEndpointsClientBeginUpdateOptions ¶
type VirtualEndpointsClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. ResumeToken string }
VirtualEndpointsClientBeginUpdateOptions contains the optional parameters for the VirtualEndpointsClient.BeginUpdate method.
type VirtualEndpointsClientCreateResponse ¶
type VirtualEndpointsClientCreateResponse struct { // Represents a virtual endpoint for a server. VirtualEndpointResource }
VirtualEndpointsClientCreateResponse contains the response from method VirtualEndpointsClient.BeginCreate.
type VirtualEndpointsClientDeleteResponse ¶
type VirtualEndpointsClientDeleteResponse struct { }
VirtualEndpointsClientDeleteResponse contains the response from method VirtualEndpointsClient.BeginDelete.
type VirtualEndpointsClientGetOptions ¶
type VirtualEndpointsClientGetOptions struct { }
VirtualEndpointsClientGetOptions contains the optional parameters for the VirtualEndpointsClient.Get method.
type VirtualEndpointsClientGetResponse ¶
type VirtualEndpointsClientGetResponse struct { // Represents a virtual endpoint for a server. VirtualEndpointResource }
VirtualEndpointsClientGetResponse contains the response from method VirtualEndpointsClient.Get.
type VirtualEndpointsClientListByServerOptions ¶
type VirtualEndpointsClientListByServerOptions struct { }
VirtualEndpointsClientListByServerOptions contains the optional parameters for the VirtualEndpointsClient.NewListByServerPager method.
type VirtualEndpointsClientListByServerResponse ¶
type VirtualEndpointsClientListByServerResponse struct { // A list of virtual endpoints. VirtualEndpointsListResult }
VirtualEndpointsClientListByServerResponse contains the response from method VirtualEndpointsClient.NewListByServerPager.
type VirtualEndpointsClientUpdateResponse ¶
type VirtualEndpointsClientUpdateResponse struct { // Represents a virtual endpoint for a server. VirtualEndpointResource }
VirtualEndpointsClientUpdateResponse contains the response from method VirtualEndpointsClient.BeginUpdate.
type VirtualEndpointsListResult ¶
type VirtualEndpointsListResult struct { // The link used to get the next page of operations. NextLink *string // The list of virtual endpoints Value []*VirtualEndpointResource }
VirtualEndpointsListResult - A list of virtual endpoints.
func (VirtualEndpointsListResult) MarshalJSON ¶
func (v VirtualEndpointsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualEndpointsListResult.
func (*VirtualEndpointsListResult) UnmarshalJSON ¶
func (v *VirtualEndpointsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualEndpointsListResult.
type VirtualNetworkSubnetUsageClient ¶
type VirtualNetworkSubnetUsageClient struct {
// contains filtered or unexported fields
}
VirtualNetworkSubnetUsageClient contains the methods for the VirtualNetworkSubnetUsage group. Don't use this type directly, use NewVirtualNetworkSubnetUsageClient() instead.
func NewVirtualNetworkSubnetUsageClient ¶
func NewVirtualNetworkSubnetUsageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkSubnetUsageClient, error)
NewVirtualNetworkSubnetUsageClient creates a new instance of VirtualNetworkSubnetUsageClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VirtualNetworkSubnetUsageClient) Execute ¶
func (client *VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter, options *VirtualNetworkSubnetUsageClientExecuteOptions) (VirtualNetworkSubnetUsageClientExecuteResponse, error)
Execute - Get virtual network subnet usage for a given vNet resource id. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-01-01-preview
- locationName - The name of the location.
- parameters - The required parameters for creating or updating a server.
- options - VirtualNetworkSubnetUsageClientExecuteOptions contains the optional parameters for the VirtualNetworkSubnetUsageClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b1f4d539964453ce8008e4b069e59885e12ba441/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-01-01-preview/examples/VirtualNetworkSubnetUsage.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVirtualNetworkSubnetUsageClient().Execute(ctx, "westus", armpostgresqlflexibleservers.VirtualNetworkSubnetUsageParameter{ VirtualNetworkArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VirtualNetworkSubnetUsageResult = armpostgresqlflexibleservers.VirtualNetworkSubnetUsageResult{ // DelegatedSubnetsUsage: []*armpostgresqlflexibleservers.DelegatedSubnetUsage{ // { // SubnetName: to.Ptr("test-subnet-1"), // Usage: to.Ptr[int64](2), // }, // { // SubnetName: to.Ptr("test-subnet-2"), // Usage: to.Ptr[int64](3), // }}, // Location: to.Ptr("westus"), // SubscriptionID: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff"), // }
type VirtualNetworkSubnetUsageClientExecuteOptions ¶
type VirtualNetworkSubnetUsageClientExecuteOptions struct { }
VirtualNetworkSubnetUsageClientExecuteOptions contains the optional parameters for the VirtualNetworkSubnetUsageClient.Execute method.
type VirtualNetworkSubnetUsageClientExecuteResponse ¶
type VirtualNetworkSubnetUsageClientExecuteResponse struct { // Virtual network subnet usage data. VirtualNetworkSubnetUsageResult }
VirtualNetworkSubnetUsageClientExecuteResponse contains the response from method VirtualNetworkSubnetUsageClient.Execute.
type VirtualNetworkSubnetUsageParameter ¶
type VirtualNetworkSubnetUsageParameter struct { // Virtual network resource id. VirtualNetworkArmResourceID *string }
VirtualNetworkSubnetUsageParameter - Virtual network subnet usage parameter
func (VirtualNetworkSubnetUsageParameter) MarshalJSON ¶
func (v VirtualNetworkSubnetUsageParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkSubnetUsageParameter.
func (*VirtualNetworkSubnetUsageParameter) UnmarshalJSON ¶
func (v *VirtualNetworkSubnetUsageParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkSubnetUsageParameter.
type VirtualNetworkSubnetUsageResult ¶
type VirtualNetworkSubnetUsageResult struct { // READ-ONLY DelegatedSubnetsUsage []*DelegatedSubnetUsage // READ-ONLY; location of the delegated subnet usage Location *string // READ-ONLY; subscriptionId of the delegated subnet usage SubscriptionID *string }
VirtualNetworkSubnetUsageResult - Virtual network subnet usage data.
func (VirtualNetworkSubnetUsageResult) MarshalJSON ¶
func (v VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkSubnetUsageResult.
func (*VirtualNetworkSubnetUsageResult) UnmarshalJSON ¶
func (v *VirtualNetworkSubnetUsageResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkSubnetUsageResult.
type ZoneRedundantHaAndGeoBackupSupportedEnum ¶
type ZoneRedundantHaAndGeoBackupSupportedEnum string
ZoneRedundantHaAndGeoBackupSupportedEnum - A value indicating whether Zone Redundant HA and Geo-backup is supported in this region. "Enabled" means zone redundant HA and geo-backup is supported. "Disabled" stands for zone redundant HA and geo-backup is not supported. Will be deprecated in future, please look to Supported Features for "ZoneRedundantHaAndGeoBackup".
const ( ZoneRedundantHaAndGeoBackupSupportedEnumDisabled ZoneRedundantHaAndGeoBackupSupportedEnum = "Disabled" ZoneRedundantHaAndGeoBackupSupportedEnumEnabled ZoneRedundantHaAndGeoBackupSupportedEnum = "Enabled" )
func PossibleZoneRedundantHaAndGeoBackupSupportedEnumValues ¶
func PossibleZoneRedundantHaAndGeoBackupSupportedEnumValues() []ZoneRedundantHaAndGeoBackupSupportedEnum
PossibleZoneRedundantHaAndGeoBackupSupportedEnumValues returns the possible values for the ZoneRedundantHaAndGeoBackupSupportedEnum const type.
type ZoneRedundantHaSupportedEnum ¶
type ZoneRedundantHaSupportedEnum string
ZoneRedundantHaSupportedEnum - A value indicating whether Zone Redundant HA is supported in this region. "Enabled" means zone redundant HA is supported. "Disabled" stands for zone redundant HA is not supported. Will be deprecated in future, please look to Supported Features for "ZoneRedundantHa".
const ( ZoneRedundantHaSupportedEnumDisabled ZoneRedundantHaSupportedEnum = "Disabled" ZoneRedundantHaSupportedEnumEnabled ZoneRedundantHaSupportedEnum = "Enabled" )
func PossibleZoneRedundantHaSupportedEnumValues ¶
func PossibleZoneRedundantHaSupportedEnumValues() []ZoneRedundantHaSupportedEnum
PossibleZoneRedundantHaSupportedEnumValues returns the possible values for the ZoneRedundantHaSupportedEnum const type.
Source Files
¶
- administrators_client.go
- backups_client.go
- build.go
- checknameavailability_client.go
- checknameavailabilitywithlocation_client.go
- client_factory.go
- configurations_client.go
- constants.go
- databases_client.go
- firewallrules_client.go
- flexibleserver_client.go
- getprivatednszonesuffix_client.go
- locationbasedcapabilities_client.go
- logfiles_client.go
- ltrbackupoperations_client.go
- migrations_client.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- postgresqlmanagement_client.go
- privateendpointconnection_client.go
- privateendpointconnections_client.go
- privatelinkresources_client.go
- quotausages_client.go
- replicas_client.go
- responses.go
- servercapabilities_client.go
- servers_client.go
- serverthreatprotectionsettings_client.go
- time_rfc3339.go
- tuningconfiguration_client.go
- tuningindex_client.go
- tuningoptions_client.go
- virtualendpoints_client.go
- virtualnetworksubnetusage_client.go