const response = await uniCloud.httpClient.request('https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens', {
method: 'POST',
data: {
auth: {
identity: {
methods: ['password'],
password: {
user: {
domain: { name: config.HWDOMAIN },
name: config.HW_USER,
password: config.HWPASSWORD
}
}
},
scope: { domain: { name: config.HWDOMAIN } }
}
},
contentType: 'json',
dataType: 'json'
});
console.log(response);
上面是云函数代码
2***@qq.com
- 发布:2025-04-25 16:13
- 更新:2025-04-25 16:13
- 阅读:77
0 个回复