Adding Or updating the Tanzu API Token

Adding Or updating the Tanzu API Token
Adding or updating the Tanzu API Token

You can add a Tanzu API Token from Customer Support Portal to use Ops Manager's Customer Support Portal integration. This features automatically finds updates to products and stemcells from Customer Support Portal which you can then stage and install.

You can find your Tanzu API Token under your profile settings in Customer Support Portal. Note that currently there are two API tokens listed. Ops Manager only works with one listed as legacy API token.

Request
URI
PUT
https://{opsmanager-installation}/api/v0/settings/pivotal_network_settings
COPY
Request Body
PivotalNetworkSettings of type(s) application/json
Optional
{
    "pivotal_network_settings": {
        "api_token": "string"
    }
}
pivotal_network_settings
Optional

pivotal_network_settings

Responses
200

OK

{
    "success": false
}
boolean
success
Optional

success


400

Setup is not completed

Returns RequireSetupCompleted of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

422

Unprocessable Content

Returns CommonErrors of type(s) application/json
{
    "errors": [
        "string"
    ]
}
array of string
errors
Required

errors


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/settings/pivotal_network_settings