Repository Helper Set Repository Availability

Repository Helper Set Repository Availability

Enable or disable Package Repository for a cluster.

Request
URI
POST
https://{api_host}/https://your_org.tmc.cloud.vmware.com/v1alpha1/clusters/{fullName.clusterName}/namespaces/{fullName.namespaceName}/tanzupackage/repositories:setavailability/{fullName.name}
COPY
Path Parameters
string
fullName.clusterName
Required

Name of Cluster.

string
fullName.namespaceName
Required

Name of Namespace.

string
fullName.name
Required

Name of the Package Repository.


Request Body
{
    "fullName": {
        "orgId": "string",
        "managementClusterName": "string",
        "provisionerName": "string",
        "clusterName": "string",
        "namespaceName": "string",
        "name": "string"
    },
    "disabled": false
}
Responses
200

A successful response.

{
    "repository": {
        "type": {
            "kind": "string",
            "version": "string",
            "package": "string"
        },
        "fullName": {
            "orgId": "string",
            "managementClusterName": "string",
            "provisionerName": "string",
            "clusterName": "string",
            "namespaceName": "string",
            "name": "string"
        },
        "meta": {
            "uid": "string",
            "generation": "string",
            "resourceVersion": "string",
            "creationTime": "string",
            "updateTime": "string",
            "description": "string",
            "parentReferences": [
                {
                    "rid": "string",
                    "uid": "string"
                }
            ]
        },
        "spec": {
            "imgpkgBundle": {
                "image": "string"
            }
        },
        "status": {
            "disabled": false,
            "subscribed": false,
            "managed": false
        }
    }
}

default

An unexpected error response.

Returns grpc.gateway.runtime.Error of type(s) */*
{
    "error": "string",
    "code": 0,
    "message": "string",
    "details": [
        {
            "typeUrl": "string",
            "value": "string"
        }
    ]
}