All URIs are relative to https://api.uptrends.com/v4
Method | HTTP request | Description |
---|---|---|
PublicStatusPageAddAuthorizationToPublicStatusPage | Post /PublicStatusPage/{publicStatusPageGuid}/Authorization | Creates a new authorization for the specified public status page. |
PublicStatusPageDeletePublicStatusPage | Delete /PublicStatusPage/{publicStatusPageGuid} | Deletes the definition of the specified public status page. |
PublicStatusPageGetAuthorizationsForPublicStatusPage | Get /PublicStatusPage/{publicStatusPageGuid}/Authorization | Returns all authorizations for the specified public status page. |
PublicStatusPageGetPublicStatusPage | Get /PublicStatusPage/{publicStatusPageGuid} | Returns the definition of the specified public status page. |
PublicStatusPageGetPublicStatusPages | Get /PublicStatusPage | Returns the definition of all public status pages available in the account. |
PublicStatusPagePatchPublicStatusPage | Patch /PublicStatusPage/{publicStatusPageGuid} | Partially updates the definition of the specified public status page. |
PublicStatusPagePostPublicStatusPage | Post /PublicStatusPage | Creates a new public status page. |
PublicStatusPagePutPublicStatusPage | Put /PublicStatusPage/{publicStatusPageGuid} | Updates the definition of the specified public status page. |
PublicStatusPageRemoveAuthorizationFromPublicStatusPage | Delete /PublicStatusPage/{publicStatusPageGuid}/Authorization/{authorizationGuid} | Removes an authorization from a public status page. |
PSPAuthorization PublicStatusPageAddAuthorizationToPublicStatusPage(ctx, publicStatusPageGuid).Authorization(authorization).Execute()
Creates a new authorization for the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page.
authorization := *openapiclient.NewPSPAuthorization(map[string][]openapiclient.PSPAuthorizationType{ ... }) // PSPAuthorization | The complete definition of the authorization that should be created. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageAddAuthorizationToPublicStatusPage(context.Background(), publicStatusPageGuid).Authorization(authorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageAddAuthorizationToPublicStatusPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublicStatusPageAddAuthorizationToPublicStatusPage`: PSPAuthorization
fmt.Fprintf(os.Stdout, "Response from `PublicStatusPageApi.PublicStatusPageAddAuthorizationToPublicStatusPage`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
publicStatusPageGuid | string | The Guid of the public status page. |
Other parameters are passed through a pointer to a apiPublicStatusPageAddAuthorizationToPublicStatusPageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
authorization | PSPAuthorization | The complete definition of the authorization 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]
PublicStatusPageDeletePublicStatusPage(ctx, publicStatusPageGuid).Execute()
Deletes the definition of the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page that should be updated.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageDeletePublicStatusPage(context.Background(), publicStatusPageGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageDeletePublicStatusPage``: %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. | |
publicStatusPageGuid | string | The Guid of the public status page that should be updated. |
Other parameters are passed through a pointer to a apiPublicStatusPageDeletePublicStatusPageRequest 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]
[]PSPAuthorization PublicStatusPageGetAuthorizationsForPublicStatusPage(ctx, publicStatusPageGuid).Execute()
Returns all authorizations for the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageGetAuthorizationsForPublicStatusPage(context.Background(), publicStatusPageGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageGetAuthorizationsForPublicStatusPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublicStatusPageGetAuthorizationsForPublicStatusPage`: []PSPAuthorization
fmt.Fprintf(os.Stdout, "Response from `PublicStatusPageApi.PublicStatusPageGetAuthorizationsForPublicStatusPage`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
publicStatusPageGuid | string | The Guid of the public status page. |
Other parameters are passed through a pointer to a apiPublicStatusPageGetAuthorizationsForPublicStatusPageRequest 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]
PublicStatusPage PublicStatusPageGetPublicStatusPage(ctx, publicStatusPageGuid).Execute()
Returns the definition of the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the requested public status page.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageGetPublicStatusPage(context.Background(), publicStatusPageGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageGetPublicStatusPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublicStatusPageGetPublicStatusPage`: PublicStatusPage
fmt.Fprintf(os.Stdout, "Response from `PublicStatusPageApi.PublicStatusPageGetPublicStatusPage`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
publicStatusPageGuid | string | The Guid of the requested public status page. |
Other parameters are passed through a pointer to a apiPublicStatusPageGetPublicStatusPageRequest 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]
[]PublicStatusPage PublicStatusPageGetPublicStatusPages(ctx).Execute()
Returns the definition of all public status pages available in the account.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageGetPublicStatusPages(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageGetPublicStatusPages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublicStatusPageGetPublicStatusPages`: []PublicStatusPage
fmt.Fprintf(os.Stdout, "Response from `PublicStatusPageApi.PublicStatusPageGetPublicStatusPages`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiPublicStatusPageGetPublicStatusPagesRequest 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]
PublicStatusPagePatchPublicStatusPage(ctx, publicStatusPageGuid).PublicStatusPage(publicStatusPage).Execute()
Partially updates the definition of the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page that should be updated.
publicStatusPage := *openapiclient.NewPublicStatusPage() // PublicStatusPage | The partial definition for the public status page that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPagePatchPublicStatusPage(context.Background(), publicStatusPageGuid).PublicStatusPage(publicStatusPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPagePatchPublicStatusPage``: %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. | |
publicStatusPageGuid | string | The Guid of the public status page that should be updated. |
Other parameters are passed through a pointer to a apiPublicStatusPagePatchPublicStatusPageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
publicStatusPage | PublicStatusPage | The partial definition for the public status page 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]
PublicStatusPage PublicStatusPagePostPublicStatusPage(ctx).PublicStatusPage(publicStatusPage).Execute()
Creates a new public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPage := *openapiclient.NewPublicStatusPage() // PublicStatusPage | The complete definition for the public status page that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPagePostPublicStatusPage(context.Background()).PublicStatusPage(publicStatusPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPagePostPublicStatusPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublicStatusPagePostPublicStatusPage`: PublicStatusPage
fmt.Fprintf(os.Stdout, "Response from `PublicStatusPageApi.PublicStatusPagePostPublicStatusPage`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPublicStatusPagePostPublicStatusPageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
publicStatusPage | PublicStatusPage | The complete definition for the public status page that should be updated. |
- 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]
PublicStatusPagePutPublicStatusPage(ctx, publicStatusPageGuid).PublicStatusPage(publicStatusPage).Execute()
Updates the definition of the specified public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page that should be updated.
publicStatusPage := *openapiclient.NewPublicStatusPage() // PublicStatusPage | The complete definition for the public status page that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPagePutPublicStatusPage(context.Background(), publicStatusPageGuid).PublicStatusPage(publicStatusPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPagePutPublicStatusPage``: %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. | |
publicStatusPageGuid | string | The Guid of the public status page that should be updated. |
Other parameters are passed through a pointer to a apiPublicStatusPagePutPublicStatusPageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
publicStatusPage | PublicStatusPage | The complete definition for the public status page 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]
PublicStatusPageRemoveAuthorizationFromPublicStatusPage(ctx, publicStatusPageGuid, authorizationGuid).Execute()
Removes an authorization from a public status page.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
publicStatusPageGuid := "publicStatusPageGuid_example" // string | The Guid of the public status page.
authorizationGuid := "authorizationGuid_example" // string | The Guid of the authorization.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PublicStatusPageApi.PublicStatusPageRemoveAuthorizationFromPublicStatusPage(context.Background(), publicStatusPageGuid, authorizationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PublicStatusPageApi.PublicStatusPageRemoveAuthorizationFromPublicStatusPage``: %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. | |
publicStatusPageGuid | string | The Guid of the public status page. | |
authorizationGuid | string | The Guid of the authorization. |
Other parameters are passed through a pointer to a apiPublicStatusPageRemoveAuthorizationFromPublicStatusPageRequest 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]