Update Connector


Updates the connector with required details for a provider.

This topic includes the following sections:

HTTP method: POST

Request URLhttps://portal.us1.onbmc.com/cloudops/api/v1/connectors/{connector_id}/updateConfigurations

HeaderSee HTTP-request-and-response-headers for header information, such as required authorization token.

Path Parameters

Parameter

Type

Required

Description

connector_id

String

Yes

connector ID

Query Parameters

None

Request

Example request JSON

{
   "addItems": [
        {
           "key": "app.collect.security.data",
           "value": false
        },
        {
           "key": "app.collect.cloudcost.data",
           "value": true
        },
        {
           "key": "app.collect.usage.data",
           "value": false
        },
        {
           "key": "gcp.credentials.client_email",
           "value": "tsco-auto-admin-acc@tsco-atom.iam.gserviceaccount.com"
        },
        {
           "key": "gcp.billing.account_id",
           "value": "010109_DD95A6_5D6AC8"
        },
        {
           "key": "gcp.billing.project_id",
           "value": "curious-bounty-181015"
        },
        {
           "key": "gcp.billing.dataset",
           "value": "Billing_DS"
        },
        {
           "key": "config.ondemandEnabled",
           "value": true
        },
        {
           "key": "config.scheduledEnabled",
           "value": false
        },
        {
           "key": "app.schedule",
           "value": -1
        },
        {
           "key": "config.eventDrivenEnabled",
           "value": false
        },
        {
           "key": "max_items_per_feed",
           "value": 20
        },
        {
           "key": "services",
           "value": [
               "IAM_POLICIES",
               "SQL",
               "STORAGE",
               "NETWORKS",
               "VIRTUAL_MACHINES",
               "SERVICE_ACCOUNTS",
               "SINKS",
               "DNS",
               "KMS",
               "PROJECTS",
               "GKE"
            ]
        },
        {
           "key": "dump_feeds",
           "value": false
        },
        {
           "key": "dump_directory",
           "value": "s3:feeds"
        },
        {
           "key": "max_feed_dumps",
           "value": 5
        },
        {
           "key": "contentDir",
           "value": "s3:contents"
        }
    ],
   "removeItems": []
}

Response

Example response JSON

{
   "message": "Configurations updated successfully for connector :gcpBqWithAPI2"
}

Status codes and messages

HTTP code

Description

200

OK

401

Unauthorized

400

Bad request

403

Forbidden

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*