The Hub Resource

Attributes
  • id
    string

    The ID of the Hub.

  • name
    string

    The name of the hub

  • events
    object

    A collection of timestamps for each event in the hub's lifetime.

    Show child fields
  • state
    object

    Information regarding the current state of the hub.

    Show child fields
  • integrations
    object

    If there are any integrations associated with the Hub they will be defined here.

    Show child fields
  • providers
    object

    Providers that have been enabled on this hub.

    Show child fields
  • webhooks
    object

    Webhooks endpoints that will be POST(ed) to when specific events occur.

    Show child fields
  • meta
    object
    optional

    A list of meta fields that can be applied to this hubs. See the meta section for more details.

    Show child fields
Example Hub
{
"id": "5cc78aa0db2ab000014a8b98",
"name": "MyHub",
"creator": {
"type": "account",
"id": "5cc78aa0db2ab000014a8b98"
},
"events": {
"created": "2019-11-22T02:15:52.091Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z"
},
"state": {
"changed": "2019-11-22T02:16:50.848Z",
"current": "live"
},
"integrations": {
"letsencrypt": null
},
"providers": {
"equinix_metal": {
"api_key": "3GR*****************************",
"project": "cdwqa510-7547-2s45-u8ui-q13wk9jh4u52"
},
"vultr": {
"api_key": "FHG*********************************"
},
"aws": {
"api_key": "IOP*****************",
"secret": "uYG*************************************"
}
},
"webhooks": {
"server_deployed": "https://demo.endpoint.com"
},
"billing": {
"term": {
"start": "2019-12-22T22:38:57.506Z",
"end": "2020-01-22T22:38:57.506Z",
"renew": "monthly"
},
"plans": {
"tier_id": "5cc78aa0db2ab000014a8b98",
"support_id": "5cc78aa0db2ab000014a8b98"
}
},
"meta": {
"membership": {
"id": "5cc78aa0db2ab000014a8b98",
"account_id": "5cc78aa0db2ab000014a8b98",
"hub_id": "5cc78aa0db2ab000014a8b98",
"preferences": {
"notifications": {
"api_keys": false
}
},
"events": {
"created": "2019-04-04T23:22:37.467Z",
"updated": "2019-04-11T08:11:34.992Z",
"deleted": "0001-01-01T00:00:00Z",
"joined": "2019-04-04T23:23:31.73Z"
},
"state": {
"changed": "2019-04-04T23:23:31.731Z",
"current": "accepted"
},
"role": 2,
"permissions": {
"all_environments": false,
"environments": [
{
"id": "5b9c2a77b6393d0001eb45fd",
"manage": false
}
]
},
"invitation": {
"sender": {
"id": "5cc78aa0db2ab000014a8b98",
"type": "account"
},
"recipient": "youremail@organization.net",
"events": {
"accepted": "2019-04-04T23:23:31.73Z",
"declined": "0001-01-01T00:00:00Z",
"revoked": "0001-01-01T00:00:00Z"
}
}
}
}
}