2017 © Pedro Peláez
 

library qingcloud

Operating qingcloud server, switch machine and testing status

image

wangge/qingcloud

Operating qingcloud server, switch machine and testing status

  • Thursday, June 8, 2017
  • by wangge
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

qingcloud

Operating qingcloud server, switch machine and testing status, (*1)

安装

composer require wangge/qingcloud dev-master, (*2)

在根目录下 config下新建qingcloud.php,配置相关信息 return [ 'access_key_id'=> '', 'secret_access_key' => '', 'zone'=> '', ];, (*3)

使用

<?php $access_key_id = 在青云申请的access_key_id $secret_access_key = 在青云申请的$secret_access_key $zone = 青云机房区域 如:北京3区-A(pek3a), (*4)

$s = new \Qing\Server\ApiInstruct();, (*5)

$response = $s->describeInstances(['status.0'=>'pending']);, (*6)

array (size=3) 'status' => boolean true 'msg' => string '请求成功' (length=12) 'data' => array (size=4) 'action' => string 'DescribeInstancesResponse' (length=25) 'instance_set' =>// 青云返回的主要数据 array (size=0) empty 'total_count' => int 0 //总条数 'ret_code' => int 0 状态码, (*7)

data 部分的详细 请见:https://docs.qingcloud.com/api/common/action.html

The Versions

08/06 2017

dev-master

9999999-dev

Operating qingcloud server, switch machine and testing status

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar wangge

php operating qingcloud