Source code for saltext.vcf.clients.sddc_releases

"""SDDC Manager release catalog (/v1/releases)."""

from saltext.vcf.utils import sddc

PATH = "/v1/releases"


def list_(opts, profile=None):
    return sddc.api_get(opts, PATH, profile=profile)


[docs] def domain(opts, domain_id, profile=None): """Return release info for a specific workload domain.""" return sddc.api_get(opts, PATH, params={"domainId": domain_id}, profile=profile)
[docs] def system(opts, profile=None): """Return the system-wide installed release info.""" return sddc.api_get(opts, "/v1/system/release", profile=profile)
[docs] def custom_patches(opts, domain_id, profile=None): """List async / out-of-band patches registered on *domain_id*.""" return sddc.api_get(opts, f"{PATH}/domains/{domain_id}/custom-patches", profile=profile)