All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AddApiV2GraphAddPost | Post /api/v2/graph/add | Add |
DeleteApiV2GraphRelationshipIdDelete | Delete /api/v2/graph/{relationship_id} | Delete |
EditApiV2GraphRelationshipIdPatch | Patch /api/v2/graph/{relationship_id} | Edit |
MatchApiV2GraphMatchPost | Post /api/v2/graph/match | Match |
SearchApiV2GraphSearchPost | Post /api/v2/graph/search | Search |
SwapApiV2GraphRelationshipIdSwapPost | Post /api/v2/graph/{relationship_id}/swap | Swap |
Relationship AddApiV2GraphAddPost(ctx).GraphAddRequest(graphAddRequest).Execute()
Add
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
graphAddRequest := *openapiclient.NewGraphAddRequest("Source_example", "Target_example", "LinkType_example", "Description_example") // GraphAddRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.AddApiV2GraphAddPost(context.Background()).GraphAddRequest(graphAddRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.AddApiV2GraphAddPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddApiV2GraphAddPost`: Relationship
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.AddApiV2GraphAddPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAddApiV2GraphAddPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
graphAddRequest | GraphAddRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} DeleteApiV2GraphRelationshipIdDelete(ctx, relationshipId).Execute()
Delete
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
relationshipId := "relationshipId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.DeleteApiV2GraphRelationshipIdDelete(context.Background(), relationshipId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.DeleteApiV2GraphRelationshipIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteApiV2GraphRelationshipIdDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.DeleteApiV2GraphRelationshipIdDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
relationshipId | string |
Other parameters are passed through a pointer to a apiDeleteApiV2GraphRelationshipIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Relationship EditApiV2GraphRelationshipIdPatch(ctx, relationshipId).GraphPatchRequest(graphPatchRequest).Execute()
Edit
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
relationshipId := "relationshipId_example" // string |
graphPatchRequest := *openapiclient.NewGraphPatchRequest("LinkType_example", "Description_example") // GraphPatchRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.EditApiV2GraphRelationshipIdPatch(context.Background(), relationshipId).GraphPatchRequest(graphPatchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.EditApiV2GraphRelationshipIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditApiV2GraphRelationshipIdPatch`: Relationship
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.EditApiV2GraphRelationshipIdPatch`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
relationshipId | string |
Other parameters are passed through a pointer to a apiEditApiV2GraphRelationshipIdPatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
graphPatchRequest | GraphPatchRequest | |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnalysisResponse MatchApiV2GraphMatchPost(ctx).AnalysisRequest(analysisRequest).Execute()
Match
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
analysisRequest := *openapiclient.NewAnalysisRequest([]string{"Observables_example"}) // AnalysisRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.MatchApiV2GraphMatchPost(context.Background()).AnalysisRequest(analysisRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.MatchApiV2GraphMatchPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MatchApiV2GraphMatchPost`: AnalysisResponse
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.MatchApiV2GraphMatchPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiMatchApiV2GraphMatchPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
analysisRequest | AnalysisRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GraphSearchResponse SearchApiV2GraphSearchPost(ctx).GraphSearchRequest(graphSearchRequest).Execute()
Search
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
graphSearchRequest := *openapiclient.NewGraphSearchRequest("Source_example", "Graph_example", openapiclient.GraphDirection("outbound"), false) // GraphSearchRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.SearchApiV2GraphSearchPost(context.Background()).GraphSearchRequest(graphSearchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.SearchApiV2GraphSearchPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchApiV2GraphSearchPost`: GraphSearchResponse
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.SearchApiV2GraphSearchPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchApiV2GraphSearchPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
graphSearchRequest | GraphSearchRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Relationship SwapApiV2GraphRelationshipIdSwapPost(ctx, relationshipId).Execute()
Swap
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
relationshipId := "relationshipId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GraphAPI.SwapApiV2GraphRelationshipIdSwapPost(context.Background(), relationshipId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphAPI.SwapApiV2GraphRelationshipIdSwapPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SwapApiV2GraphRelationshipIdSwapPost`: Relationship
fmt.Fprintf(os.Stdout, "Response from `GraphAPI.SwapApiV2GraphRelationshipIdSwapPost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
relationshipId | string |
Other parameters are passed through a pointer to a apiSwapApiV2GraphRelationshipIdSwapPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]