---
title: "Get resource YAML"
method: GET
path: "/api/v1/yaml"
tags: ["yaml"]
---

# Get resource YAML

`GET /api/v1/yaml`

Fetches a MaaSSubscription or MaaSAuthPolicy by name and returns its YAML representation.
K8s calls: GET /k8s/v1/maassubscription/:name or GET /k8s/v1/maasauthpolicy/:name

## Query parameters

- `name` string, required
- `type` 'subscription' | 'authorizationpolicy', required

## Response `200`

YAML content for the requested resource

- YamlResponse — YAML export response for a MaaS governance resource.
  - `content` string, required — YAML representation of the requested Kubernetes resource.

## Other responses

- `400` — Bad Request (missing or invalid query parameters)
- `404` — Resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/opendatahub-io/apis/maas-bff-api.md) · [All operations](https://skmtc.net/opendatahub-io/apis/maas-bff-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opendatahub-io/maas-bff-api/revisions/9112415ceeca/schema)
