Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gbeaumont93 opened this issue Aug 21, 2024 · 0 comments

Comments

@gbeaumont93
Copy link

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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant