website的webspace有人知道怎么查么?还有它的resourceid

Hi!
website的webspace有人知道怎么查么?还有它的resourceid?
求大神解答!

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 官网欢迎您的访问