获取应用的绑定服务列表
Getting the list of binded services for an app
参考文档:https://docs.cloudfoundry.org/devguide/services/managing-services.html#list
如何获取应用绑定的服务列表?
没有直接的 cf CLI 命令来列出绑定到应用程序的服务实例。
您可以使用 cf create-app-manifest YOUR_APP
,这将创建一个清单文件,其中 services
block 列出所有绑定的服务实例(如果存在)。
您也可以调用 CC API(使用 cf curl /v2/apps/:guid/service_bindings
)。参见 API documentation here。
我们可以使用
cf env <app_name>
它returns绑定到这个应用程序的应用程序列表
System-Provided:
{
"VCAP_SERVICES": {
"external-dependency-service": [ .. ],
"sso": [ .. ],
"<any other service type>": [<list of services>]
}
}
参考文档:https://docs.cloudfoundry.org/devguide/services/managing-services.html#list
如何获取应用绑定的服务列表?
没有直接的 cf CLI 命令来列出绑定到应用程序的服务实例。
您可以使用 cf create-app-manifest YOUR_APP
,这将创建一个清单文件,其中 services
block 列出所有绑定的服务实例(如果存在)。
您也可以调用 CC API(使用 cf curl /v2/apps/:guid/service_bindings
)。参见 API documentation here。
我们可以使用
cf env <app_name>
它returns绑定到这个应用程序的应用程序列表
System-Provided:
{
"VCAP_SERVICES": {
"external-dependency-service": [ .. ],
"sso": [ .. ],
"<any other service type>": [<list of services>]
}
}