检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
若不配置委托,在触发函数时,执行结果会返回 Failed to access other services because no temporary AK, SK, or token has been obtained. Please set an agency.
提供如下样例: 在服务器创建一个main.tf文件,将如下脚本拷贝到main.tf上并保存。
getDomain() 获取账号信息。 表20 Domain方法说明 方法名 方法说明 getName() 获取账号名称。 getId() 获取账号ID。
SYS.FunctionGraph 监控指标 表1 监控指标 指标名称 显示名 描述 单位 上限值 下限值 建议阈值 值类型 指标意义 所属维度 count 调用次数 该指标用于统计函数调用次数 次数 - 0 - Int 该指标用于统计函数调用次数 package-functionname failcount
CTS trigger event: { "cts": { "time": "", "user": { "name": "userName", "id": "", "domain
domain_id 租户名称。 namespace 租户的Project ID。 project_name 租户的Project Name。 package 函数所属的分组Package,用于用户针对函数的自定义分组。
{ "lts": { "data": "ICB7CiAgICAibG9ncyI6W3sKICAgICAgICAgIm1lc3NhZ2UiOiIyMDE4LTA4LTA4LzA4OjA4OjA4IFtXUk5dIFt0ZXN0LmdvOjA4XVRoaXMgaXMgYSB0ZXN0IG1lc3NhZ2UuIiwKICAgICAgICAgInRpbWUiOjE1MzAwMDk2NTMwNTksCiAgICAgICAgICJob3N0X25hbWUiOiJlY3MtdGVzdCIsCiAgICAgICAgICJpcCI6IjE5Mi4xNjguMS4xIiwKICAgICAgICAgInBhdGgiOiJ2YXIvbG9nL3Rlc3QubG9nIiwKICAgICAgICAgImxvZ191aWQiOiI2NjNkNjkzMC03OTJkLTExZTgtOGIwOC0yODZlZDQ4OGNlNzAiLAogICAgICAgICAibGluZV9ubyI6MQogICAgIH1dLAogICAgIm93bmVyIjogIjYyODBlMTcwYmQ5MzRmNjBhNGQ4NTFjZjVjYTA1MTI5IiwKICAgICJsb2dfZ3JvdXBfaWQiOiAiOTdhOWQyODQtNDQ0OC0xMWU4LThmYTQtMjg2ZWQ0ODhjZTcwIiwKICAgICJsb2dfdG9waWNfaWQiOiAiMWE5Njc1YTctNzg0ZC0xMWU4LTlmNzAtMjg2ZWQ0ODhjZTcwIgogfQ
// The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
// The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
withEndpoint(endpoint) .build(); const request = new functiongraph.InvokeFunctionRequest(); request.xCffLogType = "tail
请把mainClass替换为真实的类。
Python3.6 进入fss_examples_image_thumbnail函数详情页,配置如下信息。 下载示例代码 fss_examples_image_thumbnail_eg.zip。
# -*- coding:utf-8 -*- import json import requests def handler (event, context): domainId = "https://{Endpoint}" url = "/v2/{project_id
单击“下一步”,进入委托选择页面,在“配置权限”界面勾选“OBS Administrator”和“DEW KeypairFullAccess”。 单击“下一步”,根据实际业务需求选择资源授权范围,单击“确定”,完成权限委托设置。
getRemainingTimeInMilliSeconds () 获取函数剩余运行时间。 getAccessKey() 获取用户委托的AccessKey(有效期24小时),使用该方法需要给函数配置委托。
sl_domain 子域名,必填。 instance_id 实例ID,触发器类型"trigger_type_code"取值为“DEDICATEDGATEWAY”或者“APIC”必填 TIMER触发器数据如下。
func_urn": "urn:fss:{project_name}:{project_id}:function:default:create_function_from_obs:latest", "func_name": "create_function_from_obs", "domain_id
08/20 10:37:12 GMT+08:00 Start invoke request 'a2f105b4-2e72-4fda-94a5-86d3837e961d', version: latest [GET /v2/zones/{zone_id}/recordsets] failed