Skip to main content
Glama
yjiace

AlibabaCloud DevOps MCP Server

by yjiace
serviceConnection.ts995 B
import * as utils from "../../common/utils.js"; import { ServiceConnectionSchema, ServiceConnection, ListServiceConnectionsSchema } from "./types.js"; /** * 获取服务连接列表 * @param organizationId 组织ID * @param serviceConnectionType 服务连接类型 * @returns 服务连接列表 */ export async function listServiceConnectionsFunc( organizationId: string, serviceConnectionType: string ): Promise<ServiceConnection[]> { const baseUrl = `/oapi/v1/flow/organizations/${organizationId}/serviceConnections`; // 构建查询参数 const queryParams: Record<string, string | number | undefined> = { sericeConnectionType: serviceConnectionType // 注意:API文档中拼写为 sericeConnectionType }; const url = utils.buildUrl(baseUrl, queryParams); const response = await utils.yunxiaoRequest(url, { method: "GET", }); if (!Array.isArray(response)) { return []; } return response.map(item => ServiceConnectionSchema.parse(item)); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yjiace/alibabacloud-devops-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server