1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00
copilot/cloudapi-graphql
2016-10-31 14:17:08 +00:00
..
etc Dockerising the cloudapi application 2016-10-17 16:41:17 +01:00
src allow circular dependencies in graphql 2016-10-25 20:34:56 +01: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 docker: fixing docker mishape 2016-10-24 15:56:31 +01:00
Makefile make: adding lint-ci task 2016-10-31 14:17:08 +00:00
package.json make: Adding test-ci make task 2016-10-31 12:02:32 +00:00
README.md tests: Makefile is now the main truth, away from npm 2016-10-27 16:15:44 +01:00
yarn.lock make: Adding test-ci make task 2016-10-31 12:02:32 +00:00

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