IBM Cloud:如何搜索特定资源(服务)?
IBM Cloud: How to search for a specific resource (service)?
我已经在我的 IBM Cloud 帐户中供应了多项服务。如何从命令行 (CLI) 轻松找到特定资源?
您可以使用 ibmcloud resource
command with the search
option:
这会找到所有 Cloud Foundry 资源:
ibmcloud resource search 'type:cf-service-instance'
这将查找名称包含 "db2":
的所有资源
ibmcloud resource search 'name: *db2*'
结合两者,找到名称包含 "db2":
的 Cloud Foundry 服务
ibmcloud resource search 'name: *db2* AND type:cf-service-instance'
还有很多options and the search syntax is based on Lucene. Some is also explained in this cloud solution tutorial on accessing resource usage。
我已经在我的 IBM Cloud 帐户中供应了多项服务。如何从命令行 (CLI) 轻松找到特定资源?
您可以使用 ibmcloud resource
command with the search
option:
这会找到所有 Cloud Foundry 资源:
ibmcloud resource search 'type:cf-service-instance'
这将查找名称包含 "db2":
的所有资源ibmcloud resource search 'name: *db2*'
结合两者,找到名称包含 "db2":
的 Cloud Foundry 服务ibmcloud resource search 'name: *db2* AND type:cf-service-instance'
还有很多options and the search syntax is based on Lucene. Some is also explained in this cloud solution tutorial on accessing resource usage。