承接 raventools/rightscaleapiclient 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

raventools/rightscaleapiclient

最新稳定版本:v1.0.3

Composer 安装命令:

composer require raventools/rightscaleapiclient

包简介

Client for Rightscale API 1.5

README 文档

README

This library implements Rightscale's 1.5 API in PHP. It is currently incomplete but the aim is to mirror the functionality of the official Rightscale ruby library

This is an unofficial library and is not supported by Rightscale.

Installation

Installation through Composer is recommended.

composer.json:

{
	"require": {
		"raventools/RightscaleAPIClient": "master"
	}
}

Then require Composer's autoloader

require 'vendor/autoload.php';

Examples

This client should function in much the same way as the official ruby api client, for design philosophy, etc, see https://github.com/rightscale/right_api_client

Creating a new client:

$client = new RightscaleClient([
	"account_id" => 1234,
	"email" => "example@email.com",
	"password" => "54321"
]);

Listing api methods available to a particular resource:

$methods = $client->api_methods();

$methods = $client->servers(["id"=>995905004])->api_methods();

List Deployments:

$resources = $client->deployments()->index();

Get list of instances with the tag "deploy:myapp=true"

$resourcedetail = $client
	->tags()
	->by_tag([
		"resource_type"=>"instances",
		"tags"=>["deploy:myapp=true]"
	]);

统计信息

  • 总下载量: 13.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 21
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-14