Create
Create Bundle Automation
client.Catalogs.BundleAutomation.New(ctx, requestCatalogID, body) (*CreatedAtTimeCreateTasksboolDeletedAtTimeEnabledboolEntitlementsBundleAutomationRuleEntitlementRequestCatalogIDstringStateBundleAutomationStateTenantIDstringUpdatedAtTimeBundleAutomation, error)
post/api/v1/catalogs/{request_catalog_id}/bundle_automation/create
Invokes the c1.api.requestcatalog.v1.RequestCatalogManagementService.CreateBundleAutomation method.
Parameters
requestCatalogIDstring
The requestCatalogId field.
bodyCreateTasksfieldEnabledfieldEntitlementsfieldCatalogBundleAutomationNewParams
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.New(
context.TODO(),
"request_catalog_id",
conductoronesdk.CatalogBundleAutomationNewParams{
},
)
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"
}