跳转到主要内容

Microsoft Azure Service Fabric Managed Clusters Python管理客户端库

项目描述

Microsoft Azure SDK for Python

这是Microsoft Azure Service Fabric Managed Clusters管理客户端库。此包已在Python 3.8+上进行了测试。要查看Azure库的更完整视图,请参阅azure sdk python release

免责声明

Azure SDK Python包对Python 2.7的支持已于2022年1月1日结束。有关更多信息,请参阅https://github.com/Azure/azure-sdk-for-python/issues/20691

入门

先决条件

安装包

pip install azure-mgmt-servicefabricmanagedclusters
pip install azure-identity

身份验证

默认情况下,Azure Active Directory令牌身份验证依赖于以下环境变量的正确配置。

  • AZURE_CLIENT_ID用于Azure客户端ID。
  • AZURE_TENANT_ID用于Azure租户ID。
  • AZURE_CLIENT_SECRET用于Azure客户端密钥。

此外,可以通过环境变量AZURE_SUBSCRIPTION_ID配置Azure订阅ID。

以上配置完成后,客户端可以通过以下代码进行身份验证

from azure.identity import DefaultAzureCredential
from azure.mgmt.servicefabricmanagedclusters import ServiceFabricManagedClustersManagementClient
import os

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

示例

此包的代码示例可以在以下位置找到

故障排除

下一步

提供反馈

如果您遇到任何错误或提出建议,请在项目的问题部分提交问题。

版本历史

2.0.0 (2024-07-22)

新增功能

  • 添加操作ApplicationsOperations.begin_read_upgrade
  • 添加操作ApplicationsOperations.begin_resume_upgrade
  • 添加操作ApplicationsOperations.begin_start_rollback
  • 添加操作组ManagedApplyMaintenanceWindowOperations
  • 添加操作组ManagedAzResiliencyStatusOperations
  • 添加操作组ManagedMaintenanceWindowStatusOperations
  • 添加操作组ManagedUnsupportedVMSizesOperations
  • 添加操作组NodeTypeSkusOperations
  • 添加操作组OperationResultsOperations
  • 添加操作组OperationStatusOperations
  • 模型LoadBalancingRule有新参数load_distribution
  • 模型ManagedCluster有新参数auxiliary_subnets
  • 模型ManagedCluster有新参数ddos_protection_plan_id
  • 模型ManagedCluster有新参数enable_http_gateway_exclusive_auth_mode
  • 模型ManagedCluster有新参数enable_ipv6
  • 模型ManagedCluster有新参数enable_service_public_ip
  • 模型ManagedCluster有新参数http_gateway_token_auth_connection_port
  • 模型ManagedCluster有新参数ip_tags
  • 模型ManagedCluster有新参数ipv6_address
  • 模型ManagedCluster有新参数public_i_pv6_prefix_id
  • 模型ManagedCluster有新参数public_ip_prefix_id
  • 模型ManagedCluster有新参数service_endpoints
  • 模型ManagedCluster有新参数subnet_id
  • 模型ManagedCluster有新参数upgrade_description
  • 模型ManagedCluster有新参数use_custom_vnet
  • 模型ManagedCluster有新参数zonal_update_mode
  • 模型NetworkSecurityRule有新参数destination_address_prefix
  • 模型NetworkSecurityRule有新参数destination_port_range
  • 模型NetworkSecurityRule有新参数source_address_prefix
  • 模型NetworkSecurityRule有新参数source_port_range
  • 模型NodeType有新参数additional_data_disks
  • 模型NodeType有新参数additional_network_interface_configurations
  • 模型NodeType有新参数computer_name_prefix
  • 模型NodeType有新参数data_disk_letter
  • 模型NodeType有新参数dscp_configuration_id
  • 模型NodeType有新参数enable_accelerated_networking
  • 模型NodeType有新参数enable_encryption_at_host
  • 模型NodeType有新参数enable_node_public_i_pv6
  • 模型NodeType有新参数enable_node_public_ip
  • 模型NodeType有新参数enable_over_provisioning
  • 模型NodeType有新参数eviction_policy
  • 模型NodeType有新参数frontend_configurations
  • 模型NodeType有新参数host_group_id
  • 模型NodeType有新参数is_spot_vm
  • 模型NodeType有新参数nat_configurations
  • 模型NodeType有新参数nat_gateway_id
  • 模型NodeType有新参数network_security_rules
  • 模型NodeType有新参数secure_boot_enabled
  • 模型NodeType有新参数security_type
  • 模型NodeType有新参数service_artifact_reference_id
  • 模型NodeType有新参数sku
  • 模型NodeType有新参数spot_restore_timeout
  • 模型NodeType有新参数subnet_id
  • 模型NodeType有新参数use_default_public_load_balancer
  • 模型NodeType有新参数use_ephemeral_os_disk
  • 模型节点类型新增参数 use_temp_data_disk
  • 模型节点类型新增参数 vm_image_plan
  • 模型节点类型新增参数 vm_image_resource_id
  • 模型节点类型新增参数 vm_setup_actions
  • 模型节点类型新增参数 vm_shared_gallery_image_id
  • 模型节点类型新增参数 zones
  • 模型节点操作参数 Model NodeTypeActionParameters 新增参数 update_type
  • 模型节点更新参数 Model NodeTypeUpdateParameters 新增参数 sku
  • 模型服务资源属性 Model ServiceResourceProperties 新增参数 service_dns_name
  • 模型有状态服务属性 Model StatefulServiceProperties 新增参数 service_dns_name
  • 模型无状态服务属性 Model StatelessServiceProperties 新增参数 service_dns_name
  • 模型 VMSSExtension 新增参数 enable_automatic_upgrade
  • 模型 VMSSExtension 新增参数 setup_order

重大变更

  • 操作 ManagedClusterVersionOperations.get_by_environment 新增必需参数 environment
  • 操作 ManagedClusterVersionOperations.list_by_environment 新增必需参数 environment
  • 模型 ManagedCluster 的参数 sku 现在是必需的

2.0.0b6 (2024-02-22)

新增功能

  • 模型ManagedCluster有新参数enable_http_gateway_exclusive_auth_mode
  • 模型ManagedCluster有新参数http_gateway_token_auth_connection_port

2.0.0b5 (2024-01-18)

新增功能

  • 添加操作ApplicationsOperations.begin_read_upgrade
  • 添加操作ApplicationsOperations.begin_resume_upgrade
  • 添加操作ApplicationsOperations.begin_start_rollback
  • 添加操作组ManagedApplyMaintenanceWindowOperations
  • 添加操作组ManagedMaintenanceWindowStatusOperations
  • 模型ManagedCluster有新参数ddos_protection_plan_id
  • 模型ManagedCluster有新参数public_i_pv6_prefix_id
  • 模型ManagedCluster有新参数public_ip_prefix_id
  • 模型ManagedCluster有新参数upgrade_description
  • 模型NodeType有新参数additional_network_interface_configurations
  • 模型NodeType有新参数dscp_configuration_id
  • 模型NodeType有新参数enable_node_public_i_pv6
  • 模型NodeType有新参数nat_gateway_id
  • 模型NodeType有新参数service_artifact_reference_id
  • 模型节点类型新增参数 vm_image_plan
  • 模型 VMSSExtension 新增参数 setup_order

2.0.0b4 (2023-05-20)

新增功能

  • 模型ManagedCluster有新参数use_custom_vnet
  • 模型ManagedCluster有新参数zonal_update_mode
  • 模型NodeType有新参数enable_node_public_ip
  • 模型NodeType有新参数secure_boot_enabled
  • 模型NodeType有新参数security_type
  • 模型NodeType有新参数subnet_id
  • 模型节点类型新增参数 vm_setup_actions
  • 模型节点类型新增参数 vm_shared_gallery_image_id
  • 模型节点操作参数 Model NodeTypeActionParameters 新增参数 update_type
  • 模型服务资源属性 Model ServiceResourceProperties 新增参数 service_dns_name
  • 模型有状态服务属性 Model StatefulServiceProperties 新增参数 service_dns_name
  • 模型无状态服务属性 Model StatelessServiceProperties 新增参数 service_dns_name

重大变更

  • 模型 ManagedCluster 的参数 sku 现在是必需的

2.0.0b3 (2022-12-27)

其他变更

  • 在 github 仓库中添加了生成的示例
  • 停止支持 python<3.7.0

2.0.0b2 (2022-09-14)

新增功能

  • 模型 FrontendConfiguration 新增参数 application_gateway_backend_address_pool_id
  • 模型NodeType有新参数eviction_policy
  • 模型NodeType有新参数host_group_id
  • 模型NodeType有新参数spot_restore_timeout
  • 模型NodeType有新参数use_ephemeral_os_disk
  • 模型节点类型新增参数 vm_image_resource_id

2.0.0b1 (2022-06-02)

特性

  • 添加操作组ManagedAzResiliencyStatusOperations
  • 添加操作组ManagedUnsupportedVMSizesOperations
  • 添加操作组NodeTypeSkusOperations
  • 添加操作组OperationResultsOperations
  • 添加操作组OperationStatusOperations
  • 模型LoadBalancingRule有新参数load_distribution
  • 模型ManagedCluster有新参数auxiliary_subnets
  • 模型ManagedCluster有新参数enable_ipv6
  • 模型ManagedCluster有新参数enable_service_public_ip
  • 模型ManagedCluster有新参数ip_tags
  • 模型ManagedCluster有新参数ipv6_address
  • 模型ManagedCluster有新参数service_endpoints
  • 模型ManagedCluster有新参数subnet_id
  • 模型NetworkSecurityRule有新参数destination_address_prefix
  • 模型NetworkSecurityRule有新参数destination_port_range
  • 模型NetworkSecurityRule有新参数source_address_prefix
  • 模型NetworkSecurityRule有新参数source_port_range
  • 模型NodeType有新参数additional_data_disks
  • 模型NodeType有新参数data_disk_letter
  • 模型NodeType有新参数enable_accelerated_networking
  • 模型NodeType有新参数enable_encryption_at_host
  • 模型NodeType有新参数enable_over_provisioning
  • 模型NodeType有新参数frontend_configurations
  • 模型NodeType有新参数is_spot_vm
  • 模型NodeType有新参数network_security_rules
  • 模型NodeType有新参数sku
  • 模型NodeType有新参数use_default_public_load_balancer
  • 模型节点类型新增参数 use_temp_data_disk
  • 模型节点类型新增参数 zones
  • 模型节点更新参数 Model NodeTypeUpdateParameters 新增参数 sku
  • 模型 VMSSExtension 新增参数 enable_automatic_upgrade

重大变更

  • 操作 ManagedClusterVersionOperations.get_by_environment 新增参数 environment
  • 操作 ManagedClusterVersionOperations.list_by_environment 新增参数 environment

1.0.0 (2021-04-27)

特性

  • 模型 ManagedCluster 新增参数 zonal_resiliency
  • 模型 ManagedCluster 新增参数 cluster_upgrade_mode
  • 模型节点类型 Model NodeType 新增参数 data_disk_type
  • 模型节点类型 Model NodeType 新增参数 multiple_placement_groups
  • 模型节点类型 Model NodeType 新增参数 is_stateless
  • 模型负载均衡规则 Model LoadBalancingRule 新增参数 probe_port
  • 添加了操作组 ManagedClusterVersionOperations

重大变更

  • 模型无状态服务属性 Model StatelessServiceProperties 不再包含参数 service_dns_name
  • 模型无状态服务属性 Model StatelessServiceProperties 不再包含参数 instance_close_delay_duration
  • 模型服务资源属性 Model ServiceResourceProperties 不再包含参数 service_dns_name
  • 模型平均服务负载触发器 Model AverageServiceLoadScalingTrigger 新增必需参数 use_only_primary_load
  • 模型有状态服务属性 Model StatefulServiceProperties 不再包含参数 service_dns_name
  • 模型有状态服务属性 Model StatefulServiceProperties 不再包含参数 drop_source_replica_on_move

1.0.0b1 (2021-02-26)

  • 初始发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

构建分布

支持