Skip to content

[Fabric] GetServiceProfileByUuid and GetServiceProfiles Methods Return nil for Certain Elements #75

@gbeaumont93

Description

@gbeaumont93

When calling the GetServiceProfileByUuid method for a specific service profile UUID (e.g., "59732d52-32d4-421e-9b86-6b5219720d2d"), the response is nil, and the following error message is returned: no value given for required property description.

FYI the serviceProfile have a description :
"description": "<p>This profile is used to connect to the Equinix Solution Validation Center in CH. Please contact the Solution Validation Center team with any questions (gsa-svc&#64;equinix.com).</p>"

This issue also affects the GetServiceProfiles method. When one of the service profiles in the list is affected by this, the entire list is returned as nil.

Here’s a code snippet that reproduces the issue:

import (
	"context"
	"fmt"
	"os"

	openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4"
)

func main() {
	serviceProfileId := "59732d52-32d4-421e-9b86-6b5219720d2d" // Service Profile UUID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	auth := context.WithValue(context.Background(), openapiclient.ContextAccessToken, "token")

	resp, r, err := apiClient.ServiceProfilesApi.GetServiceProfileByUuid(auth, serviceProfileId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ServiceProfilesApi.GetServiceProfileByUuid``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	fmt.Fprintf(os.Stdout, "Response from `ServiceProfilesApi.GetServiceProfileByUuid`: %v\n", resp)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions