Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 1.75 KB

PricesApi.md

File metadata and controls

75 lines (46 loc) · 1.75 KB

\PricesApi

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

Method HTTP request Description
SearchPrices Post /fabric/v4/prices/search Get Prices

SearchPrices

PriceSearchResponse SearchPrices(ctx).FilterBody(filterBody).Execute()

Get Prices

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4"
)

func main() {
	filterBody := *openapiclient.NewFilterBody() // FilterBody | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
filterBody FilterBody

Return type

PriceSearchResponse

Authorization

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]