DistributionsApi

All URIs are relative to https://cdn.de-fra.ionos.com

Method
HTTP request
Description

Delete /distributions/{distributionId}

Delete Distribution

Get /distributions/{distributionId}

Retrieve Distribution

Get /distributions

Retrieve all Distributions

Post /distributions

Create Distribution

Put /distributions/{distributionId}

Ensure Distribution

DistributionsDelete

var result  = DistributionsDelete(ctx, distributionId)
                      .Execute()

Delete Distribution

Example

package main

import (
    "context"
    "fmt"
    "os"

    ionoscloud "github.com/ionos-cloud/sdk-go-cdn"
)

func main() {
    distributionId := "9ba15778-16c4-543c-8775-e52acf4853f5" // string | The ID (UUID) of the Distribution.

    configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
    apiClient := ionoscloud.NewAPIClient(configuration)
    resp, err := apiClient.DistributionsApi.DistributionsDelete(context.Background(), distributionId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DistributionsApi.DistributionsDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
    }
}

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

distributionId

string

The ID (UUID) of the Distribution.

Other Parameters

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

Return type

(empty response body)

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DistributionsApiService.DistributionsDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

DistributionsFindById

Retrieve Distribution

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

distributionId

string

The ID (UUID) of the Distribution.

Other Parameters

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

Return type

Distribution

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DistributionsApiService.DistributionsFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

DistributionsGet

Retrieve all Distributions

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

offset

int32

The first element (of the total list of elements) to include in the response. Use together with limit for pagination.

[default to 0]

limit

int32

The maximum number of elements to return. Use together with offset for pagination.

[default to 100]

filterDomain

string

filters resources by domain.

filterState

string

filters resources by state.

Return type

Distributions

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DistributionsApiService.DistributionsGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

DistributionsPost

Create Distribution

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

distributionCreate

Distribution to create.

Return type

Distribution

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DistributionsApiService.DistributionsPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

DistributionsPut

Ensure Distribution

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

distributionId

string

The ID (UUID) of the Distribution.

Other Parameters

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

Name
Type
Description
Notes

distributionUpdate

update Distribution

Return type

Distribution

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DistributionsApiService.DistributionsPut" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

Last updated