Skip to main content
POST
/
api
/
v1
/
catalogs
/
{request_catalog_id}
/
bundle_automation
SetBundleAutomation
package main

import(
	"context"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/operations"
	"log"
)

func main() {
    ctx := context.Background()

    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "<YOUR_OAUTH_HERE>",
        }),
    )

    res, err := s.RequestCatalogManagement.SetBundleAutomation(ctx, operations.C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequest{
        RequestCatalogID: "<id>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res.BundleAutomation != nil {
        // handle response
    }
}
{
  "circuitBreaker": {
    "removedMembersThresholdPercentage": "<string>",
    "state": "CIRCUIT_BREAKER_STATE_UNSPECIFIED",
    "updatedAt": "2023-11-07T05:31:56Z",
    "userRef": {
      "id": "<string>"
    }
  },
  "createTasks": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z",
  "disableCircuitBreaker": true,
  "enabled": true,
  "entitlements": {
    "entitlementRefs": [
      {
        "appId": "<string>",
        "id": "<string>"
      }
    ]
  },
  "requestCatalogId": "<string>",
  "state": {
    "errorMessage": "<string>",
    "lastRunAt": "2023-11-07T05:31:56Z",
    "status": "BUNDLE_AUTOMATION_RUN_STATUS_UNSPECIFIED"
  },
  "tenantId": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

request_catalog_id
string | null
required

The requestCatalogId field.

Body

application/json

The SetBundleAutomationRequest message.

This message contains a oneof named conditions. Only a single field of the following list may be set at a time:

  • entitlements
createTasks
boolean | null

The createTasks field.

disableCircuitBreaker
boolean | null

The disableCircuitBreaker field.

enabled
boolean | null

The enabled field.

entitlements
Bundle Automation Rule Entitlement · object

The BundleAutomationRuleEntitlement message.

Response

200 - application/json

Successful response

The BundleAutomation message.

This message contains a oneof named conditions. Only a single field of the following list may be set at a time:

  • entitlements
circuitBreaker
Bundle Automation Circuit Breaker · object

The BundleAutomationCircuitBreaker message.

createTasks
boolean | null

The createTasks field.

createdAt
string<date-time> | null
deletedAt
string<date-time> | null
disableCircuitBreaker
boolean | null

The disableCircuitBreaker field.

enabled
boolean | null

The enabled field.

entitlements
Bundle Automation Rule Entitlement · object

The BundleAutomationRuleEntitlement message.

requestCatalogId
string | null

The requestCatalogId field.

state
Bundle Automation Last Run State · object

The BundleAutomationLastRunState message.

tenantId
string | null

The tenantId field.

updatedAt
string<date-time> | null