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

CreateKey(CreateServiceKeyRequest) : Creates more than one service credential with the same name #189

Open
desourav opened this issue Feb 14, 2020 · 0 comments

Comments

@desourav
Copy link

The method CreateKey(CreateServiceKeyRequest) has the ability to create multiple service credential with the same name for a cloud instance.
This is not allowed in the IBM Cloud console UI as it gives a warning "Service Credential with the same name already exists".
Can we have the same functionality in the SDK as well?

serviceKey, err = resourceSession.CreateKey(controller.CreateServiceKeyRequest{
			Name:      "ift-cloud-object-202002121943",
			SourceCRN: parseInstanceCRN,
			Parameters: map[string]interface{}{
				"HMAC": true,
			},
		})

When executed n times, the cloud instance has n "ift-cloud-object-202002121943" service credential.

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