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
- Python 3.10+ is required to use this package.
- Azure subscription
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_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor 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:
- Search Cosmosdbforpostgresql Management on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
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
CosmosdbForPostgresqlMgmtClientadded parametercloud_settingin method__init__ - Client
CosmosdbForPostgresqlMgmtClientadded methodsend_request - Model
Clusteradded propertyidentity - Model
ClusterForUpdateadded propertyidentity - Model
NameAvailabilityRequestadded propertytype - Model
Operationadded propertyaction_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
Clustermoved instance variableadministrator_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_backupandauth_configunder propertypropertieswhose type isClusterProperties - Model
ClusterForUpdatemoved instance variableadministrator_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_accessandmaintenance_windowunder propertypropertieswhose type isClusterPropertiesForUpdate - Model
ClusterServermoved instance variableserver_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_versionandcitus_versionunder propertypropertieswhose type isClusterServerProperties - Model
Configurationmoved instance variabledescription,data_type,allowed_values,requires_restart,server_role_group_configurationsandprovisioning_stateunder propertypropertieswhose type isConfigurationProperties - Model
FirewallRulemoved instance variablestart_ip_address,end_ip_addressandprovisioning_stateunder propertypropertieswhose type isFirewallRuleProperties - Model
Operationdeleted or renamed its instance variableproperties - Model
PrivateEndpointConnectionmoved instance variablegroup_ids,private_endpoint,private_link_service_connection_stateandprovisioning_stateunder propertypropertieswhose type isPrivateEndpointConnectionProperties - Model
PrivateLinkResourcemoved instance variablegroup_id,required_membersandrequired_zone_namesunder propertypropertieswhose type isPrivateLinkResourceProperties - Model
Rolemoved instance variablerole_type,password,provisioning_state,object_id,principal_typeandtenant_idunder propertypropertieswhose type isRoleProperties - Model
ServerConfigurationmoved instance variablevalue,source,description,default_value,data_type,allowed_values,requires_restartandprovisioning_stateunder propertypropertieswhose type isServerConfigurationProperties - Model
SimplePrivateEndpointConnectionmoved instance variableprivate_endpoint,group_idsandprivate_link_service_connection_stateunder propertypropertieswhose type isPrivateEndpointConnectionSimpleProperties - Renamed enum
OperationOrigintoOrigin
Other Changes
- Deleted model
ClusterConfigurationListResult/ClusterListResult/ClusterServerListResult/FirewallRuleListResult/OperationListResult/PrivateEndpointConnectionListResult/PrivateLinkResourceListResult/RoleListResult/ServerConfigurationListResultwhich 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_mgmt_cosmosdbforpostgresql-1.1.0b2.tar.gz.
File metadata
- Download URL: azure_mgmt_cosmosdbforpostgresql-1.1.0b2.tar.gz
- Upload date:
- Size: 100.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad1d505a331c2e7c1b79cdd9fda413024ab4433aac4292b979a6dcd8d4396e8e
|
|
| MD5 |
4ca3680d811bfd7f5f20924f70f3cd7f
|
|
| BLAKE2b-256 |
38e1d18a9edf98035f6509bce32224155f0d44b17511d765a994ff3415b29ae2
|
File details
Details for the file azure_mgmt_cosmosdbforpostgresql-1.1.0b2-py3-none-any.whl.
File metadata
- Download URL: azure_mgmt_cosmosdbforpostgresql-1.1.0b2-py3-none-any.whl
- Upload date:
- Size: 100.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf0b94a938182bcc8f5db3977a9cfb5ab0828d9bd4763af902b0b7ef0813dd74
|
|
| MD5 |
b89a94942810fbe9d284eedffe401e01
|
|
| BLAKE2b-256 |
e3433a0a007c2e824e6524902283ad84a24ac1e77187c6b3b11a1f37ebe30dfe
|