简体   繁体   English

通过REST API获取堆栈状态,而不在devstack中提及租户/项目ID

[英]Get stack status through REST API without mentioning Tenant/Project id in devstack

All, 所有,

I want to get status of newly orchestrated stack in devstack though REST API. 我希望通过REST API获取devstack中新编排的堆栈的状态。 I am using following method to get the status and it is successful. 我使用以下方法来获取状态,并且它是成功的。

GET http://10.0.124.61:8004/v1/<tenant_id>/stacks/<stack_id>

But, the challenge is sometime, I may not be able to get tenant ID.So, is there a possibility to get stack status without tenant id? 但是,挑战是某个时候,我可能无法获得租户ID。那么,是否有可能获得没有租户ID的堆栈状态?

Thanks in advance. 提前致谢。

Tenant ID is mandatory to get stack status and that's how the openstack resources can be invoked with Tenant id. 租户ID是获取堆栈状态所必需的,这就是如何使用租户ID调用openstack资源。 You can make use of openstack python sdk for an easy way of access to openstack resources. 您可以使用openstack python sdk轻松访问openstack资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM