bluemix-go icon indicating copy to clipboard operation
bluemix-go copied to clipboard

Client update required

Open surajsub opened this issue 4 years ago • 4 comments

When a resource instance for hpvs is required to be created via terraform it need a sshkey to be passed in . The current client structure does not permit that CreateServiceInstanceRequest struct { Name string json:"name" ServicePlanID string json:"resource_plan_id" ResourceGroupID string json:"resource_group_id" Crn string json:"crn,omitempty" Tags []string json:"tags,omitempty" Parameters map[string]interface{} json:"parameters,omitempty" TargetCrn string json:"target_crn" } If we are to create the hpvs via terraform this structure needs to be update to add the SSHKey as well.

surajsub avatar May 30 '20 15:05 surajsub

Can you let me know how you provision the same service using the ibmcloud resource cli command..I think the ssh key needs to be passed as parameter

hkantare avatar Jun 04 '20 04:06 hkantare

The API is designed as per API doc https://cloud.ibm.com/apidocs/resource-controller/resource-controller#create-provision-a-new-resource-instance

hkantare avatar Jun 04 '20 04:06 hkantare

Yes - that API specification is incomplete. If you need to provision a HPVS then you need to pass in the key.. We can make it an optional parameter.

surajsub avatar Jun 09 '20 20:06 surajsub

We need to pass the key as a value in parameter....Add the key(name and value ) in Parameters

hkantare avatar Jun 10 '20 07:06 hkantare