Skip to content

Latest commit

 

History

History
executable file
·
73 lines (46 loc) · 1.9 KB

RolesEtcdApi.md

File metadata and controls

executable file
·
73 lines (46 loc) · 1.9 KB

\RolesEtcdApi

All URIs are relative to http://localhost

Method HTTP request Description
EtcdJoinMember Post /api/v1/etcd/join Etcd join

EtcdJoinMember

ApiAPIMemberJoinOutput EtcdJoinMember(ctx).ApiAPIMemberJoinInput(apiAPIMemberJoinInput).Execute()

Etcd join

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "beryju.io/gravity/api"
)

func main() {
    apiAPIMemberJoinInput := *openapiclient.NewApiAPIMemberJoinInput() // ApiAPIMemberJoinInput |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RolesEtcdApi.EtcdJoinMember(context.Background()).ApiAPIMemberJoinInput(apiAPIMemberJoinInput).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RolesEtcdApi.EtcdJoinMember``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EtcdJoinMember`: ApiAPIMemberJoinOutput
    fmt.Fprintf(os.Stdout, "Response from `RolesEtcdApi.EtcdJoinMember`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiEtcdJoinMemberRequest struct via the builder pattern

Name Type Description Notes
apiAPIMemberJoinInput ApiAPIMemberJoinInput

Return type

ApiAPIMemberJoinOutput

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]