Deleting Identity Source #3129
-
Hi there! I'm not able to call it though, as I'm getting
What am I doing wrong and how to implement removing identity sources? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @grzegorzgoldapl , The ssoadmin endpoint is tricky since there's no generated docs as there are for other API endpoints. I'm not sure if ssoadmin.wsdl is even included within vCenter anymore. There are several related service IDs: govmomi/ssoadmin/types/types.go Lines 381 to 399 in 88aa85c Looks like modified ssoadmin/client.go
@@ -571,3 +571,13 @@ func (c *Client) UpdateLdapAuthnType(ctx context.Context, name string, auth type
_, err := methods.UpdateLdapAuthnType(ctx, c, &req)
return err
}
+
+func (c *Client) DeleteDomain(ctx context.Context, name string) error {
+ req := types.DeleteDomain{
+ This: c.ServiceContent.DomainManagementService,
+ Name: name,
+ }
+
+ _, err := methods.DeleteDomain(ctx, c, &req)
+ return err
+} |
Beta Was this translation helpful? Give feedback.
Hi @grzegorzgoldapl ,
The ssoadmin endpoint is tricky since there's no generated docs as there are for other API endpoints. I'm not sure if ssoadmin.wsdl is even included within vCenter anymore. There are several related service IDs:
govmomi/ssoadmin/types/types.go
Lines 381 to 399 in 88aa85c