All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
IngestCloudResources | Post /toae/ingest/cloud-resources | Ingest Cloud resources |
IngestCloudResources(ctx).IngestersCloudResource(ingestersCloudResource).Execute()
Ingest Cloud resources
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Sam12121/golang_toae_sdk/client"
)
func main() {
ingestersCloudResource := []openapiclient.IngestersCloudResource{*openapiclient.NewIngestersCloudResource()} // []IngestersCloudResource | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.CloudResourcesAPI.IngestCloudResources(context.Background()).IngestersCloudResource(ingestersCloudResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CloudResourcesAPI.IngestCloudResources``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiIngestCloudResourcesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ingestersCloudResource | []IngestersCloudResource |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]