All URIs are relative to https://api.subspace.com
Method | HTTP request | Description |
---|---|---|
SipTeleportServiceCreate | Post /v1/sipteleport | |
SipTeleportServiceDelete | Delete /v1/sipteleport/{id} | |
SipTeleportServiceGet | Get /v1/sipteleport/{id} | |
SipTeleportServiceList | Get /v1/sipteleport | |
SipTeleportServiceUpdate | Put /v1/sipteleport/{id} |
V1SipTeleportResponse SipTeleportServiceCreate(ctx).V1CreateSipTeleport(v1CreateSipTeleport).IdempotencyKey(idempotencyKey).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
v1CreateSipTeleport := *openapiclient.NewV1CreateSipTeleport("Name_example", "Destination_example") // V1CreateSipTeleport | Required parameters to create a new SIPTeleport
idempotencyKey := "idempotencyKey_example" // string | Value is the returned etag of a get request. If a retry sends an Idempotency-Key that has been seen before, the existing teleport is returned with the status code of 200 (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SipTeleportServiceApi.SipTeleportServiceCreate(context.Background()).V1CreateSipTeleport(v1CreateSipTeleport).IdempotencyKey(idempotencyKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SipTeleportServiceApi.SipTeleportServiceCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SipTeleportServiceCreate`: V1SipTeleportResponse
fmt.Fprintf(os.Stdout, "Response from `SipTeleportServiceApi.SipTeleportServiceCreate`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSipTeleportServiceCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v1CreateSipTeleport | V1CreateSipTeleport | Required parameters to create a new SIPTeleport | |
idempotencyKey | string | Value is the returned etag of a get request. If a retry sends an Idempotency-Key that has been seen before, the existing teleport is returned with the status code of 200 |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1SipTeleportResponse SipTeleportServiceDelete(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SipTeleportServiceApi.SipTeleportServiceDelete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SipTeleportServiceApi.SipTeleportServiceDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SipTeleportServiceDelete`: V1SipTeleportResponse
fmt.Fprintf(os.Stdout, "Response from `SipTeleportServiceApi.SipTeleportServiceDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiSipTeleportServiceDeleteRequest 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]
V1SipTeleportResponse SipTeleportServiceGet(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SipTeleportServiceApi.SipTeleportServiceGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SipTeleportServiceApi.SipTeleportServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SipTeleportServiceGet`: V1SipTeleportResponse
fmt.Fprintf(os.Stdout, "Response from `SipTeleportServiceApi.SipTeleportServiceGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiSipTeleportServiceGetRequest 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]
V1ListSipTeleportResponse SipTeleportServiceList(ctx).Before(before).Limit(limit).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
before := "before_example" // string | (optional)
limit := int64(789) // int64 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SipTeleportServiceApi.SipTeleportServiceList(context.Background()).Before(before).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SipTeleportServiceApi.SipTeleportServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SipTeleportServiceList`: V1ListSipTeleportResponse
fmt.Fprintf(os.Stdout, "Response from `SipTeleportServiceApi.SipTeleportServiceList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSipTeleportServiceListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
before | string | ||
limit | int64 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1SipTeleportResponse SipTeleportServiceUpdate(ctx, id).V1UpdateSipTeleport(v1UpdateSipTeleport).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
v1UpdateSipTeleport := *openapiclient.NewV1UpdateSipTeleport("Name_example", "Destination_example", openapiclient.v1SipTeleportStatus("UNKNOWN")) // V1UpdateSipTeleport | Parameters to update an existing SIPTeleport, minimum requirement of one of them defined to update
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SipTeleportServiceApi.SipTeleportServiceUpdate(context.Background(), id).V1UpdateSipTeleport(v1UpdateSipTeleport).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SipTeleportServiceApi.SipTeleportServiceUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SipTeleportServiceUpdate`: V1SipTeleportResponse
fmt.Fprintf(os.Stdout, "Response from `SipTeleportServiceApi.SipTeleportServiceUpdate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiSipTeleportServiceUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v1UpdateSipTeleport | V1UpdateSipTeleport | Parameters to update an existing SIPTeleport, minimum requirement of one of them defined to update |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]