Skip to content

Latest commit

 

History

History
1432 lines (936 loc) · 45.2 KB

CloudProviderCredentialsAPI.md

File metadata and controls

1432 lines (936 loc) · 45.2 KB

\CloudProviderCredentialsAPI

All URIs are relative to https://api.qovery.com

Method HTTP request Description
CreateAWSCredentials Post /organization/{organizationId}/aws/credentials Create AWS credentials set
CreateGcpCredentials Post /organization/{organizationId}/gcp/credentials Create GCP credentials set
CreateOnPremiseCredentials Post /organization/{organizationId}/onPremise/credentials Create OnPremise credentials set
CreateScalewayCredentials Post /organization/{organizationId}/scaleway/credentials Create Scaleway credentials set
DeleteAWSCredentials Delete /organization/{organizationId}/aws/credentials/{credentialsId} Delete a set of AWS credentials
DeleteGcpCredentials Delete /organization/{organizationId}/gcp/credentials/{credentialsId} Delete a set of GCP credentials
DeleteOnPremiseCredentials Delete /organization/{organizationId}/onPremise/credentials/{credentialsId} Delete a set of OnPremise credentials
DeleteScalewayCredentials Delete /organization/{organizationId}/scaleway/credentials/{credentialsId} Delete a set of Scaleway credentials
EditAWSCredentials Put /organization/{organizationId}/aws/credentials/{credentialsId} Edit a set of AWS credentials
EditGcpCredentials Put /organization/{organizationId}/gcp/credentials/{credentialsId} Edit a set of GCP credentials
EditOnPremiseCredentials Put /organization/{organizationId}/onPremise/credentials/{credentialsId} Edit a set of OnPremise credentials
EditScalewayCredentials Put /organization/{organizationId}/scaleway/credentials/{credentialsId} Edit a set of Scaleway credentials
GetAWSCredentials Get /organization/{organizationId}/aws/credentials/{credentialsId} Get a set of AWS credentials
GetGcpCredentials Get /organization/{organizationId}/gcp/credentials/{credentialsId} Get a set of GCP credentials
GetOnPremiseCredentials Get /organization/{organizationId}/onPremise/credentials/{credentialsId} Get a set of OnPremise credentials
GetScalewayCredentials Get /organization/{organizationId}/scaleway/credentials/{credentialsId} Get a set of Scaleway credentials
ListAWSCredentials Get /organization/{organizationId}/aws/credentials List AWS credentials
ListGcpCredentials Get /organization/{organizationId}/gcp/credentials List GCP credentials
ListOnPremiseCredentials Get /organization/{organizationId}/onPremise/credentials List OnPremise credentials
ListScalewayCredentials Get /organization/{organizationId}/scaleway/credentials List Scaleway credentials

CreateAWSCredentials

ClusterCredentials CreateAWSCredentials(ctx, organizationId).AwsCredentialsRequest(awsCredentialsRequest).Execute()

Create AWS credentials set

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	awsCredentialsRequest := *openapiclient.NewAwsCredentialsRequest("Name_example", "AccessKeyId_example", "SecretAccessKey_example") // AwsCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.CreateAWSCredentials(context.Background(), organizationId).AwsCredentialsRequest(awsCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.CreateAWSCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateAWSCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.CreateAWSCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiCreateAWSCredentialsRequest struct via the builder pattern

Name Type Description Notes

awsCredentialsRequest | AwsCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateGcpCredentials

ClusterCredentials CreateGcpCredentials(ctx, organizationId).GcpCredentialsRequest(gcpCredentialsRequest).Execute()

Create GCP credentials set

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	gcpCredentialsRequest := *openapiclient.NewGcpCredentialsRequest("Name_example", "GcpCredentials_example") // GcpCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.CreateGcpCredentials(context.Background(), organizationId).GcpCredentialsRequest(gcpCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.CreateGcpCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateGcpCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.CreateGcpCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiCreateGcpCredentialsRequest struct via the builder pattern

Name Type Description Notes

gcpCredentialsRequest | GcpCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateOnPremiseCredentials

ClusterCredentials CreateOnPremiseCredentials(ctx, organizationId).OnPremiseCredentialsRequest(onPremiseCredentialsRequest).Execute()

Create OnPremise credentials set

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	onPremiseCredentialsRequest := *openapiclient.NewOnPremiseCredentialsRequest("Name_example") // OnPremiseCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.CreateOnPremiseCredentials(context.Background(), organizationId).OnPremiseCredentialsRequest(onPremiseCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.CreateOnPremiseCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateOnPremiseCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.CreateOnPremiseCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiCreateOnPremiseCredentialsRequest struct via the builder pattern

Name Type Description Notes

onPremiseCredentialsRequest | OnPremiseCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateScalewayCredentials

ClusterCredentials CreateScalewayCredentials(ctx, organizationId).ScalewayCredentialsRequest(scalewayCredentialsRequest).Execute()

Create Scaleway credentials set

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	scalewayCredentialsRequest := *openapiclient.NewScalewayCredentialsRequest("Name_example", "ScalewayAccessKey_example", "ScalewaySecretKey_example", "ScalewayProjectId_example", "ScalewayOrganizationId_example") // ScalewayCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.CreateScalewayCredentials(context.Background(), organizationId).ScalewayCredentialsRequest(scalewayCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.CreateScalewayCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateScalewayCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.CreateScalewayCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiCreateScalewayCredentialsRequest struct via the builder pattern

Name Type Description Notes

scalewayCredentialsRequest | ScalewayCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAWSCredentials

DeleteAWSCredentials(ctx, credentialsId, organizationId).Execute()

Delete a set of AWS credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.CloudProviderCredentialsAPI.DeleteAWSCredentials(context.Background(), credentialsId, organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.DeleteAWSCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
credentialsId string Credentials ID
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAWSCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteGcpCredentials

DeleteGcpCredentials(ctx, credentialsId, organizationId).Execute()

Delete a set of GCP credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.CloudProviderCredentialsAPI.DeleteGcpCredentials(context.Background(), credentialsId, organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.DeleteGcpCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
credentialsId string Credentials ID
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiDeleteGcpCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteOnPremiseCredentials

DeleteOnPremiseCredentials(ctx, credentialsId, organizationId).Execute()

Delete a set of OnPremise credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.CloudProviderCredentialsAPI.DeleteOnPremiseCredentials(context.Background(), credentialsId, organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.DeleteOnPremiseCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
credentialsId string Credentials ID
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiDeleteOnPremiseCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteScalewayCredentials

DeleteScalewayCredentials(ctx, credentialsId, organizationId).Execute()

Delete a set of Scaleway credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.CloudProviderCredentialsAPI.DeleteScalewayCredentials(context.Background(), credentialsId, organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.DeleteScalewayCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
credentialsId string Credentials ID
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiDeleteScalewayCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditAWSCredentials

ClusterCredentials EditAWSCredentials(ctx, organizationId, credentialsId).AwsCredentialsRequest(awsCredentialsRequest).Execute()

Edit a set of AWS credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	awsCredentialsRequest := *openapiclient.NewAwsCredentialsRequest("Name_example", "AccessKeyId_example", "SecretAccessKey_example") // AwsCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.EditAWSCredentials(context.Background(), organizationId, credentialsId).AwsCredentialsRequest(awsCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.EditAWSCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditAWSCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.EditAWSCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiEditAWSCredentialsRequest struct via the builder pattern

Name Type Description Notes

awsCredentialsRequest | AwsCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditGcpCredentials

ClusterCredentials EditGcpCredentials(ctx, organizationId, credentialsId).GcpCredentialsRequest(gcpCredentialsRequest).Execute()

Edit a set of GCP credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	gcpCredentialsRequest := *openapiclient.NewGcpCredentialsRequest("Name_example", "GcpCredentials_example") // GcpCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.EditGcpCredentials(context.Background(), organizationId, credentialsId).GcpCredentialsRequest(gcpCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.EditGcpCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditGcpCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.EditGcpCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiEditGcpCredentialsRequest struct via the builder pattern

Name Type Description Notes

gcpCredentialsRequest | GcpCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditOnPremiseCredentials

ClusterCredentials EditOnPremiseCredentials(ctx, organizationId, credentialsId).OnPremiseCredentialsRequest(onPremiseCredentialsRequest).Execute()

Edit a set of OnPremise credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	onPremiseCredentialsRequest := *openapiclient.NewOnPremiseCredentialsRequest("Name_example") // OnPremiseCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.EditOnPremiseCredentials(context.Background(), organizationId, credentialsId).OnPremiseCredentialsRequest(onPremiseCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.EditOnPremiseCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditOnPremiseCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.EditOnPremiseCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiEditOnPremiseCredentialsRequest struct via the builder pattern

Name Type Description Notes

onPremiseCredentialsRequest | OnPremiseCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditScalewayCredentials

ClusterCredentials EditScalewayCredentials(ctx, organizationId, credentialsId).ScalewayCredentialsRequest(scalewayCredentialsRequest).Execute()

Edit a set of Scaleway credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID
	scalewayCredentialsRequest := *openapiclient.NewScalewayCredentialsRequest("Name_example", "ScalewayAccessKey_example", "ScalewaySecretKey_example", "ScalewayProjectId_example", "ScalewayOrganizationId_example") // ScalewayCredentialsRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.EditScalewayCredentials(context.Background(), organizationId, credentialsId).ScalewayCredentialsRequest(scalewayCredentialsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.EditScalewayCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditScalewayCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.EditScalewayCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiEditScalewayCredentialsRequest struct via the builder pattern

Name Type Description Notes

scalewayCredentialsRequest | ScalewayCredentialsRequest | |

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAWSCredentials

ClusterCredentials GetAWSCredentials(ctx, organizationId, credentialsId).Execute()

Get a set of AWS credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.GetAWSCredentials(context.Background(), organizationId, credentialsId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.GetAWSCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAWSCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.GetAWSCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiGetAWSCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetGcpCredentials

ClusterCredentials GetGcpCredentials(ctx, organizationId, credentialsId).Execute()

Get a set of GCP credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.GetGcpCredentials(context.Background(), organizationId, credentialsId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.GetGcpCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGcpCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.GetGcpCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiGetGcpCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOnPremiseCredentials

ClusterCredentials GetOnPremiseCredentials(ctx, organizationId, credentialsId).Execute()

Get a set of OnPremise credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.GetOnPremiseCredentials(context.Background(), organizationId, credentialsId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.GetOnPremiseCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetOnPremiseCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.GetOnPremiseCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiGetOnPremiseCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetScalewayCredentials

ClusterCredentials GetScalewayCredentials(ctx, organizationId, credentialsId).Execute()

Get a set of Scaleway credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
	credentialsId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credentials ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.GetScalewayCredentials(context.Background(), organizationId, credentialsId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.GetScalewayCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetScalewayCredentials`: ClusterCredentials
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.GetScalewayCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID
credentialsId string Credentials ID

Other Parameters

Other parameters are passed through a pointer to a apiGetScalewayCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentials

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListAWSCredentials

ClusterCredentialsResponseList ListAWSCredentials(ctx, organizationId).Execute()

List AWS credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.ListAWSCredentials(context.Background(), organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.ListAWSCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListAWSCredentials`: ClusterCredentialsResponseList
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.ListAWSCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListAWSCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentialsResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListGcpCredentials

ClusterCredentialsResponseList ListGcpCredentials(ctx, organizationId).Execute()

List GCP credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.ListGcpCredentials(context.Background(), organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.ListGcpCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListGcpCredentials`: ClusterCredentialsResponseList
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.ListGcpCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListGcpCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentialsResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListOnPremiseCredentials

ClusterCredentialsResponseList ListOnPremiseCredentials(ctx, organizationId).Execute()

List OnPremise credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.ListOnPremiseCredentials(context.Background(), organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.ListOnPremiseCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListOnPremiseCredentials`: ClusterCredentialsResponseList
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.ListOnPremiseCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListOnPremiseCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentialsResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListScalewayCredentials

ClusterCredentialsResponseList ListScalewayCredentials(ctx, organizationId).Execute()

List Scaleway credentials

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CloudProviderCredentialsAPI.ListScalewayCredentials(context.Background(), organizationId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CloudProviderCredentialsAPI.ListScalewayCredentials``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListScalewayCredentials`: ClusterCredentialsResponseList
	fmt.Fprintf(os.Stdout, "Response from `CloudProviderCredentialsAPI.ListScalewayCredentials`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListScalewayCredentialsRequest struct via the builder pattern

Name Type Description Notes

Return type

ClusterCredentialsResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]