All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| CreateAccesskey | Post /api/v1/customers/{cUUID}/providers/{pUUID}/access_keys | Create/Upload Access Key for onprem provider region - deprecated |
| DeleteAccesskey | Delete /api/v1/customers/{cUUID}/providers/{pUUID}/access_keys/{keyCode} | Delete an access key |
| EditAccesskey | Put /api/v1/customers/{cUUID}/providers/{pUUID}/access_keys/{keyCode} | Modify the existing access Key |
| Index | Get /api/v1/customers/{cUUID}/providers/{pUUID}/access_keys/{keyCode} | Get an access key |
| List | Get /api/v1/customers/{cUUID}/providers/{pUUID}/access_keys | List access keys for a specific provider |
| ListAllForCustomer | Get /api/v1/customers/{cUUID}/access_keys | List access keys for all providers of a customer |
AccessKey CreateAccesskey(ctx, cUUID, pUUID).AccessKeyFormData(accessKeyFormData).Request(request).Execute()
Create/Upload Access Key for onprem provider region - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
accessKeyFormData := *openapiclient.NewAccessKeyFormData("KeyCode_example", "KeyContent_example", "KeyType_example") // AccessKeyFormData |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.CreateAccesskey(context.Background(), cUUID, pUUID).AccessKeyFormData(accessKeyFormData).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.CreateAccesskey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAccesskey`: AccessKey
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.CreateAccesskey`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| pUUID | string |
Other parameters are passed through a pointer to a apiCreateAccesskeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
accessKeyFormData | AccessKeyFormData | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess DeleteAccesskey(ctx, cUUID, pUUID, keyCode).Request(request).Execute()
Delete an access key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
keyCode := "keyCode_example" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.DeleteAccesskey(context.Background(), cUUID, pUUID, keyCode).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.DeleteAccesskey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAccesskey`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.DeleteAccesskey`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| pUUID | string | ||
| keyCode | string |
Other parameters are passed through a pointer to a apiDeleteAccesskeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessKey EditAccesskey(ctx, cUUID, pUUID, keyCode).Accesskey(accesskey).Request(request).Execute()
Modify the existing access Key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
keyCode := "keyCode_example" // string |
accesskey := *openapiclient.NewAccessKey(*openapiclient.NewAccessKeyId(), *openapiclient.NewKeyInfo()) // AccessKey | access key edit form data
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.EditAccesskey(context.Background(), cUUID, pUUID, keyCode).Accesskey(accesskey).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.EditAccesskey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditAccesskey`: AccessKey
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.EditAccesskey`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| pUUID | string | ||
| keyCode | string |
Other parameters are passed through a pointer to a apiEditAccesskeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
accesskey | AccessKey | access key edit form data | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessKey Index(ctx, cUUID, pUUID, keyCode).Execute()
Get an access key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
keyCode := "keyCode_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.Index(context.Background(), cUUID, pUUID, keyCode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.Index``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Index`: AccessKey
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.Index`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| pUUID | string | ||
| keyCode | string |
Other parameters are passed through a pointer to a apiIndexRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AccessKey List(ctx, cUUID, pUUID).Execute()
List access keys for a specific provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.List(context.Background(), cUUID, pUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: []AccessKey
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.List`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| pUUID | string |
Other parameters are passed through a pointer to a apiListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AccessKey ListAllForCustomer(ctx, cUUID).Execute()
List access keys for all providers of a customer
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessKeysAPI.ListAllForCustomer(context.Background(), cUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessKeysAPI.ListAllForCustomer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAllForCustomer`: []AccessKey
fmt.Fprintf(os.Stdout, "Response from `AccessKeysAPI.ListAllForCustomer`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiListAllForCustomerRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]