class CB::Client

Defined in:

client/account.cr
client/backup.cr
client/client.cr
client/cluster.cr
client/config_param.cr
client/firewall_rule.cr
client/log_destination.cr
client/network.cr
client/peering.cr
client/providers.cr
client/role.cr
client/session.cr
client/session_intent.cr
client/team.cr
client/team_member.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String = CB::HOST, bearer_token : String | Nil = nil) #

[View source]

Instance Method Detail

def add_log_destination(cluster_id, ld) #

Add a logger to a cluster.

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridloggers/create-logger


[View source]
def backup_list(id : Identifier) #

[View source]
def backup_start(id : Identifier) #

[View source]
def backup_token(id : Identifier) #

[View source]
def create_cluster(params : ClusterCreateParams) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clusters/post


[View source]
def create_firewall_rule(network_id, params : FirewallRuleCreateParams) #

Add a firewall rule to a network.

https://docs.crunchybridge.com/api/network-firewall-rule#create-firewall-rule


[View source]
def create_fork(params : ForkCreateParams) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridforks/post


[View source]
def create_peering(network_id, params : PeeringCreateParams) #

[View source]
def create_replica(params : ReplicaCreateParams) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridreplicas/create-cluster-replica


[View source]
def create_role(cluster_id : Identifier) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridroles/create-role


[View source]
def create_role(cluster_id) #

[View source]
def create_session(params : SessionCreateParams) #

https://crunchybridgeapiinternal.docs.apiary.io/#reference/0/sessions/create-session


[View source]
def create_session_intent(params : SessionIntentCreateParams) #

[View source]
def create_team(name : String) #

Create a new team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teams/create-team


[View source]
def create_team_member(team_id, params : TeamMemberCreateParams) #

Create (add) a team member.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamidmembers/create-team-member


[View source]
def delete(path) #

[View source]
def delete_peering(network_id, peering_id) #

[View source]
def delete_role(cluster_id, role_name) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridrolesrolename/delete-role


[View source]
def destroy_cluster(id : String) #

[View source]
def destroy_cluster(id : Identifier) #

[View source]
def destroy_firewall_rule(network_id, firewall_rule_id) #

Remove a firewall rule from a network.

https://docs.crunchybridge.com/api/network-firewall-rule#destroy-firewall-rule


[View source]
def destroy_log_destination(cluster_id, logdest_id) #

Remove a logger from a cluster.

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridloggersloggerid/destroy-logger


[View source]
def destroy_team(id) #

Delete a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamid/destroy-team


[View source]
def detach_cluster(id : Identifier) #

[View source]
def disable_ha(id : Identifier) : CB::Model::Operation | Nil #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridactionsdisable-ha/disable-high-availability


[View source]
def enable_ha(id : Identifier) : CB::Model::Operation | Nil #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridactionsenable-ha/enable-high-availability


[View source]
def exec(method, path, body : String | Nil = nil) #

[View source]
def exec(method, path, body) #

[View source]
def flatten_clusters(clusters : Array(CB::Model::Cluster) | Nil, result = [] of CB::Model::Cluster) #

[View source]
def get(path) #

[View source]
def get_access_token : CB::Model::AccessToken #

[View source]
def get_account(secret : String | Nil = nil) #

Get the account for the currently logged in user. https://crunchybridgeapi.docs.apiary.io/#reference/0/account/get-account


[View source]
def get_cluster(id : Identifier) #

Retrieve the cluster by id or by name.


[View source]
def get_cluster(id : String | Nil) #

TODO (abrightwell): track down why this must be nilable. Seems reasonable that it shouldn't require it to be.


[View source]
def get_cluster_status(cluster_id) #

[View source]
def get_clusters(teams : Array(CB::Model::Team), flatten : Bool = false) #

[View source]
def get_clusters(team_id) #

[View source]
def get_clusters #

[View source]
def get_configuration_parameter(id : Identifier, name : String) #

Get configuration parameter value


[View source]
def get_firewall_rules(network_id) #

List current firewall rules for a network.

https://docs.crunchybridge.com/api/network-firewall-rule#list-firewall-rules


[View source]
def get_log_destinations(cluster_id) #

List existing loggers for a cluster.

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridloggers/list-loggers


[View source]
def get_network(id : Identifier) #

Get a network by id or name.

https://crunchybridgeapi.docs.apiary.io/#reference/0/networksnetworkid


[View source]
def get_network(id : String | Nil) #

[View source]
def get_networks(team : Identifier | Nil) #

Get all networks for a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/networks/list-networks


[View source]
def get_networks(teams : Array(CB::Model::Team)) #

[View source]
def get_peering(network_id, peering_id) #

[View source]
def get_providers #

List available providers.

https://crunchybridgeapi.docs.apiary.io/#reference/0/providers/list-providers


[View source]
def get_role(cluster_id : Identifier, role_name : String) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridrolesrolename/get-role


[View source]
def get_role(cluster_id, role_name) #

[View source]
def get_session_intent(params : SessionIntentGetParams) #

[View source]
def get_team(id) #

Retrieve details about a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamid/get-team


[View source]
def get_team_cert(id) #

[View source]
def get_team_member(team_id, account_id) #

Retrieve details about a team member.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamidmembersaccountid/get-team-member


[View source]
def get_teams #

List available teams.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teams/list-teams


[View source]
def get_tempkey(id : Identifier) #

[View source]
def headers : HTTP::Headers #

[View source]
def headers=(headers : HTTP::Headers) #

[View source]
def host : String #

[View source]
def host=(host : String) #

[View source]
def http : HTTP::Client #

[View source]
def list_configuration_parameters(id : Identifier) #

List configuration parameter values.


[View source]
def list_peerings(network_id) #

[View source]
def list_roles(cluster_id) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridroles/list-roles


[View source]
def list_supported_configuration_parameters #

List support configuration parameters


[View source]
def list_team_members(team_id) #

List the memebers of a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamidmembers/list-team-members


[View source]
def patch(path, body) #

[View source]
def post(path, body = nil) #

[View source]
def put(path, body = nil) #

[View source]
def remove_team_member(team_id, account_id) #

Remove a team member from a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamidmembersaccountid/remove-team-member


[View source]
def restart_cluster(id, service : String) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridrestart/restart-cluster


[View source]
def resume_cluster(id : Identifier) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridactionsresume/resume-cluster


[View source]
def suspend_cluster(id : Identifier) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridactionssuspend/suspend-cluster


[View source]
def update_cluster(cluster_id, body) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusterid/update-cluster


[View source]
def update_configuration_parameters(id, parameters, allow_restart : Bool = false) #

Update configuration parameter values.


[View source]
def update_firewall_rule(network_id, firewall_rule_id, params : FirewallRuleUpdateParams) #

Update a firewall rule for a network.

https://docs.crunchybridge.com/api/network-firewall-rule#update-firewall-rule


[View source]
def update_role(cluster_id, role_name, ur) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridrolesrolename/update-role


[View source]
def update_team(id, options) #

Update a team.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamid/update-team


[View source]
def update_team_member(team_id, account_id, role) #

Update a team member.

https://crunchybridgeapi.docs.apiary.io/#reference/0/teamsteamidmembersaccountid/update-team-member


[View source]
def update_upgrade_cluster(uc) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridupgrade/update-upgrade-cluster


[View source]
def upgrade_cluster(uc) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridupgrade/upgrade-cluster


[View source]
def upgrade_cluster_cancel(id) #

[View source]
def upgrade_cluster_status(id) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridupgrade/get-upgrade-status


[View source]