All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetFullRelation | Get /relations/{relationId} | Get full relation |
FullRelation GetFullRelation(ctx, relationId).TopologyTime(topologyTime).Execute()
Get full relation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
relationId := int64(789) // int64 | The id of a relation
topologyTime := int32(56) // int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelationApi.GetFullRelation(context.Background(), relationId).TopologyTime(topologyTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelationApi.GetFullRelation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFullRelation`: FullRelation
fmt.Fprintf(os.Stdout, "Response from `RelationApi.GetFullRelation`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| relationId | int64 | The id of a relation |
Other parameters are passed through a pointer to a apiGetFullRelationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
topologyTime | int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]