[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EXM5FG9WHAD5CQQR400JAV":3,"skill-same:01M6EXM5FG9WHAD5CQQR400JAV":80},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6EXM5FG9WHAD5CQQR400JAV","azure-mgmt-apicenter-dotnet",null,"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\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-mgmt-apicenter-dotnet\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"dotnet","azure","azure mgmt apicenter dotnet","with","sdk","azure api center","inventory management","triggers","api versioning","workspaces","deployments","use","catalog","management","versioning","discovery","api","inventory","services","governance","2026-11-10 10:12:30",false,"---\nname: azure-mgmt-apicenter-dotnet\ndescription: |\n  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\".\npackage: Azure.ResourceManager.ApiCenter\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","# 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",{"name":5,"package":49,"description":50},"Azure.ResourceManager.ApiCenter","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\".\n","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-mgmt-apicenter-dotnet",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill azure-mgmt-apicenter-dotnet",{"tool":66,"command":67},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill azure-mgmt-apicenter-dotnet",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill azure-mgmt-apicenter-dotnet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-mgmt-apicenter-dotnet\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"skill-report.json","REFERENCE","参考文档",8678,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-mgmt-apicenter-dotnet\u002Fskill-report.json",[81,95,105,113,119,126],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":91,"publishedAt":44},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[86],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[92,93,94],"model","model hierarchy","model hierarchy skill",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":101,"publishedAt":44},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[100],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},[102,103,104],"MCP","zoom","zoom mcp",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":44},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[28,111,112,103],"zoom apps sdk","apps",{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":44},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[115],{"skillNo":120,"name":121,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":125,"publishedAt":44},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[124],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},[121],{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":44},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[128]]