azure-mgmt-apicenter-dotnet 是什么?
此 Skill 使用 Azure.ResourceManager.ApiCenter 管理 API inventory:服务、workspace、API、版本、规范定义、部署环境和 metadata schema。它用于登记和治理 API 资产,并不会部署 API gateway 或验证后端运行。
中文说明由本站依据来源整理;英文原文保留在页面下方。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
azure-mgmt-apicenter-dotnet,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 azure-mgmt-apicenter-dotnet
请在 Codex 的当前工作环境中安装并检查 azure-mgmt-apicenter-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-apicenter-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 azure-mgmt-apicenter-dotnet
请在 Claude Code 的当前工作环境中安装并检查 azure-mgmt-apicenter-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-apicenter-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 azure-mgmt-apicenter-dotnet
请在 Cursor Agent 的当前工作环境中安装并检查 azure-mgmt-apicenter-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-apicenter-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 azure-mgmt-apicenter-dotnet
请在 当前 Agent 的当前工作环境中安装并检查 azure-mgmt-apicenter-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-apicenter-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 安装 Azure.ResourceManager.ApiCenter、Azure.Identity;准备 subscription、resource group、API Center service 名称和有管理权限的身份。
- 确定要导入的 OpenAPI/GraphQL 规范、版本和实际部署环境信息。
- 对 ARM CreateOrUpdate 等写操作先确认目标资源和命名;API Center service 创建还涉及 Azure 资源与成本评估。
实际使用顺序
- 先列出现有 service、workspace、API、版本和环境,避免用重复名覆盖目录信息。
- 按 workspace→API→version→definition 的层级登记资源,导入经过校验的规范文件。
- 在 workspace 登记环境及开发者入口,再创建 deployment 并引用确切 definition/environment resource IDs。
- 用 metadata schema 统一团队、数据分类等治理字段,定期更新 lifecycle stage 和运行地址。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
请按 azure-mgmt-apicenter-dotnet 给我的 OpenAPI 文件设计一份只读登记检查:列出导入前应核对的 API 名、语义版本、workspace、服务环境和部署地址,不调用Azure或创建资源。得到登记前核对清单;API Center 中未新增资产。
使用条件与边界
- 登记 deployment 只表示目录关联信息,不代表真实后端已经部署或健康。
- 导入规范会影响目录展示和分析;先检查规范内容中是否包含私有地址、示例密钥或不应公开的字段。
- 服务/定义的 createOrUpdate 会写入 ARM 资源;除本次明确目标外勿运行删除或覆盖操作。
常见问题
API Center 会自动发布我的 API 吗?
不会。此 SDK 管理 API 目录和部署元数据,实际网关/后端由其他运行平台管理。
如何关联生产 endpoint?
先登记 production environment,再登记 deployment,并通过 resource ID 指向确定的 API definition 和环境;确认 runtime URI 是真实值。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API inventory", "API governance", "API versioning", "API catalog", "API discovery".
查看源文件章节 / Source sections
- 原文:Azure.ResourceManager.ApiCenter (.NET)
- 安装 / Installation
- 原文:Environment Variables
- 原文:Authentication
- 原文:Resource Hierarchy
- 原文:Core Workflows
- 原文:1. Create API Center Service
- 原文:2. Create Workspace
- 原文:3. Create API
- 原文:4. Create API Version
- 原文:5. Create API Definition (Upload OpenAPI Spec)
- 原文:6. Export API Specification
- 原文:7. Create Environment
- 原文:8. Create Deployment
- 原文:9. Create Metadata Schema
- 原文:10. List and Search APIs
- 原文:Key Types Reference
- 原文:Best Practices
- 原文:Error Handling
- 原文:Related SDKs
- 原文:Reference Links
原文:Azure.ResourceManager.ApiCenter (.NET)
Centralized API inventory and governance SDK for managing APIs across your organization.
安装 / Installation
```bash dotnet add package Azure.ResourceManager.ApiCenter dotnet add package Azure.Identity ``` **Current Version**: v1.0.0 (GA) **API Version**: 2024-03-01
原文:Environment Variables
```bash AZURE_SUBSCRIPTION_ID=<your-subscription-id> # Required: Azure subscription ID AZURE_RESOURCE_GROUP=<your-resource-group> # Required: resource group name AZURE_APICENTER_SERVICE_NAME=<your-apicenter-service> # Required: API Center service name AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production ```
原文:Authentication
```csharp using Azure.Identity; using Azure.ResourceManager; using Azure.ResourceManager.ApiCenter; // Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential> var credential = new DefaultAzureCredential( DefaultAzureCredential.DefaultEnvironmentVariableName ); // Or use a specific credential directly in production: // See https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes // var credential = new ManagedIdentityCredential(); ArmClient client = new ArmClient(credential); ```
原文:Resource Hierarchy
``` Subscription └── ResourceGroup └── ApiCenterService # API inventory service ├── Workspace # Logical grouping of APIs │ ├── Api # API definition │ │ └── ApiVersion # Version of the API │ │ └── ApiDefinition # OpenAPI/GraphQL/etc specification │ ├── Environment # Deployment target (dev/staging/prod) │ └── Deployment # API deployed to environment └── MetadataSchema # Custom metadata definitions ```
原文:1. Create API Center Service
```csharp using Azure.ResourceManager.ApiCenter; using Azure.ResourceManager.ApiCenter.Models; ResourceGroupResource resourceGroup = await client .GetDefaultSubscriptionAsync() .Result .GetResourceGroupAsync("my-resource-group"); ApiCenterServiceCollection services = resourceGroup.GetApiCenterServices(); ApiCenterServiceData data = new ApiCenterServiceData(AzureLocation.EastUS) { Identity = new ManagedServiceIdentity(ManagedServiceIdentityType.SystemAssigned) }; ArmOperation<ApiCenterServiceResource> operation = await services .CreateOrUpdateAsync(WaitUntil.Completed, "my-api-center", data); ApiCenterServiceResource service = operation.Value; ```
文件 SHA256:e902c513aee8662f55c2d3d36b6e38da6dc174198942858e95980c2173635b06
仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。
Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API inventory", "API governance", "API versioning", "API catalog", "API discovery".
历史收录数据
| 来源仓库 | microsoft/skills |
|---|---|
| Skill源路径 | .github/plugins/azure-sdk-dotnet/skills/azure-mgmt-apicenter-dotnet/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
