Get
Get Bundle Automation
client.Catalogs.BundleAutomation.Get(ctx, requestCatalogID) (*CreatedAtTimeCreateTasksboolDeletedAtTimeEnabledboolEntitlementsBundleAutomationRuleEntitlementRequestCatalogIDstringStateBundleAutomationStateTenantIDstringUpdatedAtTimeBundleAutomation, error)
get/api/v1/catalogs/{request_catalog_id}/bundle_automation
Get bundle automation
Parameters
requestCatalogIDstring
The requestCatalogId field.
Returns
CreatedAtTimeCreateTasksboolDeletedAtTimeEnabledboolEntitlementsBundleAutomationRuleEntitlementRequestCatalogIDstringStateBundleAutomationStateTenantIDstringUpdatedAtTimeBundleAutomation
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
bundleAutomation, err := client.Catalogs.BundleAutomation.Get(context.TODO(), "request_catalog_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", bundleAutomation.CreatedAt)
}
200 Example
{
"createdAt": "2019-12-27T18:11:19.117Z",
"createTasks": true,
"deletedAt": "2019-12-27T18:11:19.117Z",
"enabled": true,
"entitlements": {
"entitlementRefs": [
{
"id": "id",
"appId": "appId"
}
]
},
"requestCatalogId": "requestCatalogId",
"state": {
"errorMessage": "errorMessage",
"lastRunAt": "2019-12-27T18:11:19.117Z",
"status": "BUNDLE_AUTOMATION_RUN_STATUS_UNSPECIFIED"
},
"tenantId": "tenantId",
"updatedAt": "2019-12-27T18:11:19.117Z"
}