azure - 如何通过 C# 创建 Azure API 管理实例?
问题描述
我一直在使用 Microsoft.Azure.Management.Fluent 包来创建一个工具来构建我的环境并进行一些额外的设置。现在,我需要添加一个 API 管理实例。我在 Fluent SDK 中看不到任何与 API 管理相关的内容。我假设它没有 SDK 包装器,我只需要自己调用 REST。我在找向导。
解决方案
目前,API Management
在Fluent api
. 这是一个关于此的问题。
相反,还有另一个包Microsoft.Azure.Management.ApiManagement 6.0.0-preview,您可以使用它来创建API Management instance
. 如下代码:
// you should provide the real credentialhere.
ApiManagementClient client = new ApiManagementClient(the_credential);
//provide the neccesary parameters to create the APIM instance.
client.ApiManagementService.CreateOrUpdate(the_parameters);
另一种创建API Management
方法是使用此 api:Api Management Service - Create Or Update。您可以阅读 api 文档以了解其用法和示例。
推荐阅读
- postgresql - 将表 postgresql 的一部分移动到另一个数据库
- mysql - SQL 临时表问题
- deno - 如何使用 deno 返回 html 或 json?
- java - MongoRepository CRUD 操作的重试连接相关异常
- android - 如何在 Flutter 中编辑屏幕并向后移动?
- f#-giraffe - 如何添加属性进行记录?
- kdb - 构建分段字典 OS 报告:不是目录
- c - 超时无法从 /dev/parport 读取
- ios - 如何检测 IPA Patcher?
- oracle - [42000][904] ORA-00904: : invalid identifier Position: 128 when creating table