Skip to main content
POST
/
org
/
helm
/
registries
Create Helm Registry Endpoint
import requests

url = "https://platform.ankra.app/org/helm/registries"

payload = { "spec": {
        "helm_http_registry": {
            "name": "<string>",
            "url": "<string>",
            "exclude_charts": [],
            "credential_name": "<string>",
            "delete_permanently": False,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z"
        },
        "helm_oci_registry": {
            "name": "<string>",
            "url": "<string>",
            "credential_name": "<string>",
            "delete_permanently": False,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z"
        },
        "helm_chart": {
            "name": "<string>",
            "registry_name": "<string>",
            "registry_url": "<string>",
            "registry_resource_kind": "chart",
            "versions": [],
            "github_release_scraper": {
                "repository_owner": "<string>",
                "repository_name": "<string>"
            }
        },
        "helm_registry_credential": {
            "name": "<string>",
            "username": "<string>",
            "password": "<string>"
        },
        "github_helm_chart_releases": [
            {
                "repository_owner": "<string>",
                "repository_name": "<string>",
                "version": "<string>",
                "html_url": "<string>",
                "body": "<string>",
                "created_at": "<string>",
                "release_id": "<string>",
                "authors": ["<string>"],
                "chart_resource_id": "<string>",
                "prerelease": False
            }
        ],
        "github_credential": {
            "name": "<string>",
            "access_token": "<string>",
            "account_type": "<string>",
            "account_login": "<string>"
        },
        "github_repositories": [
            {
                "name": "<string>",
                "owner": "<string>",
                "default_branch": "<string>",
                "web_url": "<string>",
                "git_url": "<string>",
                "private": True,
                "credential_name": "<string>"
            }
        ],
        "github_accessible_repositories_scraper": { "credential_name": "<string>" },
        "global_github_helm_registry_repository": {
            "repository_owner": "<string>",
            "repository_name": "<string>",
            "registry_directory_path": "<string>",
            "branch": "master"
        },
        "proxmox_credentials": [
            {
                "name": "<string>",
                "host": "<string>",
                "port": 123,
                "user": "<string>",
                "bastion": {},
                "token_name": "<string>",
                "token_value": "<string>",
                "password": "<string>"
            }
        ],
        "proxmox_cluster": {
            "cluster_name": "<string>",
            "organisation_id": "<string>",
            "vms": [
                {
                    "name": "<string>",
                    "cpu": 123,
                    "memory_mb": 123,
                    "disk_gb": 123
                }
            ],
            "network": {
                "name": "<string>",
                "cidr": "<string>",
                "vlan": 123
            },
            "credential": "<string>",
            "ankra_agent": {
                "url": "<string>",
                "version": "<string>"
            }
        }
    } }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "errors": []
}

Authorizations

Authorization
string
header
required

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

Cookies

ankra_session
string | null
ankra_refresh
string | null

Body

application/json
spec
PlatformResourceSpecification · object
required

Response

Successful Response

errors
ResourceError · object[]