问题标签 [api-management]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1403 浏览

swagger - MuleSoft 是否支持 OpenAPI 3.xx 规范?

太混乱了,谁能帮我解惑?到目前为止,MuleSoft 是否支持 OpenAPI 3.xx 规范?还有这个 RAML 1.0 规范是什么?在处理 MuleSoft 时,我们真的关心 RAML 规范吗?

0 投票
1 回答
717 浏览

api - 获取 405- API Connect 管理中不允许的方法

我面临一个错误的问题 -

场景是,在 API 门户中订阅 API 之前,您需要获得 API 管理 (APIM) 即组织所有者的订阅批准。但是在 APIM 的审批选项卡中,在申请审批时我收到此错误 -

405 - 错误

请问可以解决吗?

0 投票
1 回答
54 浏览

azure-api-management - API Management Premium - 模拟 DR 故障转移

我想知道如何模拟 Azure 区域故障或其他一些 APIM 相关组件故障来测试 APIM Premium 是否会在主要区域故障期间自动将网关路由到次要区域?我已经测试过这是从位置的角度来看的,即从次要区域发出的请求肯定会通过次要网关,但不确定如何模拟故障转移......

非常感谢

0 投票
0 回答
152 浏览

android - 使用 API 密钥限制 Google Cloud Endpoints

我正在使用适用于 java 的 Google Cloud Endpoints v2。我创建端点方法并通过 API 对其进行限制。在此之后,我从 GCP 控制台创建 API。

我正在使用客户端库从 android 调用端点方法。这是我调用任何方法的方式。

它总是给和错误。

来自此 Android 客户端应用程序的 403 请求被阻止。

似乎我的 sha-1 或包名中存在某种问题,我仔细检查了一切都很好。

我使用它创建 sha-1keytool -list -v -keystore "Key store path" -alias "Key Name"并设置为 API,如图所示。

然后我还尝试通过 android studio 获取 sha-1Gradle->AppName->android->signingReport它给了我不同的 sha-1 我也添加了它并尝试但仍然是同样的错误。

我添加这些并等待超过 2 小时仍然是同样的错误。

我做错了什么。?

在此处输入图像描述

0 投票
1 回答
2813 浏览

azure - 查询 Azure APIM 诊断日志

我已经为发送到日志分析的 APIM 启用了诊断日志。 场景 所有传入服务器的请求都有RequestTracking_Id标头。所有后端服务都使用RequestTracking_Id日志中请求的标头来跟踪请求。但是从 APIM 日志中,我无法提取此标头进行查询。

有什么方法可以在 APIM 诊断日志中获取传入请求的标头信息?

询问:

查询时可用的列是:

TenantId SourceSystem MG ManagementGroupName TimeGenerated Computer activityId_g requestResourceType_s requestResourceId_s collectionRid_s statusCode_s duration_s clientIpAddress_s requestCharge_s requestLength_s responseLength_s resourceTokenUserRid_s region_s partitionId_g error_number_d Severity user_defined_b state_d exec_type_d wait_category_s total_query_wait_time_ms_d max_query_wait_time_ms_d is_parameterizable_s statement_type_s statement_key_hash_s query_param_type_d interval_start_time_d interval_end_time_d logical_io_writes_d max_logical_io_writes_d physical_io_reads_d max_physical_io_reads_d logical_io_reads_d max_logical_io_reads_d execution_type_d count_executions_d cpu_time_d max_cpu_time_d dop_d max_dop_d rowcount_d max_rowcount_d query_max_used_memory_dmax_query_max_used_memory_d duration_d max_duration_d num_physical_io_reads_d max_num_physical_io_reads_d log_bytes_used_d max_log_bytes_used_d query_id_d query_hash_s plan_id_d query_plan_hash_s statement_sql_handle_s LogicalServerName_s ElasticPoolName_s DatabaseName_s start_utc_date_t end_utc_date_t wait_type_s delta_max_wait_time_ms_d delta_signal_wait_time_ms_d delta_wait_time_ms_d delta_waiting_tasks_count_d keyProperties_curve_s keyProperties_operations_s keyProperties_attributes_enabled_b algorithm_s identity_claim_xms_mirid_s lastError_transportErrorCode_d subnetId_s backendMethod_s backendUrl_s backendResponseCode_d backendTime_d requestSize_d productId_s userId_s apimSubscriptionId_s backendProtocol_s secretProperties_attributes_enabled_b clientIp_s clientPort_s ruleSetType_sruleSetVersion_s ruleId_s Message action_s site_s details_message_s details_data_s details_file_s details_line_s hostname_s apiId_s operationId_s apiRevision_s clientIP_s clientPort_d httpMethod_s requestQuery_s userAgent_s httpStatus_d httpVersion_s receivedBytes_d sentBytes_d timeTaken_d sslEnabled_s host_s Level_d isRequestSuccess_b location_s lastError_source_s lastError_reason_s lastError_message_s lastError_section_s method_s url_s responseCode_d responseSize_d cache_s clientProtocol_s lastError_elapsed_d clientTime_d matchedConnections_d systemId_g vnetResourceGuid_g subnetPrefix_s macAddress_s primaryIPv4Address_s ruleName_s direction_s type_s instanceId_s healthHostCount_d unHealthyHostCount_d requestCount_d latency_d failedRequestCount_d throughput_dpriority_d conditions_protocols_s conditions_sourcePortRange_s conditions_destinationPortRange_s conditions_destinationIP_s conditions_sourceIP_s conditions_None_s trustedService_s CorrelationId identity_claim_http_schemas_microsoft_com_identity_claims_scope_s isAccessPolicyMatch_b certificateProperties_attributes_enabled_b certificatePolicyProperties_certificateProperties_subject_s certificatePolicyProperties_certificateProperties_validityInMonths_d certificatePolicyProperties_keyProperties_type_s certificatePolicyProperties_keyProperties_size_d certificatePolicyProperties_keyProperties_reuse_b certificatePolicyProperties_keyProperties_export_b certificatePolicyProperties_certificateIssuerProperties_name_s certificateEnrollmentProperties_id_s certificateEnrollmentProperties_certificateProperties_subject_scertificateEnrollmentProperties_certificateProperties_sha1_s certificateEnrollmentProperties_certificateProperties_sha256_s certificateEnrollmentProperties_certificateProperties_nbf_t certificateEnrollmentProperties_certificateProperties_exp_t certificateEnrollmentProperties_keyProperties_size_d certificateEnrollmentProperties_keyProperties_type_s certificateEnrollmentProperties_secretProperties_type_s certificateEnrollmentProperties_attributes_created_d certificateEnrollmentProperties_attributes_enabled_b certificateEnrollmentProperties_attributes_updated_d ResultDescription keyProperties_type_s keyProperties_size_d secretProperties_type_s certificateProperties_subject_s certificateProperties_sha1_s certificateProperties_sha256_s certificateProperties_nbf_t certificateProperties_exp_t Category OperationNameResultType CallerIPAddress identity_claim_http_schemas_microsoft_com_identity_claims_objectidentifier_g identity_claim_http_schemas_xmlsoap_org_ws_2005_05_identity_claims_upn_s identity_claim_appid_g id_s clientInfo_s requestUri_s httpStatusCode_d vaultProperties_s ResourceId OperationVersion ResultSignature ResourceProvider DurationMs SubscriptionId ResourceResourceId ResourceProviderResourceType 类型 _ResourceIdResourceType 类型 _ResourceId

0 投票
1 回答
145 浏览

mysql - 将 WSO2 物联网服务器 3.1.0 升级到 3.3.0

我已经在 Windows 机器上使用 MySQL 数据库在 WSO2 IOT 服务器版本 3.1.0 上工作过一段时间了。WSO2 最近发布了 Server 版本 3.3.0。所以现在我想升级我的服务器。我尝试通过将数据库指向数据源 xml 文件中的 mysql 来运行 WSO2 IoT 服务器 3.3.0。我在运行服务器时面临的问题是,某些 API 无法发布并出现以下异常,并且 API 保持在 CREATED 状态,我无法使用这些 API。

我尝试在 carbon 控制台中发布这些 API,但由于以下错误而无法发布。

具有已创建状态和查询的 API 的 MySQL 表屏幕截图。使用此查询查看所有 API 是否已发布。

表格.PNG

在过去的两周里,我一直在为此苦苦挣扎。有没有直接的方法可以将 WSO2 IoT 服务器从 3.1.0 升级到 3.3.0?

数据库:Mysql 5.7 操作系统:Windows/Linux

任何帮助都深表感谢。提前致谢。

0 投票
3 回答
1261 浏览

api - Azure API 管理开发人员门户

我需要向外部合作伙伴公开 APIM 开发人员门户,我希望开发人员门户成为我的一站式商店,这些合作伙伴可以在主要 APIM 开发人员门户中访问和了解他们需要了解的有关我的 API 的所有信息,满足该要求但是当我想添加新内容时,例如关于 API 的特定设计、架构、用户指南文档等,它开始变得非常混乱,一开始看起来贬值的发布者门户(仍然存在)是我唯一可以做的地方添加新页面。新页面看起来非常有限且笨拙,并且无法在新版本的门户中进行修改。除了标准的 MS 内容之外,还有非常有限的文档,所有这些都与修改当前页面和模板有关。

我的网站将在今年年底上线,我不希望有朝一日这些新内容页面从门户网站中丢失并且我的支持文档被删除。

是否有人知道 Microsoft 将使用开发人员门户在他们提供的标准模板之外进行自定义,或者有人可以向我提供解决新内容页面的文档链接吗?

0 投票
1 回答
2029 浏览

azure - 保护位于 Azure API 管理后面的 API 应用服务

我在 Azure 中遇到了一个设计问题。我创建了一个 .NET Core API 并将其部署为 Azure 中的应用服务。最重要的是,我有一个带有 oAuth 2 保护的 Azure API 管理实例。我能够通过遵循本教程来实现这一点:

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad

因此,API 管理实例受到策略和速率限制的保护,但后端 URL 是完全开放的,不需要身份验证。保护后端 URL 的最佳流程是什么?

0 投票
0 回答
64 浏览

wso2 - WSO2 api 管理器 - API 状态更改工作流 - 错误 - 既不在同一进程中也不在父进程中 errorCode='REST_CLIENT_INVOKE_ERROR')

我正在尝试使用集成/BPS 服务器为 WSO2 API 管理器配置 api 状态更改工作流。当管理员最终将发布 api 请求“批准”为“完成”时,BPS 服务器将失败并出现以下错误。将 API 管理器 2.x 与集成/BPS 服务器 6.x 一起使用如果我可能遗漏了什么,请告诉我..

TID:[-1234] [] [2018-11-02 19:31:43,692] 错误 {org.wso2.carbon.bpmn.rest.common.provider.ExceptionMapper.BPMNExceptionHandler} - 发生 Activiti 异常 {org.wso2.carbon .bpmn.rest.common.provider.ExceptionMapper.BPMNExceptionHandler} org.activiti.engine.delegate.BpmnError:没有发现错误代码为“REST_CLIENT_INVOKE_ERROR”的错误的边界事件,既不在同一进程中也不在父进程中(errorCode='REST_CLIENT_INVOKE_ERROR' ) (errorCode='REST_CLIENT_INVOKE_ERROR') at org.activiti.engine.impl.bpmn.helper.ErrorPropagation.propagateError(ErrorPropagation.java:82) at org.activiti.engine.impl.bpmn.helper.ErrorPropagation.propagateError(ErrorPropagation. java:60) 在 org.activiti.engine 的 org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:160)。impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60) 在 org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97) 在 org.activiti.engine.impl.persistence.entity。 org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:637) 的 ExecutionEntity.performOperationSync(ExecutionEntity.java:644) org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted( AtomicOperationTransitionNotifyListenerStart.java:52) at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)在 org.activiti.engine.impl。org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:637) 上的 persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:644)

0 投票
0 回答
108 浏览

azure-service-fabric - 服务结构资源管理器文件部署问题(apim.json 和 apim.parameters)

我的要求如下:

我有一个 Web API,其端口已从 ServiceManifest.xml 文件中删除。这样做是为了让我可以从 API 管理中实现多节点多调用功能。(即我想删除对端口号的依赖)

在部署 API 管理资源文件时,我在部署 apim.json 和 apim.parameters.json 文件时遇到了问题。

以下是我经常遇到的例外。“服务激活失败。请查看左侧活动日志中的详细信息。如果您要部署到 VNET,请确保遵循https://aka.ms/apiminvnet中所述的先决条件”

上传时日志文件中没有任何内容。

我正在使用以下链接进行部署和测试。https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-deploy-api-management

我在运行 powershell 脚本时遇到异常

New-AzureRmResourceGroupDeployment -ResourceGroupName $groupname -TemplateFile "$templatepath\apim.json" -TemplateParameterFile "$templatepath\apim.parameters.json" -Verbose