[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BYY5WJ7A66SYB2Z7QJS1SW":3,"skill-same:01M7BYY5WJ7A66SYB2Z7QJS1SW":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7BYY5WJ7A66SYB2Z7QJS1SW","azure-mgmt-apicenter-dotnet",null,"Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills-claude\u002Fskills\u002Fazure-mgmt-apicenter-dotnet\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: azure-mgmt-apicenter-dotnet\ndescription: Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery.\nrisk: unknown\nsource: community\ndate_added: '2026-02-27'\n---\n\n# Azure.ResourceManager.ApiCenter (.NET)\n\nCentralized API inventory and governance SDK for managing APIs across your organization.\n\n## Installation\n\n```bash\ndotnet add package Azure.ResourceManager.ApiCenter\ndotnet add package Azure.Identity\n```\n\n**Current Version**: v1.0.0 (GA)  \n**API Version**: 2024-03-01\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>\nAZURE_APICENTER_SERVICE_NAME=\u003Cyour-apicenter-service>\n```\n\n## Authentication\n\n```csharp\nusing Azure.Identity;\nusing Azure.ResourceManager;\nusing Azure.ResourceManager.ApiCenter;\n\nArmClient client = new ArmClient(new DefaultAzureCredential());\n```\n\n## Resource Hierarchy\n\n```\nSubscription\n└── ResourceGroup\n    └── ApiCenterService                    # API inventory service\n        ├── Workspace                       # Logical grouping of APIs\n        │   ├── Api                         # API definition\n        │   │   └── ApiVersion              # Version of the API\n        │   │       └── ApiDefinition       # OpenAPI\u002FGraphQL\u002Fetc specification\n        │   ├── Environment                 # Deployment target (dev\u002Fstaging\u002Fprod)\n        │   └── Deployment                  # API deployed to environment\n        └── MetadataSchema                  # Custom metadata definitions\n```\n\n## Core Workflows\n\n### 1. Create API Center Service\n\n```csharp\nusing Azure.ResourceManager.ApiCenter;\nusing Azure.ResourceManager.ApiCenter.Models;\n\nResourceGroupResource resourceGroup = await client\n    .GetDefaultSubscriptionAsync()\n    .Result\n    .GetResourceGroupAsync(\"my-resource-group\");\n\nApiCenterServiceCollection services = resourceGroup.GetApiCenterServices();\n\nApiCenterServiceData data = new ApiCenterServiceData(AzureLocation.EastUS)\n{\n    Identity = new ManagedServiceIdentity(ManagedServiceIdentityType.SystemAssigned)\n};\n\nArmOperation\u003CApiCenterServiceResource> operation = await services\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"my-api-center\", data);\n\nApiCenterServiceResource service = operation.Value;\n```\n\n### 2. Create Workspace\n\n```csharp\nApiCenterWorkspaceCollection workspaces = service.GetApiCenterWorkspaces();\n\nApiCenterWorkspaceData workspaceData = new ApiCenterWorkspaceData\n{\n    Title = \"Engineering APIs\",\n    Description = \"APIs owned by the engineering team\"\n};\n\nArmOperation\u003CApiCenterWorkspaceResource> operation = await workspaces\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"engineering\", workspaceData);\n\nApiCenterWorkspaceResource workspace = operation.Value;\n```\n\n### 3. Create API\n\n```csharp\nApiCenterApiCollection apis = workspace.GetApiCenterApis();\n\nApiCenterApiData apiData = new ApiCenterApiData\n{\n    Title = \"Orders API\",\n    Description = \"API for managing customer orders\",\n    Kind = ApiKind.Rest,\n    LifecycleStage = ApiLifecycleStage.Production,\n    TermsOfService = new ApiTermsOfService\n    {\n        Uri = new Uri(\"https:\u002F\u002Fexample.com\u002Fterms\")\n    },\n    ExternalDocumentation = \n    {\n        new ApiExternalDocumentation\n        {\n            Title = \"Documentation\",\n            Uri = new Uri(\"https:\u002F\u002Fdocs.example.com\u002Forders\")\n        }\n    },\n    Contacts =\n    {\n        new ApiContact\n        {\n            Name = \"API Support\",\n            Email = \"api-support@example.com\"\n        }\n    }\n};\n\n\u002F\u002F Add custom metadata\napiData.CustomProperties = BinaryData.FromObjectAsJson(new\n{\n    team = \"orders-team\",\n    costCenter = \"CC-1234\"\n});\n\nArmOperation\u003CApiCenterApiResource> operation = await apis\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"orders-api\", apiData);\n\nApiCenterApiResource api = operation.Value;\n```\n\n### 4. Create API Version\n\n```csharp\nApiCenterApiVersionCollection versions = api.GetApiCenterApiVersions();\n\nApiCenterApiVersionData versionData = new ApiCenterApiVersionData\n{\n    Title = \"v1.0.0\",\n    LifecycleStage = ApiLifecycleStage.Production\n};\n\nArmOperation\u003CApiCenterApiVersionResource> operation = await versions\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"v1-0-0\", versionData);\n\nApiCenterApiVersionResource version = operation.Value;\n```\n\n### 5. Create API Definition (Upload OpenAPI Spec)\n\n```csharp\nApiCenterApiDefinitionCollection definitions = version.GetApiCenterApiDefinitions();\n\nApiCenterApiDefinitionData definitionData = new ApiCenterApiDefinitionData\n{\n    Title = \"OpenAPI Specification\",\n    Description = \"Orders API OpenAPI 3.0 definition\"\n};\n\nArmOperation\u003CApiCenterApiDefinitionResource> operation = await definitions\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"openapi\", definitionData);\n\nApiCenterApiDefinitionResource definition = operation.Value;\n\n\u002F\u002F Import specification\nstring openApiSpec = await File.ReadAllTextAsync(\"orders-api.yaml\");\n\nApiSpecImportContent importContent = new ApiSpecImportContent\n{\n    Format = ApiSpecImportSourceFormat.Inline,\n    Value = openApiSpec,\n    Specification = new ApiSpecImportSpecification\n    {\n        Name = \"openapi\",\n        Version = \"3.0.1\"\n    }\n};\n\nawait definition.ImportSpecificationAsync(WaitUntil.Completed, importContent);\n```\n\n### 6. Export API Specification\n\n```csharp\nApiCenterApiDefinitionResource definition = await client\n    .GetApiCenterApiDefinitionResource(definitionResourceId)\n    .GetAsync();\n\nArmOperation\u003CApiSpecExportResult> operation = await definition\n    .ExportSpecificationAsync(WaitUntil.Completed);\n\nApiSpecExportResult result = operation.Value;\n\n\u002F\u002F result.Format - e.g., \"inline\"\n\u002F\u002F result.Value - the specification content\n```\n\n### 7. Create Environment\n\n```csharp\nApiCenterEnvironmentCollection environments = workspace.GetApiCenterEnvironments();\n\nApiCenterEnvironmentData envData = new ApiCenterEnvironmentData\n{\n    Title = \"Production\",\n    Description = \"Production environment\",\n    Kind = ApiCenterEnvironmentKind.Production,\n    Server = new ApiCenterEnvironmentServer\n    {\n        ManagementPortalUris = { new Uri(\"https:\u002F\u002Fportal.azure.com\") }\n    },\n    Onboarding = new EnvironmentOnboardingModel\n    {\n        Instructions = \"Contact platform team for access\",\n        DeveloperPortalUris = { new Uri(\"https:\u002F\u002Fdeveloper.example.com\") }\n    }\n};\n\nArmOperation\u003CApiCenterEnvironmentResource> operation = await environments\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"production\", envData);\n```\n\n### 8. Create Deployment\n\n```csharp\nApiCenterDeploymentCollection deployments = workspace.GetApiCenterDeployments();\n\n\u002F\u002F Get environment resource ID\nResourceIdentifier envResourceId = ApiCenterEnvironmentResource.CreateResourceIdentifier(\n    subscriptionId, resourceGroupName, serviceName, workspaceName, \"production\");\n\n\u002F\u002F Get API definition resource ID\nResourceIdentifier definitionResourceId = ApiCenterApiDefinitionResource.CreateResourceIdentifier(\n    subscriptionId, resourceGroupName, serviceName, workspaceName, \n    \"orders-api\", \"v1-0-0\", \"openapi\");\n\nApiCenterDeploymentData deploymentData = new ApiCenterDeploymentData\n{\n    Title = \"Orders API - Production\",\n    Description = \"Production deployment of Orders API v1.0.0\",\n    EnvironmentId = envResourceId,\n    DefinitionId = definitionResourceId,\n    State = ApiCenterDeploymentState.Active,\n    Server = new ApiCenterDeploymentServer\n    {\n        RuntimeUris = { new Uri(\"https:\u002F\u002Fapi.example.com\u002Forders\") }\n    }\n};\n\nArmOperation\u003CApiCenterDeploymentResource> operation = await deployments\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"orders-api-prod\", deploymentData);\n```\n\n### 9. Create Metadata Schema\n\n```csharp\nApiCenterMetadataSchemaCollection schemas = service.GetApiCenterMetadataSchemas();\n\nstring jsonSchema = \"\"\"\n{\n    \"type\": \"object\",\n    \"properties\": {\n        \"team\": {\n            \"type\": \"string\",\n            \"title\": \"Owning Team\"\n        },\n        \"costCenter\": {\n            \"type\": \"string\",\n            \"title\": \"Cost Center\"\n        },\n        \"dataClassification\": {\n            \"type\": \"string\",\n            \"enum\": [\"public\", \"internal\", \"confidential\"],\n            \"title\": \"Data Classification\"\n        }\n    },\n    \"required\": [\"team\"]\n}\n\"\"\";\n\nApiCenterMetadataSchemaData schemaData = new ApiCenterMetadataSchemaData\n{\n    Schema = jsonSchema,\n    AssignedTo =\n    {\n        new MetadataAssignment\n        {\n            Entity = MetadataAssignmentEntity.Api,\n            Required = true\n        }\n    }\n};\n\nArmOperation\u003CApiCenterMetadataSchemaResource> operation = await schemas\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"api-metadata\", schemaData);\n```\n\n### 10. List and Search APIs\n\n```csharp\n\u002F\u002F List all APIs in a workspace\nApiCenterWorkspaceResource workspace = await client\n    .GetApiCenterWorkspaceResource(workspaceResourceId)\n    .GetAsync();\n\nawait foreach (ApiCenterApiResource api in workspace.GetApiCenterApis())\n{\n    Console.WriteLine($\"API: {api.Data.Title}\");\n    Console.WriteLine($\"  Kind: {api.Data.Kind}\");\n    Console.WriteLine($\"  Stage: {api.Data.LifecycleStage}\");\n    \n    \u002F\u002F List versions\n    await foreach (ApiCenterApiVersionResource version in api.GetApiCenterApiVersions())\n    {\n        Console.WriteLine($\"  Version: {version.Data.Title}\");\n    }\n}\n\n\u002F\u002F List environments\nawait foreach (ApiCenterEnvironmentResource env in workspace.GetApiCenterEnvironments())\n{\n    Console.WriteLine($\"Environment: {env.Data.Title} ({env.Data.Kind})\");\n}\n\n\u002F\u002F List deployments\nawait foreach (ApiCenterDeploymentResource deployment in workspace.GetApiCenterDeployments())\n{\n    Console.WriteLine($\"Deployment: {deployment.Data.Title}\");\n    Console.WriteLine($\"  State: {deployment.Data.State}\");\n}\n```\n\n## Key Types Reference\n\n| Type | Purpose |\n|------|---------|\n| `ApiCenterServiceResource` | API Center service instance |\n| `ApiCenterWorkspaceResource` | Logical grouping of APIs |\n| `ApiCenterApiResource` | Individual API |\n| `ApiCenterApiVersionResource` | Version of an API |\n| `ApiCenterApiDefinitionResource` | API specification (OpenAPI, etc.) |\n| `ApiCenterEnvironmentResource` | Deployment environment |\n| `ApiCenterDeploymentResource` | API deployment to environment |\n| `ApiCenterMetadataSchemaResource` | Custom metadata schema |\n| `ApiKind` | rest, graphql, grpc, soap, webhook, websocket, mcp |\n| `ApiLifecycleStage` | design, development, testing, preview, production, deprecated, retired |\n| `ApiCenterEnvironmentKind` | development, testing, staging, production |\n| `ApiCenterDeploymentState` | active, inactive |\n\n## Best Practices\n\n1. **Organize with workspaces** — Group APIs by team, domain, or product\n2. **Use metadata schemas** — Define custom properties for governance\n3. **Track lifecycle stages** — Keep API status current (design → production → deprecated)\n4. **Document environments** — Include onboarding instructions and portal URIs\n5. **Version consistently** — Use semantic versioning for API versions\n6. **Import specifications** — Upload OpenAPI\u002FGraphQL specs for discovery\n7. **Link deployments** — Connect APIs to their runtime environments\n8. **Use managed identity** — Enable SystemAssigned identity for secure integrations\n\n## Error Handling\n\n```csharp\nusing Azure;\n\ntry\n{\n    ArmOperation\u003CApiCenterApiResource> operation = await apis\n        .CreateOrUpdateAsync(WaitUntil.Completed, \"my-api\", apiData);\n}\ncatch (RequestFailedException ex) when (ex.Status == 409)\n{\n    Console.WriteLine(\"API already exists with conflicting configuration\");\n}\ncatch (RequestFailedException ex) when (ex.Status == 400)\n{\n    Console.WriteLine($\"Invalid request: {ex.Message}\");\n}\ncatch (RequestFailedException ex)\n{\n    Console.WriteLine($\"Azure error: {ex.Status} - {ex.Message}\");\n}\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `Azure.ResourceManager.ApiCenter` | API Center management (this SDK) | `dotnet add package Azure.ResourceManager.ApiCenter` |\n| `Azure.ResourceManager.ApiManagement` | API gateway and policies | `dotnet add package Azure.ResourceManager.ApiManagement` |\n\n## Reference Links\n\n| Resource | URL |\n|----------|-----|\n| NuGet Package | https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FAzure.ResourceManager.ApiCenter |\n| API Reference | https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fazure.resourcemanager.apicenter |\n| Product Documentation | https:\u002F\u002Flearn.microsoft.com\u002Fazure\u002Fapi-center\u002F |\n| GitHub Source | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-net\u002Ftree\u002Fmain\u002Fsdk\u002Fapicenter\u002FAzure.ResourceManager.ApiCenter |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# Azure.ResourceManager.ApiCenter (.NET)\n\nCentralized API inventory and governance SDK for managing APIs across your organization.\n\n## Installation\n\n```bash\ndotnet add package Azure.ResourceManager.ApiCenter\ndotnet add package Azure.Identity\n```\n\n**Current Version**: v1.0.0 (GA)  \n**API Version**: 2024-03-01\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>\nAZURE_APICENTER_SERVICE_NAME=\u003Cyour-apicenter-service>\n```\n\n## Authentication\n\n```csharp\nusing Azure.Identity;\nusing Azure.ResourceManager;\nusing Azure.ResourceManager.ApiCenter;\n\nArmClient client = new ArmClient(new DefaultAzureCredential());\n```\n\n## Resource Hierarchy\n\n```\nSubscription\n└── ResourceGroup\n    └── ApiCenterService                    # API inventory service\n        ├── Workspace                       # Logical grouping of APIs\n        │   ├── Api                         # API definition\n        │   │   └── ApiVersion              # Version of the API\n        │   │       └── ApiDefinition       # OpenAPI\u002FGraphQL\u002Fetc specification\n        │   ├── Environment                 # Deployment target (dev\u002Fstaging\u002Fprod)\n        │   └── Deployment                  # API deployed to environment\n        └── MetadataSchema                  # Custom metadata definitions\n```\n\n## Core Workflows\n\n### 1. Create API Center Service\n\n```csharp\nusing Azure.ResourceManager.ApiCenter;\nusing Azure.ResourceManager.ApiCenter.Models;\n\nResourceGroupResource resourceGroup = await client\n    .GetDefaultSubscriptionAsync()\n    .Result\n    .GetResourceGroupAsync(\"my-resource-group\");\n\nApiCenterServiceCollection services = resourceGroup.GetApiCenterServices();\n\nApiCenterServiceData data = new ApiCenterServiceData(AzureLocation.EastUS)\n{\n    Identity = new ManagedServiceIdentity(ManagedServiceIdentityType.SystemAssigned)\n};\n\nArmOperation\u003CApiCenterServiceResource> operation = await services\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"my-api-center\", data);\n\nApiCenterServiceResource service = operation.Value;\n```\n\n### 2. Create Workspace\n\n```csharp\nApiCenterWorkspaceCollection workspaces = service.GetApiCenterWorkspaces();\n\nApiCenterWorkspaceData workspaceData = new ApiCenterWorkspaceData\n{\n    Title = \"Engineering APIs\",\n    Description = \"APIs owned by the engineering team\"\n};\n\nArmOperation\u003CApiCenterWorkspaceResource> operation = await workspaces\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"engineering\", workspaceData);\n\nApiCenterWorkspaceResource workspace = operation.Value;\n```\n\n### 3. Create API\n\n```csharp\nApiCenterApiCollection apis = workspace.GetApiCenterApis();\n\nApiCenterApiData apiData = new ApiCenterApiData\n{\n    Title = \"Orders API\",\n    Description = \"API for managing customer orders\",\n    Kind = ApiKind.Rest,\n    LifecycleStage = ApiLifecycleStage.Production,\n    TermsOfService = new ApiTermsOfService\n    {\n        Uri = new Uri(\"https:\u002F\u002Fexample.com\u002Fterms\")\n    },\n    ExternalDocumentation = \n    {\n        new ApiExternalDocumentation\n        {\n            Title = \"Documentation\",\n            Uri = new Uri(\"https:\u002F\u002Fdocs.example.com\u002Forders\")\n        }\n    },\n    Contacts =\n    {\n        new ApiContact\n        {\n            Name = \"API Support\",\n            Email = \"api-support@example.com\"\n        }\n    }\n};\n\n\u002F\u002F Add custom metadata\napiData.CustomProperties = BinaryData.FromObjectAsJson(new\n{\n    team = \"orders-team\",\n    costCenter = \"CC-1234\"\n});\n\nArmOperation\u003CApiCenterApiResource> operation = await apis\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"orders-api\", apiData);\n\nApiCenterApiResource api = operation.Value;\n```\n\n### 4. Create API Version\n\n```csharp\nApiCenterApiVersionCollection versions = api.GetApiCenterApiVersions();\n\nApiCenterApiVersionData versionData = new ApiCenterApiVersionData\n{\n    Title = \"v1.0.0\",\n    LifecycleStage = ApiLifecycleStage.Production\n};\n\nArmOperation\u003CApiCenterApiVersionResource> operation = await versions\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"v1-0-0\", versionData);\n\nApiCenterApiVersionResource version = operation.Value;\n```\n\n### 5. Create API Definition (Upload OpenAPI Spec)\n\n```csharp\nApiCenterApiDefinitionCollection definitions = version.GetApiCenterApiDefinitions();\n\nApiCenterApiDefinitionData definitionData = new ApiCenterApiDefinitionData\n{\n    Title = \"OpenAPI Specification\",\n    Description = \"Orders API OpenAPI 3.0 definition\"\n};\n\nArmOperation\u003CApiCenterApiDefinitionResource> operation = await definitions\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"openapi\", definitionData);\n\nApiCenterApiDefinitionResource definition = operation.Value;\n\n\u002F\u002F Import specification\nstring openApiSpec = await File.ReadAllTextAsync(\"orders-api.yaml\");\n\nApiSpecImportContent importContent = new ApiSpecImportContent\n{\n    Format = ApiSpecImportSourceFormat.Inline,\n    Value = openApiSpec,\n    Specification = new ApiSpecImportSpecification\n    {\n        Name = \"openapi\",\n        Version = \"3.0.1\"\n    }\n};\n\nawait definition.ImportSpecificationAsync(WaitUntil.Completed, importContent);\n```\n\n### 6. Export API Specification\n\n```csharp\nApiCenterApiDefinitionResource definition = await client\n    .GetApiCenterApiDefinitionResource(definitionResourceId)\n    .GetAsync();\n\nArmOperation\u003CApiSpecExportResult> operation = await definition\n    .ExportSpecificationAsync(WaitUntil.Completed);\n\nApiSpecExportResult result = operation.Value;\n\n\u002F\u002F result.Format - e.g., \"inline\"\n\u002F\u002F result.Value - the specification content\n```\n\n### 7. Create Environment\n\n```csharp\nApiCenterEnvironmentCollection environments = workspace.GetApiCenterEnvironments();\n\nApiCenterEnvironmentData envData = new ApiCenterEnvironmentData\n{\n    Title = \"Production\",\n    Description = \"Production environment\",\n    Kind = ApiCenterEnvironmentKind.Production,\n    Server = new ApiCenterEnvironmentServer\n    {\n        ManagementPortalUris = { new Uri(\"https:\u002F\u002Fportal.azure.com\") }\n    },\n    Onboarding = new EnvironmentOnboardingModel\n    {\n        Instructions = \"Contact platform team for access\",\n        DeveloperPortalUris = { new Uri(\"https:\u002F\u002Fdeveloper.example.com\") }\n    }\n};\n\nArmOperation\u003CApiCenterEnvironmentResource> operation = await environments\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"production\", envData);\n```\n\n### 8. Create Deployment\n\n```csharp\nApiCenterDeploymentCollection deployments = workspace.GetApiCenterDeployments();\n\n\u002F\u002F Get environment resource ID\nResourceIdentifier envResourceId = ApiCenterEnvironmentResource.CreateResourceIdentifier(\n    subscriptionId, resourceGroupName, serviceName, workspaceName, \"production\");\n\n\u002F\u002F Get API definition resource ID\nResourceIdentifier definitionResourceId = ApiCenterApiDefinitionResource.CreateResourceIdentifier(\n    subscriptionId, resourceGroupName, serviceName, workspaceName, \n    \"orders-api\", \"v1-0-0\", \"openapi\");\n\nApiCenterDeploymentData deploymentData = new ApiCenterDeploymentData\n{\n    Title = \"Orders API - Production\",\n    Description = \"Production deployment of Orders API v1.0.0\",\n    EnvironmentId = envResourceId,\n    DefinitionId = definitionResourceId,\n    State = ApiCenterDeploymentState.Active,\n    Server = new ApiCenterDeploymentServer\n    {\n        RuntimeUris = { new Uri(\"https:\u002F\u002Fapi.example.com\u002Forders\") }\n    }\n};\n\nArmOperation\u003CApiCenterDeploymentResource> operation = await deployments\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"orders-api-prod\", deploymentData);\n```\n\n### 9. Create Metadata Schema\n\n```csharp\nApiCenterMetadataSchemaCollection schemas = service.GetApiCenterMetadataSchemas();\n\nstring jsonSchema = \"\"\"\n{\n    \"type\": \"object\",\n    \"properties\": {\n        \"team\": {\n            \"type\": \"string\",\n            \"title\": \"Owning Team\"\n        },\n        \"costCenter\": {\n            \"type\": \"string\",\n            \"title\": \"Cost Center\"\n        },\n        \"dataClassification\": {\n            \"type\": \"string\",\n            \"enum\": [\"public\", \"internal\", \"confidential\"],\n            \"title\": \"Data Classification\"\n        }\n    },\n    \"required\": [\"team\"]\n}\n\"\"\";\n\nApiCenterMetadataSchemaData schemaData = new ApiCenterMetadataSchemaData\n{\n    Schema = jsonSchema,\n    AssignedTo =\n    {\n        new MetadataAssignment\n        {\n            Entity = MetadataAssignmentEntity.Api,\n            Required = true\n        }\n    }\n};\n\nArmOperation\u003CApiCenterMetadataSchemaResource> operation = await schemas\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"api-metadata\", schemaData);\n```\n\n### 10. List and Search APIs\n\n```csharp\n\u002F\u002F List all APIs in a workspace\nApiCenterWorkspaceResource workspace = await client\n    .GetApiCenterWorkspaceResource(workspaceResourceId)\n    .GetAsync();\n\nawait foreach (ApiCenterApiResource api in workspace.GetApiCenterApis())\n{\n    Console.WriteLine($\"API: {api.Data.Title}\");\n    Console.WriteLine($\"  Kind: {api.Data.Kind}\");\n    Console.WriteLine($\"  Stage: {api.Data.LifecycleStage}\");\n    \n    \u002F\u002F List versions\n    await foreach (ApiCenterApiVersionResource version in api.GetApiCenterApiVersions())\n    {\n        Console.WriteLine($\"  Version: {version.Data.Title}\");\n    }\n}\n\n\u002F\u002F List environments\nawait foreach (ApiCenterEnvironmentResource env in workspace.GetApiCenterEnvironments())\n{\n    Console.WriteLine($\"Environment: {env.Data.Title} ({env.Data.Kind})\");\n}\n\n\u002F\u002F List deployments\nawait foreach (ApiCenterDeploymentResource deployment in workspace.GetApiCenterDeployments())\n{\n    Console.WriteLine($\"Deployment: {deployment.Data.Title}\");\n    Console.WriteLine($\"  State: {deployment.Data.State}\");\n}\n```\n\n## Key Types Reference\n\n| Type | Purpose |\n|------|---------|\n| `ApiCenterServiceResource` | API Center service instance |\n| `ApiCenterWorkspaceResource` | Logical grouping of APIs |\n| `ApiCenterApiResource` | Individual API |\n| `ApiCenterApiVersionResource` | Version of an API |\n| `ApiCenterApiDefinitionResource` | API specification (OpenAPI, etc.) |\n| `ApiCenterEnvironmentResource` | Deployment environment |\n| `ApiCenterDeploymentResource` | API deployment to environment |\n| `ApiCenterMetadataSchemaResource` | Custom metadata schema |\n| `ApiKind` | rest, graphql, grpc, soap, webhook, websocket, mcp |\n| `ApiLifecycleStage` | design, development, testing, preview, production, deprecated, retired |\n| `ApiCenterEnvironmentKind` | development, testing, staging, production |\n| `ApiCenterDeploymentState` | active, inactive |\n\n## Best Practices\n\n1. **Organize with workspaces** — Group APIs by team, domain, or product\n2. **Use metadata schemas** — Define custom properties for governance\n3. **Track lifecycle stages** — Keep API status current (design → production → deprecated)\n4. **Document environments** — Include onboarding instructions and portal URIs\n5. **Version consistently** — Use semantic versioning for API versions\n6. **Import specifications** — Upload OpenAPI\u002FGraphQL specs for discovery\n7. **Link deployments** — Connect APIs to their runtime environments\n8. **Use managed identity** — Enable SystemAssigned identity for secure integrations\n\n## Error Handling\n\n```csharp\nusing Azure;\n\ntry\n{\n    ArmOperation\u003CApiCenterApiResource> operation = await apis\n        .CreateOrUpdateAsync(WaitUntil.Completed, \"my-api\", apiData);\n}\ncatch (RequestFailedException ex) when (ex.Status == 409)\n{\n    Console.WriteLine(\"API already exists with conflicting configuration\");\n}\ncatch (RequestFailedException ex) when (ex.Status == 400)\n{\n    Console.WriteLine($\"Invalid request: {ex.Message}\");\n}\ncatch (RequestFailedException ex)\n{\n    Console.WriteLine($\"Azure error: {ex.Status} - {ex.Message}\");\n}\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `Azure.ResourceManager.ApiCenter` | API Center management (this SDK) | `dotnet add package Azure.ResourceManager.ApiCenter` |\n| `Azure.ResourceManager.ApiManagement` | API gateway and policies | `dotnet add package Azure.ResourceManager.ApiManagement` |\n\n## Reference Links\n\n| Resource | URL |\n|----------|-----|\n| NuGet Package | https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FAzure.ResourceManager.ApiCenter |\n| API Reference | https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fazure.resourcemanager.apicenter |\n| Product Documentation | https:\u002F\u002Flearn.microsoft.com\u002Fazure\u002Fapi-center\u002F |\n| GitHub Source | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-net\u002Ftree\u002Fmain\u002Fsdk\u002Fapicenter\u002FAzure.ResourceManager.ApiCenter |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"unknown","community","2026-02-27","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills-claude\u002Fskills\u002Fazure-mgmt-apicenter-dotnet",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-mgmt-apicenter-dotnet",{"tool":42,"command":43},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-mgmt-apicenter-dotnet",{"tool":45,"command":46},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-mgmt-apicenter-dotnet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills-claude\u002Fskills\u002Fazure-mgmt-apicenter-dotnet\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]