🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

aliyun-ros

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-ros

阿里云资源编排的简单SDK

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

API 接口对照表

API 接口对照表

方法

方法方法名
ros.createStack创建资源栈
ros.getStacks查询资源栈列表
ros.getStack查询资源栈信息
ros.putStack更新资源栈
ros.delStack删除资源栈
ros.abandonStack废弃资源栈
ros.previewStack预览资源栈
ros.getResources查询资源列表
ros.getResource查询资源详情
ros.getResourceTypes查询资源类型列表
ros.getResourceType查询资源类型信息
ros.getResourceTypeTemplate查询资源类型模板信息
ros.getStackTemplate查询模板信息
ros.validateTemplate验证模板信息
ros.getEvents查询事件列表
ros.getRegions查询地域列表

用法

ros.getStack(options, data);

用法

var AliRos, _options, aliRos, options;

AliRos = require('../src/');

options = {
  AccessKeyId: '<AccessKeyId>',
  AccessKeySecret: '<AccessKeySecret>'
};

aliRos = new AliRos.Client(options);

// 查询资源类型
aliRos.getResourceTypes({SupportStatus: 'UNKNOWN'}).then(function(res) {
  return console.log(res.headers, res.body);
}).catch(function(err) {
  return console.log(err);
});

// 创建资源栈, 注意Api中要求headers设置x-acs-region-id,此SDK统一设置RegionId即可
aliRos.createStack({
  RegionId: 'cn-beijing',
  Name: 'xxxx',
  Template: {
    ...
  },
  Parameters: {
    ...
  },
  DisableRollback: true,
  TimeoutMins:1
}).then(function(res) {
  return console.log(res.headers, res.body);
}).catch(function(err) {
  return console.log(err);
});

Keywords

aliyun

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts