Skip to main content

Microsoft Azure Cosmosdbforpostgresql Management Client Library for Python

Project description

Microsoft Azure SDK for Python

This is the Microsoft Azure Cosmosdbforpostgresql Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-cosmosdbforpostgresql
pip install azure-identity

Authentication

By default, Microsoft Entra token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.cosmosdbforpostgresql import CosmosdbForPostgresqlMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = CosmosdbForPostgresqlMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

1.1.0b2 (2026-07-07)

Features Added

  • Client CosmosdbForPostgresqlMgmtClient added parameter cloud_setting in method __init__
  • Client CosmosdbForPostgresqlMgmtClient added method send_request
  • Model Cluster added property identity
  • Model ClusterForUpdate added property identity
  • Model NameAvailabilityRequest added property type
  • Model Operation added property action_type
  • Added enum AadEnabledEnum
  • Added enum ActionType
  • Added enum CheckNameAvailabilityResourceType
  • Added model DataEncryption
  • Added enum DataEncryptionType
  • Added model IdentityProperties
  • Added enum IdentityType
  • Added enum PasswordEnabledEnum
  • Added model RolePropertiesExternalIdentity
  • Added model UserAssignedIdentity

Breaking Changes

  • This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
  • Model Cluster moved instance variable administrator_login, administrator_login_password, provisioning_state, state, postgresql_version, citus_version, maintenance_window, preferred_primary_zone, enable_shards_on_coordinator, enable_ha, coordinator_server_edition, coordinator_storage_quota_in_mb, coordinator_v_cores, coordinator_enable_public_ip_access, node_server_edition, node_count, node_storage_quota_in_mb, node_v_cores, node_enable_public_ip_access, server_names, source_resource_id, source_location, point_in_time_utc, read_replicas, earliest_restore_time, private_endpoint_connections, database_name, enable_geo_backup and auth_config under property properties whose type is ClusterProperties
  • Model ClusterForUpdate moved instance variable administrator_login_password, postgresql_version, citus_version, enable_shards_on_coordinator, enable_ha, preferred_primary_zone, coordinator_server_edition, coordinator_storage_quota_in_mb, coordinator_v_cores, coordinator_enable_public_ip_access, node_server_edition, node_count, node_storage_quota_in_mb, node_v_cores, node_enable_public_ip_access and maintenance_window under property properties whose type is ClusterPropertiesForUpdate
  • Model ClusterServer moved instance variable server_edition, storage_quota_in_mb, v_cores, enable_ha, enable_public_ip_access, is_read_only, administrator_login, fully_qualified_domain_name, role, state, ha_state, availability_zone, postgresql_version and citus_version under property properties whose type is ClusterServerProperties
  • Model Configuration moved instance variable description, data_type, allowed_values, requires_restart, server_role_group_configurations and provisioning_state under property properties whose type is ConfigurationProperties
  • Model FirewallRule moved instance variable start_ip_address, end_ip_address and provisioning_state under property properties whose type is FirewallRuleProperties
  • Model Operation deleted or renamed its instance variable properties
  • Model PrivateEndpointConnection moved instance variable group_ids, private_endpoint, private_link_service_connection_state and provisioning_state under property properties whose type is PrivateEndpointConnectionProperties
  • Model PrivateLinkResource moved instance variable group_id, required_members and required_zone_names under property properties whose type is PrivateLinkResourceProperties
  • Model Role moved instance variable role_type, password, provisioning_state, object_id, principal_type and tenant_id under property properties whose type is RoleProperties
  • Model ServerConfiguration moved instance variable value, source, description, default_value, data_type, allowed_values, requires_restart and provisioning_state under property properties whose type is ServerConfigurationProperties
  • Model SimplePrivateEndpointConnection moved instance variable private_endpoint, group_ids and private_link_service_connection_state under property properties whose type is PrivateEndpointConnectionSimpleProperties
  • Renamed enum OperationOrigin to Origin

Other Changes

  • Deleted model ClusterConfigurationListResult/ClusterListResult/ClusterServerListResult/FirewallRuleListResult/OperationListResult/PrivateEndpointConnectionListResult/PrivateLinkResourceListResult/RoleListResult/ServerConfigurationListResult which actually were not used by SDK users

1.1.0b1 (2024-03-18)

Features Added

  • Model Cluster has a new parameter auth_config
  • Model Cluster has a new parameter database_name
  • Model Cluster has a new parameter enable_geo_backup
  • Model Role has a new parameter object_id
  • Model Role has a new parameter principal_type
  • Model Role has a new parameter role_type
  • Model Role has a new parameter tenant_id
  • Operation ClustersOperations.begin_promote_read_replica has a new optional parameter promote_request

1.0.0 (2023-09-20)

Other Changes

  • First GA

1.0.0b1 (2023-06-16)

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_mgmt_cosmosdbforpostgresql-1.1.0b2.tar.gz (100.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file azure_mgmt_cosmosdbforpostgresql-1.1.0b2.tar.gz.

File metadata

File hashes

Hashes for azure_mgmt_cosmosdbforpostgresql-1.1.0b2.tar.gz
Algorithm Hash digest
SHA256 ad1d505a331c2e7c1b79cdd9fda413024ab4433aac4292b979a6dcd8d4396e8e
MD5 4ca3680d811bfd7f5f20924f70f3cd7f
BLAKE2b-256 38e1d18a9edf98035f6509bce32224155f0d44b17511d765a994ff3415b29ae2

See more details on using hashes here.

File details

Details for the file azure_mgmt_cosmosdbforpostgresql-1.1.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_mgmt_cosmosdbforpostgresql-1.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf0b94a938182bcc8f5db3977a9cfb5ab0828d9bd4763af902b0b7ef0813dd74
MD5 b89a94942810fbe9d284eedffe401e01
BLAKE2b-256 e3433a0a007c2e824e6524902283ad84a24ac1e77187c6b3b11a1f37ebe30dfe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page