bunnyshell.com/sdk@v0.16.0/docs/KubernetesIntegrationAPI.md (about) 1 # \KubernetesIntegrationAPI 2 3 All URIs are relative to *https://api.environments.bunnyshell.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**KubernetesIntegrationList**](KubernetesIntegrationAPI.md#KubernetesIntegrationList) | **Get** /v1/kubernetes_integrations | List Kubernetes integrations matching any selected filters. 8 [**KubernetesIntegrationView**](KubernetesIntegrationAPI.md#KubernetesIntegrationView) | **Get** /v1/kubernetes_integrations/{id} | View a specific Kubernetes integration. 9 10 11 12 ## KubernetesIntegrationList 13 14 > PaginatedKubernetesIntegrationCollection KubernetesIntegrationList(ctx).Page(page).Organization(organization).Environment(environment).Status(status).CloudProvider(cloudProvider).Execute() 15 16 List Kubernetes integrations matching any selected filters. 17 18 19 20 ### Example 21 22 ```go 23 package main 24 25 import ( 26 "context" 27 "fmt" 28 "os" 29 openapiclient "bunnyshell.com/sdk" 30 ) 31 32 func main() { 33 page := int32(56) // int32 | The collection page number (optional) (default to 1) 34 organization := "organization_example" // string | Filter by organization (optional) 35 environment := "environment_example" // string | Filter by environment (optional) 36 status := "new" // string | Filter by status (optional) 37 cloudProvider := "cloudProvider_example" // string | Filter by cloudProvider (optional) 38 39 configuration := openapiclient.NewConfiguration() 40 apiClient := openapiclient.NewAPIClient(configuration) 41 resp, r, err := apiClient.KubernetesIntegrationAPI.KubernetesIntegrationList(context.Background()).Page(page).Organization(organization).Environment(environment).Status(status).CloudProvider(cloudProvider).Execute() 42 if err != nil { 43 fmt.Fprintf(os.Stderr, "Error when calling `KubernetesIntegrationAPI.KubernetesIntegrationList``: %v\n", err) 44 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) 45 } 46 // response from `KubernetesIntegrationList`: PaginatedKubernetesIntegrationCollection 47 fmt.Fprintf(os.Stdout, "Response from `KubernetesIntegrationAPI.KubernetesIntegrationList`: %v\n", resp) 48 } 49 ``` 50 51 ### Path Parameters 52 53 54 55 ### Other Parameters 56 57 Other parameters are passed through a pointer to a apiKubernetesIntegrationListRequest struct via the builder pattern 58 59 60 Name | Type | Description | Notes 61 ------------- | ------------- | ------------- | ------------- 62 **page** | **int32** | The collection page number | [default to 1] 63 **organization** | **string** | Filter by organization | 64 **environment** | **string** | Filter by environment | 65 **status** | **string** | Filter by status | 66 **cloudProvider** | **string** | Filter by cloudProvider | 67 68 ### Return type 69 70 [**PaginatedKubernetesIntegrationCollection**](PaginatedKubernetesIntegrationCollection.md) 71 72 ### Authorization 73 74 [JWT](../README.md#JWT), [ApiKeyAuth](../README.md#ApiKeyAuth) 75 76 ### HTTP request headers 77 78 - **Content-Type**: Not defined 79 - **Accept**: application/hal+json, application/problem+json 80 81 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 82 [[Back to Model list]](../README.md#documentation-for-models) 83 [[Back to README]](../README.md) 84 85 86 ## KubernetesIntegrationView 87 88 > KubernetesIntegrationItem KubernetesIntegrationView(ctx, id).Execute() 89 90 View a specific Kubernetes integration. 91 92 93 94 ### Example 95 96 ```go 97 package main 98 99 import ( 100 "context" 101 "fmt" 102 "os" 103 openapiclient "bunnyshell.com/sdk" 104 ) 105 106 func main() { 107 id := "id_example" // string | Resource identifier 108 109 configuration := openapiclient.NewConfiguration() 110 apiClient := openapiclient.NewAPIClient(configuration) 111 resp, r, err := apiClient.KubernetesIntegrationAPI.KubernetesIntegrationView(context.Background(), id).Execute() 112 if err != nil { 113 fmt.Fprintf(os.Stderr, "Error when calling `KubernetesIntegrationAPI.KubernetesIntegrationView``: %v\n", err) 114 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) 115 } 116 // response from `KubernetesIntegrationView`: KubernetesIntegrationItem 117 fmt.Fprintf(os.Stdout, "Response from `KubernetesIntegrationAPI.KubernetesIntegrationView`: %v\n", resp) 118 } 119 ``` 120 121 ### Path Parameters 122 123 124 Name | Type | Description | Notes 125 ------------- | ------------- | ------------- | ------------- 126 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 127 **id** | **string** | Resource identifier | 128 129 ### Other Parameters 130 131 Other parameters are passed through a pointer to a apiKubernetesIntegrationViewRequest struct via the builder pattern 132 133 134 Name | Type | Description | Notes 135 ------------- | ------------- | ------------- | ------------- 136 137 138 ### Return type 139 140 [**KubernetesIntegrationItem**](KubernetesIntegrationItem.md) 141 142 ### Authorization 143 144 [JWT](../README.md#JWT), [ApiKeyAuth](../README.md#ApiKeyAuth) 145 146 ### HTTP request headers 147 148 - **Content-Type**: Not defined 149 - **Accept**: application/hal+json, application/problem+json 150 151 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 152 [[Back to Model list]](../README.md#documentation-for-models) 153 [[Back to README]](../README.md) 154