All URIs are relative to /candlepin
Method | HTTP request | Description |
---|---|---|
CancelCloudAccountJobs | Delete /cloud/jobs/orgsetup/{cloud_account_id} | |
CloudAuthorize | Post /cloud/authorize | |
DeleteAnonymousConsumersByAccountId | Delete /cloud/consumers/anonymous |
[]string CancelCloudAccountJobs(ctx, cloudAccountId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/content-services/caliri/release/v4"
)
func main() {
cloudAccountId := "cloudAccountId_example" // string | The ID of the cloud account
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CloudRegistrationAPI.CancelCloudAccountJobs(context.Background(), cloudAccountId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CloudRegistrationAPI.CancelCloudAccountJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CancelCloudAccountJobs`: []string
fmt.Fprintf(os.Stdout, "Response from `CloudRegistrationAPI.CancelCloudAccountJobs`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cloudAccountId | string | The ID of the cloud account |
Other parameters are passed through a pointer to a apiCancelCloudAccountJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
[]string
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string CloudAuthorize(ctx).CloudRegistrationDTO(cloudRegistrationDTO).Version(version).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/content-services/caliri/release/v4"
)
func main() {
cloudRegistrationDTO := *openapiclient.NewCloudRegistrationDTO("Type_example", "Metadata_example", "Signature_example") // CloudRegistrationDTO | Cloud registration data
version := int32(56) // int32 | Version of cloud authentication (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CloudRegistrationAPI.CloudAuthorize(context.Background()).CloudRegistrationDTO(cloudRegistrationDTO).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CloudRegistrationAPI.CloudAuthorize``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CloudAuthorize`: string
fmt.Fprintf(os.Stdout, "Response from `CloudRegistrationAPI.CloudAuthorize`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCloudAuthorizeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cloudRegistrationDTO | CloudRegistrationDTO | Cloud registration data | |
version | int32 | Version of cloud authentication |
string
No authorization required
- Content-Type: application/json
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAnonymousConsumersByAccountId(ctx).CloudAccountId(cloudAccountId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/content-services/caliri/release/v4"
)
func main() {
cloudAccountId := "cloudAccountId_example" // string | The ID of the Cloud Account
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.CloudRegistrationAPI.DeleteAnonymousConsumersByAccountId(context.Background()).CloudAccountId(cloudAccountId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CloudRegistrationAPI.DeleteAnonymousConsumersByAccountId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDeleteAnonymousConsumersByAccountIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cloudAccountId | string | The ID of the Cloud Account |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]