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"

    cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn"
    "github.com/ionos-cloud/sdk-go-bundle/shared"
)

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

    configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
    apiClient := cdn.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

Name

Type

Description

Notes

Return type

(empty response body)

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

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

Name

Type

Description

Notes

Return type

Distribution

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

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

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

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

Last updated