NetApp / netappdvp

A Docker volume plugin for NetApp storage
96 stars 33 forks source link

Using netappdvp as an API client #107

Closed cdhunt closed 7 years ago

cdhunt commented 7 years ago

I'm trying to use netappdvp/api/ontap as a client to potentially back a Terraform provider. Using curl against https://user@pass:filer/servlets/netapp.servlets.admin.XMLrequest_filer works fine, but the below always returns a 401 Unauthorized. Do you have any usage or debugging suggestions?

c := ontap.DriverConfig{
    Username: "user",
    Password: "pass",
    ManagementLIF: "filer",
}

d := ontap.NewDriver(c)

response, err := d.VolumeList("")
adkerr commented 7 years ago

@cdhunt please note that ndvp is not intended to be used as a general purpose ONTAP api client and is not supported in such a capacity.

That said, you may try setting the “api” DebugTraceFlags setting to true when you initialize the driver and see if the extra debug info provides any insight.

cdhunt commented 7 years ago

Thanks, @adkerr. I saw you mention that in another issue. I'm testing out go-netapp. as a general purpose ontapi client.