All URIs are relative to https://api.omnistrate.cloud
Method | HTTP request | Description |
---|---|---|
ServiceModelApiAddAccountConfigToServiceModel | Post /2022-09-01-00/service/{serviceId}/model/{id}/account-config | AddAccountConfigToServiceModel service-model-api |
ServiceModelApiCopyServiceModel | Post /2022-09-01-00/service/{serviceId}/model/copy/{sourceId} | CopyServiceModel service-model-api |
ServiceModelApiCreateServiceModel | Post /2022-09-01-00/service/{serviceId}/model | CreateServiceModel service-model-api |
ServiceModelApiDeleteServiceModel | Delete /2022-09-01-00/service/{serviceId}/model/{id} | DeleteServiceModel service-model-api |
ServiceModelApiDescribeServiceModel | Get /2022-09-01-00/service/{serviceId}/model/{id} | DescribeServiceModel service-model-api |
ServiceModelApiDisableServiceModelFeature | Delete /2022-09-01-00/service/{serviceId}/model/{id}/feature | DisableServiceModelFeature service-model-api |
ServiceModelApiEnableServiceModelFeature | Put /2022-09-01-00/service/{serviceId}/model/{id}/feature | EnableServiceModelFeature service-model-api |
ServiceModelApiListServiceModel | Get /2022-09-01-00/service/{serviceId}/serviceapi/{serviceApiId}/model | ListServiceModel service-model-api |
ServiceModelApiReleaseServiceModelStatus | Get /2022-09-01-00/service/{serviceId}/model/{id}/release | ReleaseServiceModelStatus service-model-api |
ServiceModelApiRemoveAccountConfigFromServiceModel | Delete /2022-09-01-00/service/{serviceId}/model/{id}/account-config | RemoveAccountConfigFromServiceModel service-model-api |
ServiceModelApiSetActiveAccountConfig | Post /2022-09-01-00/service/{serviceId}/model/{id}/account-config/{accountConfigId}/active | SetActiveAccountConfig service-model-api |
ServiceModelApiUpdateServiceModel | Patch /2022-09-01-00/service/{serviceId}/model/{id} | UpdateServiceModel service-model-api |
ServiceModelApiAddAccountConfigToServiceModel(ctx, serviceId, id).AddAccountConfigToServiceModelRequestBody(addAccountConfigToServiceModelRequestBody).Execute()
AddAccountConfigToServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
addAccountConfigToServiceModelRequestBody := *openapiclient.NewAddAccountConfigToServiceModelRequestBody("ac-12345678") // AddAccountConfigToServiceModelRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiAddAccountConfigToServiceModel(context.Background(), serviceId, id).AddAccountConfigToServiceModelRequestBody(addAccountConfigToServiceModelRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiAddAccountConfigToServiceModel``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiAddAccountConfigToServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
addAccountConfigToServiceModelRequestBody | AddAccountConfigToServiceModelRequestBody | |
(empty response body)
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ServiceModelApiCopyServiceModel(ctx, serviceId, sourceId).CopyServiceModelRequestBody(copyServiceModelRequestBody).Execute()
CopyServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
sourceId := "sm-12345678" // string | The source service model ID
copyServiceModelRequestBody := *openapiclient.NewCopyServiceModelRequestBody("A MySQL Hosted SaaS specializing in multi-writer clusters for high availability", "MySQL multi-writer service hosted model", "CUSTOMER_HOSTED") // CopyServiceModelRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ServiceModelApiAPI.ServiceModelApiCopyServiceModel(context.Background(), serviceId, sourceId).CopyServiceModelRequestBody(copyServiceModelRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiCopyServiceModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ServiceModelApiCopyServiceModel`: string
fmt.Fprintf(os.Stdout, "Response from `ServiceModelApiAPI.ServiceModelApiCopyServiceModel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | The service ID this model belongs to | |
sourceId | string | The source service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiCopyServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
copyServiceModelRequestBody | CopyServiceModelRequestBody | |
string
- Content-Type: application/json
- Accept: application/json, application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ServiceModelApiCreateServiceModel(ctx, serviceId).CreateServiceModelRequestBody(createServiceModelRequestBody).Execute()
CreateServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service this model is for
createServiceModelRequestBody := *openapiclient.NewCreateServiceModelRequestBody("A MySQL Hosted SaaS specializing in multi-writer clusters for high availability", "CUSTOMER_HOSTED", "MySQL multi-writer service hosted model", "sa-12345678") // CreateServiceModelRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ServiceModelApiAPI.ServiceModelApiCreateServiceModel(context.Background(), serviceId).CreateServiceModelRequestBody(createServiceModelRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiCreateServiceModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ServiceModelApiCreateServiceModel`: string
fmt.Fprintf(os.Stdout, "Response from `ServiceModelApiAPI.ServiceModelApiCreateServiceModel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | The service this model is for |
Other parameters are passed through a pointer to a apiServiceModelApiCreateServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createServiceModelRequestBody | CreateServiceModelRequestBody | |
string
- Content-Type: application/json
- Accept: application/json, application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiDeleteServiceModel(ctx, serviceId, id).Execute()
DeleteServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiDeleteServiceModel(context.Background(), serviceId, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiDeleteServiceModel``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiDeleteServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DescribeServiceModelResult ServiceModelApiDescribeServiceModel(ctx, serviceId, id).Execute()
DescribeServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ServiceModelApiAPI.ServiceModelApiDescribeServiceModel(context.Background(), serviceId, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiDescribeServiceModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ServiceModelApiDescribeServiceModel`: DescribeServiceModelResult
fmt.Fprintf(os.Stdout, "Response from `ServiceModelApiAPI.ServiceModelApiDescribeServiceModel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiDescribeServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiDisableServiceModelFeature(ctx, serviceId, id).DisableServiceModelFeatureRequestBody(disableServiceModelFeatureRequestBody).Execute()
DisableServiceModelFeature service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
disableServiceModelFeatureRequestBody := *openapiclient.NewDisableServiceModelFeatureRequestBody("Sit ipsam eum omnis commodi commodi.") // DisableServiceModelFeatureRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiDisableServiceModelFeature(context.Background(), serviceId, id).DisableServiceModelFeatureRequestBody(disableServiceModelFeatureRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiDisableServiceModelFeature``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiDisableServiceModelFeatureRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
disableServiceModelFeatureRequestBody | DisableServiceModelFeatureRequestBody | |
(empty response body)
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiEnableServiceModelFeature(ctx, serviceId, id).ServiceModelFeatureDetail(serviceModelFeatureDetail).Execute()
EnableServiceModelFeature service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
serviceModelFeatureDetail := *openapiclient.NewServiceModelFeatureDetail(map[string]interface{}{"key": interface{}(123)}, "Excepturi aliquid ducimus molestiae quod eius a.") // ServiceModelFeatureDetail |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiEnableServiceModelFeature(context.Background(), serviceId, id).ServiceModelFeatureDetail(serviceModelFeatureDetail).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiEnableServiceModelFeature``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiEnableServiceModelFeatureRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
serviceModelFeatureDetail | ServiceModelFeatureDetail | |
(empty response body)
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListServiceEnvironmentsResult ServiceModelApiListServiceModel(ctx, serviceId, serviceApiId).Execute()
ListServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID
serviceApiId := "sa-12345678" // string | The service API ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ServiceModelApiAPI.ServiceModelApiListServiceModel(context.Background(), serviceId, serviceApiId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiListServiceModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ServiceModelApiListServiceModel`: ListServiceEnvironmentsResult
fmt.Fprintf(os.Stdout, "Response from `ServiceModelApiAPI.ServiceModelApiListServiceModel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | The service ID | |
serviceApiId | string | The service API ID |
Other parameters are passed through a pointer to a apiServiceModelApiListServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OmnistrateServiceHealthResult ServiceModelApiReleaseServiceModelStatus(ctx, serviceId, id).Execute()
ReleaseServiceModelStatus service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ServiceModelApiAPI.ServiceModelApiReleaseServiceModelStatus(context.Background(), serviceId, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiReleaseServiceModelStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ServiceModelApiReleaseServiceModelStatus`: OmnistrateServiceHealthResult
fmt.Fprintf(os.Stdout, "Response from `ServiceModelApiAPI.ServiceModelApiReleaseServiceModelStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiReleaseServiceModelStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiRemoveAccountConfigFromServiceModel(ctx, serviceId, id).AddAccountConfigToServiceModelRequestBody(addAccountConfigToServiceModelRequestBody).Execute()
RemoveAccountConfigFromServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
addAccountConfigToServiceModelRequestBody := *openapiclient.NewAddAccountConfigToServiceModelRequestBody("ac-12345678") // AddAccountConfigToServiceModelRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiRemoveAccountConfigFromServiceModel(context.Background(), serviceId, id).AddAccountConfigToServiceModelRequestBody(addAccountConfigToServiceModelRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiRemoveAccountConfigFromServiceModel``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiRemoveAccountConfigFromServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
addAccountConfigToServiceModelRequestBody | AddAccountConfigToServiceModelRequestBody | |
(empty response body)
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiSetActiveAccountConfig(ctx, serviceId, id, accountConfigId).Execute()
SetActiveAccountConfig service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
accountConfigId := "ac-12345678" // string | The infrastructure account configuration ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiSetActiveAccountConfig(context.Background(), serviceId, id, accountConfigId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiSetActiveAccountConfig``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID | |
accountConfigId | string | The infrastructure account configuration ID |
Other parameters are passed through a pointer to a apiServiceModelApiSetActiveAccountConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceModelApiUpdateServiceModel(ctx, serviceId, id).UpdateServiceModelRequestBody(updateServiceModelRequestBody).Execute()
UpdateServiceModel service-model-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
serviceId := "s-12345678" // string | The service ID this model belongs to
id := "sm-12345678" // string | The service model ID
updateServiceModelRequestBody := *openapiclient.NewUpdateServiceModelRequestBody() // UpdateServiceModelRequestBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ServiceModelApiAPI.ServiceModelApiUpdateServiceModel(context.Background(), serviceId, id).UpdateServiceModelRequestBody(updateServiceModelRequestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServiceModelApiAPI.ServiceModelApiUpdateServiceModel``: %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. | |
serviceId | string | The service ID this model belongs to | |
id | string | The service model ID |
Other parameters are passed through a pointer to a apiServiceModelApiUpdateServiceModelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateServiceModelRequestBody | UpdateServiceModelRequestBody | |
(empty response body)
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]