All URIs are relative to https://localhost/PasswordVault
Method | HTTP request | Description |
---|---|---|
LDAPDirectoriesAddDirectory | Post /api/Configuration/LDAP/Directories | |
LDAPDirectoriesAddDirectoryMapping | Post /api/Configuration/LDAP/Directories/{directoryName}/Mappings | |
LDAPDirectoriesDeleteDirectory | Delete /api/Configuration/LDAP/Directories/{directoryName} | |
LDAPDirectoriesDeleteDirectoryMapping | Delete /api/Configuration/LDAP/Directories/{directoryName}/Mappings/{mappingID} | |
LDAPDirectoriesGetDirectories | Get /api/Configuration/LDAP/Directories | |
LDAPDirectoriesGetDirectory | Get /api/Configuration/LDAP/Directories/{directoryName} | |
LDAPDirectoriesGetDirectoryMapping | Get /api/Configuration/LDAP/Directories/{directoryName}/Mappings/{mappingID} | |
LDAPDirectoriesGetDirectoryMappings | Get /api/Configuration/LDAP/Directories/{directoryName}/Mappings | |
LDAPDirectoriesSetDirectoryMappingsOrder | Post /api/Configuration/LDAP/Directories/{directoryName}/Mappings/Reorder | |
LDAPDirectoriesUpdateDirectoryMapping | Put /api/Configuration/LDAP/Directories/{directoryName}/Mappings/{mappingID} |
LDAPDirectory LDAPDirectoriesAddDirectory(ctx).Directory(directory).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directory := *openapiclient.NewLDAPDirectory("DirectoryType_example", []openapiclient.LDAPDomainController{*openapiclient.NewLDAPDomainController("Name_example")}, "DomainName_example", "DomainBaseContext_example") // LDAPDirectory |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesAddDirectory(context.Background()).Directory(directory).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesAddDirectory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesAddDirectory`: LDAPDirectory
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesAddDirectory`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiLDAPDirectoriesAddDirectoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
directory | LDAPDirectory |
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]
LDAPMappingData LDAPDirectoriesAddDirectoryMapping(ctx, directoryName).MappingData(mappingData).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string |
mappingData := *openapiclient.NewLDAPMappingData("LDAPBranch_example", "MappingName_example") // LDAPMappingData |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesAddDirectoryMapping(context.Background(), directoryName).MappingData(mappingData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesAddDirectoryMapping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesAddDirectoryMapping`: LDAPMappingData
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesAddDirectoryMapping`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string |
Other parameters are passed through a pointer to a apiLDAPDirectoriesAddDirectoryMappingRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mappingData | LDAPMappingData | |
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]
LDAPDirectoriesDeleteDirectory(ctx, directoryName).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesDeleteDirectory(context.Background(), directoryName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesDeleteDirectory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string |
Other parameters are passed through a pointer to a apiLDAPDirectoriesDeleteDirectoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LDAPDirectoriesDeleteDirectoryMapping(ctx, directoryName, mappingID).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | The Directory name
mappingID := int64(789) // int64 | The Mapping id to delete
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesDeleteDirectoryMapping(context.Background(), directoryName, mappingID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesDeleteDirectoryMapping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | The Directory name | |
mappingID | int64 | The Mapping id to delete |
Other parameters are passed through a pointer to a apiLDAPDirectoriesDeleteDirectoryMappingRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LDAPDirectoryBase LDAPDirectoriesGetDirectories(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesGetDirectories(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesGetDirectories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesGetDirectories`: []LDAPDirectoryBase
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesGetDirectories`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiLDAPDirectoriesGetDirectoriesRequest struct via the builder pattern
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]
LDAPDirectory LDAPDirectoriesGetDirectory(ctx, directoryName).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | The address/DNS name of the domain.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesGetDirectory(context.Background(), directoryName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesGetDirectory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesGetDirectory`: LDAPDirectory
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesGetDirectory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | The address/DNS name of the domain. |
Other parameters are passed through a pointer to a apiLDAPDirectoriesGetDirectoryRequest 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]
LDAPMappingData LDAPDirectoriesGetDirectoryMapping(ctx, directoryName, mappingID).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | The address/DNS name of the domain.
mappingID := int64(789) // int64 | Unique ID of the directory mapping.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMapping(context.Background(), directoryName, mappingID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMapping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesGetDirectoryMapping`: LDAPMappingData
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMapping`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | The address/DNS name of the domain. | |
mappingID | int64 | Unique ID of the directory mapping. |
Other parameters are passed through a pointer to a apiLDAPDirectoriesGetDirectoryMappingRequest 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]
[]LDAPMappingData LDAPDirectoriesGetDirectoryMappings(ctx, directoryName).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | Directory name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMappings(context.Background(), directoryName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMappings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesGetDirectoryMappings`: []LDAPMappingData
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesGetDirectoryMappings`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | Directory name |
Other parameters are passed through a pointer to a apiLDAPDirectoriesGetDirectoryMappingsRequest 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]
LDAPDirectoriesSetDirectoryMappingsOrder(ctx, directoryName).MappingsOrder(mappingsOrder).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | Directory name
mappingsOrder := *openapiclient.NewLDAPMappingsOrder([]int64{int64(123)}) // LDAPMappingsOrder |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesSetDirectoryMappingsOrder(context.Background(), directoryName).MappingsOrder(mappingsOrder).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesSetDirectoryMappingsOrder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | Directory name |
Other parameters are passed through a pointer to a apiLDAPDirectoriesSetDirectoryMappingsOrderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mappingsOrder | LDAPMappingsOrder | |
(empty response body)
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, multipart/form-data, application/x-www-form-urlencoded
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LDAPMappingData LDAPDirectoriesUpdateDirectoryMapping(ctx, directoryName, mappingID).MappingToEdit(mappingToEdit).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
directoryName := "directoryName_example" // string | Directory name
mappingID := int64(789) // int64 | Mapping ID
mappingToEdit := *openapiclient.NewLDAPMappingData("LDAPBranch_example", "MappingName_example") // LDAPMappingData | Updated Mapping data
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LDAPDirectoriesApi.LDAPDirectoriesUpdateDirectoryMapping(context.Background(), directoryName, mappingID).MappingToEdit(mappingToEdit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LDAPDirectoriesApi.LDAPDirectoriesUpdateDirectoryMapping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LDAPDirectoriesUpdateDirectoryMapping`: LDAPMappingData
fmt.Fprintf(os.Stdout, "Response from `LDAPDirectoriesApi.LDAPDirectoriesUpdateDirectoryMapping`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
directoryName | string | Directory name | |
mappingID | int64 | Mapping ID |
Other parameters are passed through a pointer to a apiLDAPDirectoriesUpdateDirectoryMappingRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mappingToEdit | LDAPMappingData | Updated Mapping 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]