joyent-portal/cloudapi-graphql
2017-01-26 17:17:44 +00:00
..
etc Add new telemetry for application 2017-01-26 14:41:41 +00:00
src Adding nginx as a service to load balance ui 2016-11-02 16:13:15 +00:00
static triton-graphql -> Joyent cloudapi-graphql (#22) 2016-10-14 12:51:09 +01:00
test Implementing a faux passing test for ci 2016-10-17 17:56:01 +01:00
.eslintrc triton-graphql -> Joyent cloudapi-graphql (#22) 2016-10-14 12:51:09 +01:00
.gitignore triton-graphql -> Joyent cloudapi-graphql (#22) 2016-10-14 12:51:09 +01:00
Dockerfile Bumping Dockerfile versions 2017-01-26 17:17:44 +00:00
Makefile Adding licence checker 2017-01-17 16:50:48 +00:00
package.json Update license to SPDX formated 2017-01-03 14:30:58 +00:00
README.md docs: adding container badge for cloudapi-graphql 2016-11-04 12:20:24 +00:00
yarn.lock update dependencies 2016-12-22 11:36:41 +00:00

Docker Repository on Quay

cloudapi-graphql

Proof-of-Concept of the Joyent Cloud API running on GraphQL.

Setup

Setup Credentials

Create credentials.json, TODO, use environment variables.

{
  "url": "https://us-sw-1.api.joyentcloud.com",
  "keyId": "", //public key fingerprint ex: 35:jh:42:56...
  "account": "", // account ex: raoulmillais
  "user": "" // sub-account ex: ramitos
}

Install Dependencies and run

yarn install
yarn start

Visit GraphiQL

Go-to http://0.0.0.0:3000/graphql to use the REPL with interactive documentation.

GraphiQL

API

  • Account
    • GetAccount
    • UpdateAccount
  • Keys
    • ListKeys
    • GetKey
    • CreateKey
    • DeleteKey
  • Users
    • ListUsers
    • GetUser
    • CreateUser
    • UpdateUser
    • ChangeUserPassword
    • DeleteUser
  • Roles
    • ListRoles
    • GetRole
    • CreateRole
    • UpdateRole
    • DeleteRole
  • Role Tags
    • SetRoleTags
  • Policies
    • ListPolicies
    • GetPolicy
    • CreatePolicy
    • UpdatePolicy
    • DeletePolicy
  • User SSH Keys
    • ListUserKeys
    • GetUserKey
    • CreateUserKey
    • DeleteUserKey
  • Config
    • GetConfig
    • UpdateConfig
  • Datacenters
    • ListDatacenters
    • GetDatacenter
  • Services
    • ListServices
  • Images
    • ListImages
    • GetImage
    • DeleteImage
    • ExportImage
    • CreateImageFromMachine
    • UpdateImage
  • Packages
    • ListPackages
    • GetPackage
  • Instances
    • ListMachines
    • GetMachine
    • CreateMachine
    • StopMachine
    • StartMachine
    • RebootMachine
    • ResizeMachine
    • RenameMachine
    • EnableMachineFirewall
    • DisableMachineFirewall
    • CreateMachineSnapshot
    • StartMachineFromSnapshot
    • ListMachineSnapshots
    • GetMachineSnapshot
    • DeleteMachineSnapshot
    • UpdateMachineMetadata
    • ListMachineMetadata
    • GetMachineMetadata
    • DeleteMachineMetadata
    • DeleteAllMachineMetadata
    • AddMachineTags
    • ReplaceMachineTags
    • ListMachineTags
    • GetMachineTag
    • DeleteMachineTag
    • DeleteMachineTags
    • DeleteMachine
    • MachineAudit
  • Analytics
    • DescribeAnalytics
    • ListInstrumentations
    • GetInstrumentation
    • GetInstrumentationValue
    • GetInstrumentationHeatmap
    • GetInstrumentationHeatmapDetails
    • CreateInstrumentation
    • DeleteInstrumentation
  • FirewallRules
    • Firewall Rule Syntax
    • ListFirewallRules
    • GetFirewallRule
    • CreateFirewallRule
    • UpdateFirewallRule
    • EnableFirewallRule
    • DisableFirewallRule
    • DeleteFirewallRule
    • ListMachineFirewallRules
    • ListFirewallRuleMachines
  • Fabrics
    • ListFabricVLANs
    • CreateFabricVLAN
    • GetFabricVLAN
    • UpdateFabricVLAN
    • DeleteFabricVLAN
    • ListFabricNetworks
    • CreateFabricNetwork
    • GetFabricNetwork
    • DeleteFabricNetwork
  • Networks
    • ListNetworks
    • GetNetwork
  • Nics
    • ListNics
    • GetNic
    • AddNic
    • RemoveNic