post https://api.authing.cn/api/v3/create-resources-batch
Log in to see full request history
Responses
xxxxxxxxxx
32import { ManagementClient,Models } from 'authing-node-sdk';
// 在 Node.js 中引用:
// const { ManagementClient } = require('authing-node-sdk');
const managementClient = new ManagementClient({
accessKeyId: 'AUTHING_USERPOOL_ID',
accessKeySecret: 'AUTHING_USERPOOL_SECRET',
});
(async () => {
const result = await managementClient.createResourcesBatch({
namespace: 'default',
list: [
{
code: 'ecs1',
description: '服务器',
type: Models.CreateResourceBatchItemDto.type.API,
actions: [
{
name: 'ecs:Start',
description: '启动 ECS 服务器',
},
{
name: 'ecs:Stop',
description: '停止 ECS 服务器',
},
],
apiIdentifier: 'https://my-awesome-api.com/api',
},
Try It!
to start a request and see the response here! Or choose an example: