All URIs are relative to https://api.uptrends.com/v4
Method | HTTP request | Description |
---|---|---|
VaultCreateAuthorizationForVaultSection | Post /VaultSection/{vaultSectionGuid}/Authorization | Creates a new authorization for the specified vault section. |
VaultCreateNewVaultItem | Post /VaultItem | Creates a new vault item. |
VaultCreateNewVaultSection | Post /VaultSection | Creates a new vault section. |
VaultDeleteAuthorizationForVaultSection | Delete /VaultSection/{vaultSectionGuid}/Authorization/{authorizationGuid} | Deletes the specified authorization for the specified vault section. |
VaultDeleteVaultItem | Delete /VaultItem/{vaultItemGuid} | Deletes the specified vault item. |
VaultDeleteVaultSection | Delete /VaultSection/{vaultSectionGuid} | Deletes the specified vault section. |
VaultGetAllVaultItems | Get /VaultItem | Returns all vault items. |
VaultGetAllVaultSections | Get /VaultSection | Returns all vault sections. |
VaultGetAuthorizationsForVaultSection | Get /VaultSection/{vaultSectionGuid}/Authorization | Returns all authorizations for the specified vault section. |
VaultGetVaultItem | Get /VaultItem/{vaultItemGuid} | Returns the specified vault item. |
VaultGetVaultSection | Get /VaultSection/{vaultSectionGuid} | Returns the specified vault section. |
VaultPartiallyUpdateVaultItem | Patch /VaultItem/{vaultItemGuid} | Partially updates the specified vault item. |
VaultUpdateVaultItem | Put /VaultItem/{vaultItemGuid} | Updates the specified vault item. |
VaultUpdateVaultSection | Put /VaultSection/{vaultSectionGuid} | Updates the specified vault section. |
VaultSectionAuthorization VaultCreateAuthorizationForVaultSection(ctx, vaultSectionGuid).Authorization(authorization).Execute()
Creates a new authorization for the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the vault section for which to create the new authorization.
authorization := *openapiclient.NewVaultSectionAuthorization(map[string][]openapiclient.VaultSectionAuthorizationType{ ... }) // VaultSectionAuthorization | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultCreateAuthorizationForVaultSection(context.Background(), vaultSectionGuid).Authorization(authorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultCreateAuthorizationForVaultSection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultCreateAuthorizationForVaultSection`: VaultSectionAuthorization
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultCreateAuthorizationForVaultSection`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
vaultSectionGuid | string | The Guid of the vault section for which to create the new authorization. |
Other parameters are passed through a pointer to a apiVaultCreateAuthorizationForVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
authorization | VaultSectionAuthorization | |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultItem VaultCreateNewVaultItem(ctx).Item(item).Execute()
Creates a new vault item.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
item := *openapiclient.NewVaultItem() // VaultItem | The item to create (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultCreateNewVaultItem(context.Background()).Item(item).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultCreateNewVaultItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultCreateNewVaultItem`: VaultItem
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultCreateNewVaultItem`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiVaultCreateNewVaultItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
item | VaultItem | The item to create |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultSection VaultCreateNewVaultSection(ctx).Section(section).Execute()
Creates a new vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
section := *openapiclient.NewVaultSection("VaultSectionGuid_example") // VaultSection | The attributes of the vault section that should be created. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultCreateNewVaultSection(context.Background()).Section(section).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultCreateNewVaultSection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultCreateNewVaultSection`: VaultSection
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultCreateNewVaultSection`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiVaultCreateNewVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
section | VaultSection | The attributes of the vault section that should be created. |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultDeleteAuthorizationForVaultSection(ctx, vaultSectionGuid, authorizationGuid).Execute()
Deletes the specified authorization for the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the vault section for which the authorization should be deleted.
authorizationGuid := "authorizationGuid_example" // string | The Guid of the authorization that should be deleted.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultDeleteAuthorizationForVaultSection(context.Background(), vaultSectionGuid, authorizationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultDeleteAuthorizationForVaultSection``: %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. | |
vaultSectionGuid | string | The Guid of the vault section for which the authorization should be deleted. | |
authorizationGuid | string | The Guid of the authorization that should be deleted. |
Other parameters are passed through a pointer to a apiVaultDeleteAuthorizationForVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultDeleteVaultItem(ctx, vaultItemGuid).Execute()
Deletes the specified vault item.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultItemGuid := "vaultItemGuid_example" // string | The Guid of the vault item that should be deleted.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultDeleteVaultItem(context.Background(), vaultItemGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultDeleteVaultItem``: %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. | |
vaultItemGuid | string | The Guid of the vault item that should be deleted. |
Other parameters are passed through a pointer to a apiVaultDeleteVaultItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultDeleteVaultSection(ctx, vaultSectionGuid).Execute()
Deletes the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the vault section that should be deleted.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultDeleteVaultSection(context.Background(), vaultSectionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultDeleteVaultSection``: %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. | |
vaultSectionGuid | string | The Guid of the vault section that should be deleted. |
Other parameters are passed through a pointer to a apiVaultDeleteVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]VaultItem VaultGetAllVaultItems(ctx).Execute()
Returns all vault items.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultGetAllVaultItems(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultGetAllVaultItems``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultGetAllVaultItems`: []VaultItem
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultGetAllVaultItems`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiVaultGetAllVaultItemsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]VaultSection VaultGetAllVaultSections(ctx).Execute()
Returns all vault sections.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultGetAllVaultSections(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultGetAllVaultSections``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultGetAllVaultSections`: []VaultSection
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultGetAllVaultSections`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiVaultGetAllVaultSectionsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultSectionAuthorization VaultGetAuthorizationsForVaultSection(ctx, vaultSectionGuid).Execute()
Returns all authorizations for the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the vault section for which to return authorizations.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultGetAuthorizationsForVaultSection(context.Background(), vaultSectionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultGetAuthorizationsForVaultSection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultGetAuthorizationsForVaultSection`: VaultSectionAuthorization
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultGetAuthorizationsForVaultSection`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
vaultSectionGuid | string | The Guid of the vault section for which to return authorizations. |
Other parameters are passed through a pointer to a apiVaultGetAuthorizationsForVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultItem VaultGetVaultItem(ctx, vaultItemGuid).Execute()
Returns the specified vault item.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultItemGuid := "vaultItemGuid_example" // string | The Guid of the requested vault item.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultGetVaultItem(context.Background(), vaultItemGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultGetVaultItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultGetVaultItem`: VaultItem
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultGetVaultItem`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
vaultItemGuid | string | The Guid of the requested vault item. |
Other parameters are passed through a pointer to a apiVaultGetVaultItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultSection VaultGetVaultSection(ctx, vaultSectionGuid).Execute()
Returns the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the requested vault section.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultGetVaultSection(context.Background(), vaultSectionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultGetVaultSection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VaultGetVaultSection`: VaultSection
fmt.Fprintf(os.Stdout, "Response from `VaultApi.VaultGetVaultSection`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
vaultSectionGuid | string | The Guid of the requested vault section. |
Other parameters are passed through a pointer to a apiVaultGetVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultPartiallyUpdateVaultItem(ctx, vaultItemGuid).Item(item).Execute()
Partially updates the specified vault item.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultItemGuid := "vaultItemGuid_example" // string | The Guid of the vault item that should be updated.
item := *openapiclient.NewVaultItem() // VaultItem | Part of the definition of the vault item that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultPartiallyUpdateVaultItem(context.Background(), vaultItemGuid).Item(item).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultPartiallyUpdateVaultItem``: %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. | |
vaultItemGuid | string | The Guid of the vault item that should be updated. |
Other parameters are passed through a pointer to a apiVaultPartiallyUpdateVaultItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
item | VaultItem | Part of the definition of the vault item that should be updated. |
(empty response body)
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultUpdateVaultItem(ctx, vaultItemGuid).Item(item).Execute()
Updates the specified vault item.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultItemGuid := "vaultItemGuid_example" // string | The Guid of the vault item that should be updated.
item := *openapiclient.NewVaultItem() // VaultItem | The complete definition of the vault item that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultUpdateVaultItem(context.Background(), vaultItemGuid).Item(item).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultUpdateVaultItem``: %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. | |
vaultItemGuid | string | The Guid of the vault item that should be updated. |
Other parameters are passed through a pointer to a apiVaultUpdateVaultItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
item | VaultItem | The complete definition of the vault item that should be updated. |
(empty response body)
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VaultUpdateVaultSection(ctx, vaultSectionGuid).Item(item).Execute()
Updates the specified vault section.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vaultSectionGuid := "vaultSectionGuid_example" // string | The Guid of the vault section that should be updated.
item := *openapiclient.NewVaultSection("VaultSectionGuid_example") // VaultSection | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VaultApi.VaultUpdateVaultSection(context.Background(), vaultSectionGuid).Item(item).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VaultApi.VaultUpdateVaultSection``: %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. | |
vaultSectionGuid | string | The Guid of the vault section that should be updated. |
Other parameters are passed through a pointer to a apiVaultUpdateVaultSectionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
item | VaultSection | |
(empty response body)
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]