Hi!
website的webspace有人知道怎么查么?还有它的resourceid?
求大神解答!
website的webspace有人知道怎么查么?还有它的resourceid
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
JamborYao_MSFT 2015-06-25 02:38关注Hi,
我没有在Azure门户管理网站找到这些信息,但是我相信我们能够使用code的方式来找到,下面是我通过rest api得到的webspace的信息:
<WebSpace> <AvailabilityState>Normal</AvailabilityState> <ComputeMode i:nil="true"/> <CurrentNumberOfWorkers i:nil="true"/> <CurrentWorkerSize i:nil="true"/> <GeoLocation>sn1</GeoLocation> <GeoRegion>South Central US</GeoRegion> <HostingEnvironment i:nil="true"/> <Name>wp-Groupt-SouthCentralUSwebspace</Name> <NumberOfWorkers i:nil="true"/> <Plan>VirtualDedicatedPlan</Plan> <Status>Ready</Status> <Subscription>*****</Subscription> <WorkerSize i:nil="true"/> </WebSpace>下图是通过rest api 列出webspace信息的文档:

当然我们也可以通过jdk的方式去获得这些信息,这主要取决于你的编程语言,请查找jdk中列出webspace的方法,下面是我java的代码:
public static void getWebsiteConfig() throws Exception { Configuration config = ManagementConfiguration.configure(new URI(uri), subscriptionId, keyStoreLocation, // Path to the JKS file keyStorePassword, // Password for the JKS file KeyStoreType.jks // Flag that you are using a JKS keystore ); WebSiteManagementClient webAppManagementClient = WebSiteManagementService .create(config); WebSpacesListResponse webspacedetail=webAppManagementClient.getWebSpacesOperations() .list(); }我们得到的返回结果并没有resourceid,这个resourceid指的是什么还请提供更详细的信息?
Best Regards,
Jambor
如果您想进一步了解Windows Azure, Windows Azure 官网欢迎您的访问解决 无用评论 打赏 举报