Get Managed Registry Credential

Get Managed Registry Credential
Get a registry credential

Retrieves a managed registry credential. The id of the organization is fetched from CSP token

Request
URI
GET
https://api.app-catalog.vmware.com/v1/registries/{registry_id}/credentials/{credential_id}
COPY
Path Parameters
registry_id
Required

A string as the identifier of a registry

credential_id
Required

String identifier for the managed registry credential


Authentication
This operation uses the following authentication methods.
Responses
200

The registry credential

Returns RegistryCredential of type(s) application/json
{
    "id": "149cfa79-352c-4555-9d28-4442de551828",
    "name": "robot$registry-user",
    "description": "Credentials for testing",
    "created_at": "2023-03-03T00:59:52.762Z",
    "created_by": "johndoe",
    "updated_at": "2023-03-03T00:59:52.762Z",
    "updated_by": "Bitnami Secure Images",
    "removed_at": "2023-03-03T00:59:52.762Z",
    "removed_by": "johndoe",
    "expires_at": "2025-03-03T00:59:52.762Z",
    "status": "ACTIVE"
}
string
id
Required

Identifier of a managed registry credential

string
name
Required

Name of the credentials

string
description
Required

Description of the credential

string As date-time As date-time
created_at
Required

Date of the creation of the credential

string
created_by
Required

Name of the user that created the credential

string As date-time As date-time
updated_at
Optional

Date of the update of the credential

string
updated_by
Optional

Name of the user that updated the credential

string As date-time As date-time
removed_at
Optional

Date of the removal of the credential

string
removed_by
Optional

Name of the user that removed the credential

string As date-time As date-time
expires_at
Required

Date when the credential expires

string
status
Required

Status of the credential (ACTIVE, EXPIRED, REMOVED)


400

An error related to the request

Returns ConstraintsViolationsError of type(s) application/problem+json
This response body class contains all of the following: InlineConstraintsViolationsError0
{
    "type": "https://example.com/probs/validation-error",
    "title": "Validation error",
    "status": 400,
    "detail": "There was an error validating the request",
    "violations": [
        {
            "field": "amount",
            "message": "It should be greater than zero"
        }
    ]
}
array of object
violations
Required

It represents a constraints violation error


403

The requesting user is not authorized to get the credential

Returns Error403 of type(s) application/problem+json
This response body class contains all of the following: InlineError4030
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

404

The registry or the credential is not found

Returns Error404 of type(s) application/problem+json
This response body class contains all of the following: InlineError4040
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

500

An internal server error object

Returns Error500 of type(s) application/problem+json
This response body class contains all of the following: InlineError5000
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

503

The server is temporarily unavailable

Returns Error503 of type(s) application/problem+json
This response body class contains all of the following: InlineError5030
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/v1/registries/{registry_id}/credentials/{credential_id}