---
title: "List UDF attachments"
method: GET
path: "/v1/organizations/{organizationId}/udfs/{functionName}/attachments"
tags: ["UDF"]
---

# List UDF attachments

`GET /v1/organizations/{organizationId}/udfs/{functionName}/attachments`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/udfs/{functionName}/attachments`
- Auth: HTTP basic

Returns the current service attachments for a UDF, with at most one attachment per service.

## Path parameters

- `organizationId` string, uuid, required: ID of the requested organization.
- `functionName` string, required: Name of the UDF.

## Query parameters

- `cursor` string: Cursor returned as `nextCursor` on the previous page.
- `limit` integer: Maximum number of records to return per page. Defaults to 100. Maximum is 100.

## Response `200`

Successful response.

- object
  - `result` UdfAttachment[], required: Current service attachments for the UDF in this page.
    - `functionName` string, required: Name of the UDF.
    - `serviceId` string, uuid, required: ID of the attached service.
    - `status` 'deployed' | 'deprovisioning' | 'error' | 'provisioning' | 'standby', required: Current attachment lifecycle state.
    - `version` integer, required: Attached UDF version.
  - `limit` integer, required: Maximum number of results returned in this page.
  - `totalCount` integer, nullable, required: Total number of results across all pages. It has only informative value, thus is not guaranteed and it is provided on a best-effort basis. Null if the total count is unknown.
  - `nextCursor` string, nullable, required: Cursor for the next page, to be sent as the `cursor` query parameter. Null on the last page.
  - `status` integer, required: HTTP status code.
  - `requestId` string, uuid, required: Unique id assigned to every request. UUIDv4

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `404`: UDF not found.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-16** `4e1eec98567b`: 2 info
  - the security scope `control-plane:organization:view-udfs` was added to the endpoint's security scheme `basicAuth`
  - the security scope `control-plane:organization:view` was removed from the endpoint's security scheme `basicAuth`

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/udfs/:functionName/attachments/get.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
