return_value: str = function_client.easy_invoke(
region_id = 'ap-shanghai', # Unique identifier of the data center
namespace_name = 'default', # Name of the namespace
function_name = 'hello' # Name of the Cloud Function
)
return_value: str = functions.invoke('hello')
from tencent.cloud.core import errors
from tencent.cloud.core import client
from tencent.cloud.auth import credentials
virtual_machine_client: client.UniversalClient = client.UniversalClient(
product_id = 'cvm', # Unique identifier of the product
access_credentials = access_credentials # Access credentials
)
action_result: dict = virtual_machine_client.action(
region_id = 'ap-shanghai', # Unique identifier of the data center
action_id = 'DescribeZones', # Unique identifier of the Tencent Cloud API
action_version = '2017-03-12' # Version name of the Tencent Cloud API
)
for zone_info in action_result['ZoneSet']:
print(zone_info['Zone'])