Azure API Center Management SDK for Python
Gerenciar Azure API Center com Python SDK
O Azure API Center fornece um repositório centralizado para descoberta e gerenciamento de APIs em toda a organização. Esta habilidade permite que assistentes de IA interajam com o Azure API Center usando o SDK Python oficial, permitindo que desenvolvedores automatizem o gerenciamento de inventário de APIs, governança e operações de ciclo de vida.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "Azure API Center Management SDK for Python". How do I create a new API in Azure API Center?
النتيجة المتوقعة:
To create a new API in Azure API Center using the Python SDK:
1. First, authenticate using DefaultAzureCredential or ServicePrincipalCredential
2. Initialize the ApiCenterClient
3. Use the apis.create_or_update() method
Example:
```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.apicenter import ApiCenterClient
credential = DefaultAzureCredential()
client = ApiCenterClient(credential, subscription_id)
client.apis.create_or_update(
resource_group_name='my-rg',
service_name='my-api-center',
workspace_name='default',
api_name='my-new-api',
api={'properties': {'title': 'My API', 'description': 'API description'}}
)
```
استخدام "Azure API Center Management SDK for Python". What are the required permissions to manage APIs?
النتيجة المتوقعة:
To manage APIs in Azure API Center, you need one of these roles at the appropriate scope:
- API Center API Manager: Full management access
- API Center Service Contributor: Create and update APIs
- API Center Reader: Read-only access
- Custom role with Microsoft.ApiCenter/*/permissions
The service principal or user identity must also have access to the Azure subscription containing the API Center.
التدقيق الأمني
آمنThis is a prompt-only skill providing documentation and guidance for using the Azure API Center Management SDK for Python. Static analysis scanned 0 files (0 lines) and detected 0 potential security issues. The skill contains no executable code, scripts, network calls, filesystem access, or external command invocations. Risk score is 0/100. This is a safe, documentation-focused skill for AI assistants to help users interact with Azure API Center.
درجة الجودة
ماذا يمكنك بناءه
Gerar código de inicialização do SDK
Criar código Python para autenticar e inicializar o cliente Azure API Center para uma assinatura e grupo de recursos específico.
Automatizar operações de inventário de APIs
Gerar scripts para criar em massa, atualizar ou migrar definições de API em múltiplos workspaces ou ambientes.
Documentar políticas de governança de APIs
Criar documentação e exemplos de código para aplicar padrões de API, estratégias de versionamento e fluxos de trabalho de gerenciamento de ciclo de vida.
جرّب هذه الموجهات
Mostre-me como autenticar e criar um cliente para Azure API Center usando o SDK Python com credenciais de entidade de serviço.
Escreva código Python para listar todas as APIs registradas em um workspace específico, incluindo suas versões e especificações.
Gerar código para adicionar uma nova versão de API com especificação OpenAPI 3.0 a uma API existente no Azure API Center.
Mostre como criar e gerenciar implantações de API em diferentes ambientes usando o SDK do Azure API Center.
أفضل الممارسات
- Use identidades gerenciadas ou entidades de serviço para autenticação em produção em vez de armazenar credenciais no código
- Implemente políticas de repetição com backoff exponencial ao chamar métodos do SDK Azure para tratar falhas transitórias
- Organize APIs por workspace para separar catálogos de APIs de desenvolvimento, staging e produção
تجنب
- Armazenar credenciais do Azure em código-fonte ou arquivos de configuração - use variáveis de ambiente ou Azure Key Vault
- Ignorar versionamento de API - sempre crie novas versões em vez de sobrescrever as existentes para manter compatibilidade
- Conceder permissões muito amplas ao cliente SDK - siga o princípio do privilégio mínimo para roles RBAC
الأسئلة المتكررة
What authentication methods does this SDK support?
Can this skill help with migrating APIs from other platforms?
Does this skill support Azure API Center v2?
How do I handle rate limiting with the API Center SDK?
Can I use this skill offline?
What Azure regions support API Center?
تفاصيل المطور
المؤلف
sickn33الترخيص
MIT
المستودع
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-mgmt-apicenter-pyمرجع
main
بنية الملفات
📄 SKILL.md