All URIs are relative to https://api.lab5e.com
Method | HTTP request | Description |
---|---|---|
CreateGateway | Post /span/collections/{collectionId}/gateways | Create gateway |
DeleteGateway | Delete /span/collections/{collectionId}/gateways/{gatewayId} | Delete gateway |
GatewayCertificates | Get /span/collections/{collectionId}/gateways/{gatewayId}/certs | Get issued certificate(s) for gateway |
ListGateways | Get /span/collections/{collectionId}/gateways | List gateways |
RetrieveGateway | Get /span/collections/{collectionId}/gateways/{gatewayId} | Retrieve gateway |
RetrieveGatewayStats | Get /span/collections/{collectionId}/gateways/{gatewayId}/stats | Retrieve gateway statistics |
UpdateGateway | Patch /span/collections/{existingCollectionId}/gateways/{gatewayId} | Update gateway |
Gateway CreateGateway(ctx, collectionId).Body(body).Execute()
Create gateway
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
body := *openapiclient.NewCreateGatewayBody() // CreateGatewayBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.CreateGateway(context.Background(), collectionId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.CreateGateway``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateGateway`: Gateway
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.CreateGateway`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string |
Other parameters are passed through a pointer to a apiCreateGatewayRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | CreateGatewayBody | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Gateway DeleteGateway(ctx, collectionId, gatewayId).Execute()
Delete gateway
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
gatewayId := "gatewayId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.DeleteGateway(context.Background(), collectionId, gatewayId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.DeleteGateway``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteGateway`: Gateway
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.DeleteGateway`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string | ||
gatewayId | string |
Other parameters are passed through a pointer to a apiDeleteGatewayRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GatewayCertificateResponse GatewayCertificates(ctx, collectionId, gatewayId).Execute()
Get issued certificate(s) for gateway
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
gatewayId := "gatewayId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.GatewayCertificates(context.Background(), collectionId, gatewayId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.GatewayCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GatewayCertificates`: GatewayCertificateResponse
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.GatewayCertificates`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string | ||
gatewayId | string |
Other parameters are passed through a pointer to a apiGatewayCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListGatewayResponse ListGateways(ctx, collectionId).Execute()
List gateways
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.ListGateways(context.Background(), collectionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.ListGateways``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListGateways`: ListGatewayResponse
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.ListGateways`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string |
Other parameters are passed through a pointer to a apiListGatewaysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Gateway RetrieveGateway(ctx, collectionId, gatewayId).Execute()
Retrieve gateway
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
gatewayId := "gatewayId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.RetrieveGateway(context.Background(), collectionId, gatewayId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.RetrieveGateway``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RetrieveGateway`: Gateway
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.RetrieveGateway`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string | ||
gatewayId | string |
Other parameters are passed through a pointer to a apiRetrieveGatewayRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GatewayStats RetrieveGatewayStats(ctx, collectionId, gatewayId).Execute()
Retrieve gateway statistics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
collectionId := "collectionId_example" // string |
gatewayId := "gatewayId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.RetrieveGatewayStats(context.Background(), collectionId, gatewayId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.RetrieveGatewayStats``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RetrieveGatewayStats`: GatewayStats
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.RetrieveGatewayStats`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
collectionId | string | ||
gatewayId | string |
Other parameters are passed through a pointer to a apiRetrieveGatewayStatsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Gateway UpdateGateway(ctx, existingCollectionId, gatewayId).Body(body).Execute()
Update gateway
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lab5e/go-spanapi"
)
func main() {
existingCollectionId := "existingCollectionId_example" // string |
gatewayId := "gatewayId_example" // string |
body := *openapiclient.NewUpdateGatewayBody() // UpdateGatewayBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GatewaysApi.UpdateGateway(context.Background(), existingCollectionId, gatewayId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GatewaysApi.UpdateGateway``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateGateway`: Gateway
fmt.Fprintf(os.Stdout, "Response from `GatewaysApi.UpdateGateway`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
existingCollectionId | string | ||
gatewayId | string |
Other parameters are passed through a pointer to a apiUpdateGatewayRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | UpdateGatewayBody | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]