src/BaiduBce/Services/Bos/BosClient.php
public function getBucketLocation($bucketName, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);
        $response = $this->sendRequest(
            HttpMethod::GET,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'params' => array(
                    BosOptions::LOCATION => '',
                ),
            )
        );
        return $response->locationConstraint;
    }
public function getBucketLocation($bucketName, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);
        $response = $this->sendRequest(
            HttpMethod::GET,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'params' => array(
                    BosOptions::LOCATION => '',
                ),
            )
        );
        return $response->locationConstraint;
    }
public function getBucketLocation ( $ bucketName , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , BosOptions :: CONFIG ) ; $ response = $ this -> sendRequest ( HttpMethod :: GET , array ( BosOptions :: CONFIG => $ config , 'bucket_name' => $ bucketName , 'params' => array ( BosOptions :: LOCATION => '' , ) , ) ) ; return $ response -> locationConstraint ; }
Get Region of bucket

@param string $bucketName The bucket name.
@param mixed $options The optional bce configuration, which will overwrite the
default configuration that was passed while creating BosClient instance.
@return mixed
Get Region of bucket