All URIs are relative to /service/rest
| Method | HTTP request | Description |
|---|---|---|
| ListDataStore | Get /beta/data-store | Get the data store |
| UpdateDataStore | Put /beta/data-store | Update the data store |
DataStoreApiXO ListDataStore(ctx).Execute()
Get the data store
package main
import (
"context"
"fmt"
"os"
sonatyperepo "github.com/sonatype-nexus-community/nexus-repo-api-client-go/v395"
)
func main() {
configuration := sonatyperepo.NewConfiguration()
apiClient := sonatyperepo.NewAPIClient(configuration)
resp, r, err := apiClient.DataStoreAPI.ListDataStore(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataStoreAPI.ListDataStore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDataStore`: DataStoreApiXO
fmt.Fprintf(os.Stdout, "Response from `DataStoreAPI.ListDataStore`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListDataStoreRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateDataStore(ctx).DataStoreApiUpdateXO(dataStoreApiUpdateXO).Execute()
Update the data store
package main
import (
"context"
"fmt"
"os"
sonatyperepo "github.com/sonatype-nexus-community/nexus-repo-api-client-go/v395"
)
func main() {
dataStoreApiUpdateXO := *sonatyperepo.NewDataStoreApiUpdateXO("JdbcUrl_example", "Name_example", "Source_example", "Type_example") // DataStoreApiUpdateXO | (optional)
configuration := sonatyperepo.NewConfiguration()
apiClient := sonatyperepo.NewAPIClient(configuration)
r, err := apiClient.DataStoreAPI.UpdateDataStore(context.Background()).DataStoreApiUpdateXO(dataStoreApiUpdateXO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataStoreAPI.UpdateDataStore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiUpdateDataStoreRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| dataStoreApiUpdateXO | DataStoreApiUpdateXO |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]