All URIs are relative to https://localhost/PasswordVault
Method | HTTP request | Description |
---|---|---|
AccountGroupsAddAccountGroup | Post /api/AccountGroups | |
AccountGroupsAddAccountToGroup | Post /api/AccountGroups/{groupId}/members | |
AccountGroupsDeleteAccountFromGroup | Delete /api/AccountGroups/{groupId}/members/{accountId} | |
AccountGroupsGetGroupAccounts | Get /api/AccountGroups/{groupId}/members | |
AccountGroupsGetGroups | Get /api/AccountGroups |
AccountGroup AccountGroupsAddAccountGroup(ctx).AddAccountGroupData(addAccountGroupData).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
addAccountGroupData := *openapiclient.NewAddAccountGroupData("GroupName_example", "GroupPlatformId_example", "Safe_example") // AddAccountGroupData | The account group data
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountGroupsApi.AccountGroupsAddAccountGroup(context.Background()).AddAccountGroupData(addAccountGroupData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountGroupsApi.AccountGroupsAddAccountGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AccountGroupsAddAccountGroup`: AccountGroup
fmt.Fprintf(os.Stdout, "Response from `AccountGroupsApi.AccountGroupsAddAccountGroup`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAccountGroupsAddAccountGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
addAccountGroupData | AddAccountGroupData | The account group data |
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddMemberToAccountGroup AccountGroupsAddAccountToGroup(ctx, groupId).AddMemberData(addMemberData).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
groupId := "groupId_example" // string | The unique ID of account group.
addMemberData := *openapiclient.NewAddMemberToAccountGroup("AccountId_example") // AddMemberToAccountGroup | The member to add
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountGroupsApi.AccountGroupsAddAccountToGroup(context.Background(), groupId).AddMemberData(addMemberData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountGroupsApi.AccountGroupsAddAccountToGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AccountGroupsAddAccountToGroup`: AddMemberToAccountGroup
fmt.Fprintf(os.Stdout, "Response from `AccountGroupsApi.AccountGroupsAddAccountToGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
groupId | string | The unique ID of account group. |
Other parameters are passed through a pointer to a apiAccountGroupsAddAccountToGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
addMemberData | AddMemberToAccountGroup | The member to add |
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} AccountGroupsDeleteAccountFromGroup(ctx, groupId, accountId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
accountId := "accountId_example" // string | The unique ID of the account.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountGroupsApi.AccountGroupsDeleteAccountFromGroup(context.Background(), groupId, accountId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountGroupsApi.AccountGroupsDeleteAccountFromGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AccountGroupsDeleteAccountFromGroup`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `AccountGroupsApi.AccountGroupsDeleteAccountFromGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
groupId | string | The unique ID of the group. | |
accountId | string | The unique ID of the account. |
Other parameters are passed through a pointer to a apiAccountGroupsDeleteAccountFromGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountGroupMember AccountGroupsGetGroupAccounts(ctx, groupId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountGroupsApi.AccountGroupsGetGroupAccounts(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountGroupsApi.AccountGroupsGetGroupAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AccountGroupsGetGroupAccounts`: AccountGroupMember
fmt.Fprintf(os.Stdout, "Response from `AccountGroupsApi.AccountGroupsGetGroupAccounts`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
groupId | string | The unique ID of the group. |
Other parameters are passed through a pointer to a apiAccountGroupsGetGroupAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountGroup AccountGroupsGetGroups(ctx).Safe(safe).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
safe := "safe_example" // string | The name of the Safe where the account groups are. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountGroupsApi.AccountGroupsGetGroups(context.Background()).Safe(safe).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountGroupsApi.AccountGroupsGetGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AccountGroupsGetGroups`: AccountGroup
fmt.Fprintf(os.Stdout, "Response from `AccountGroupsApi.AccountGroupsGetGroups`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAccountGroupsGetGroupsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
safe | string | The name of the Safe where the account groups are. |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]