本文整理汇总了Python中azure.servicemanagement.ServiceManagementService.list_service_certificates方法的典型用法代码示例。如果您正苦于以下问题:Python ServiceManagementService.list_service_certificates方法的具体用法?Python ServiceManagementService.list_service_certificates怎么用?Python ServiceManagementService.list_service_certificates使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类azure.servicemanagement.ServiceManagementService
的用法示例。
在下文中一共展示了ServiceManagementService.list_service_certificates方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: process_sms_list
# 需要导入模块: from azure.servicemanagement import ServiceManagementService [as 别名]
# 或者: from azure.servicemanagement.ServiceManagementService import list_service_certificates [as 别名]
result = sms.list_vm_images()
process_sms_list(result.vm_images, './azure/data/azure_vm_images.csv')
print ('Azure VM images saved in azure_vm_images.csv')
result = sms.list_role_sizes()
process_sms_list(result.role_sizes, './azure/data/azure_role_sizes.csv')
print ('Azure Role sizes saved in azure_role_sizes.csv')
result = sms.list_locations()
process_sms_list(result.locations, './azure/data/azure_locations.csv')
print ('Azure Locations saved in azure_locations.csv')
result = sms.list_storage_accounts()
process_sms_list(result.storage_services, './azure/data/azure_storage_accounts.csv')
print ('Azure Storage accounts saved in azure_storage_accounts.csv')
# Put this result always next to for loop!
result = sms.list_hosted_services()
process_sms_list(result.hosted_services, './azure/data/azure_hosted_services.csv')
print ('Azure Hosted services saved in azure_hosted_services.csv')
for hs in result.hosted_services:
subr = sms.list_service_certificates(hs.service_name)
process_sms_list(subr.certificates, './azure/data/azure_service_certificates-{0}.csv'.format(hs.service_name))
print(('Azure Service certificates for {0} saved in azure_service_certificates-{0}.csv'.format(hs.service_name)))
if hs.deployments:
process_sms_list(hs.deployments, './azure/data/azure_service_deployments-{0}.csv'.format(hs.service_name))
print(('Azure Service deployments for {0} saved in azure_service_deployments-{0}.csv'.format(hs.service_name)))