public function createDomain($environmentUuid, $hostname)
    {

        $options = [
            'form_params' => [
                'hostname' => $hostname,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/environments/${environmentUuid}/domains", $this->query, $options)
        );
    }
public function createDomain($environmentUuid, $hostname)
    {

        $options = [
            'form_params' => [
                'hostname' => $hostname,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/environments/${environmentUuid}/domains", $this->query, $options)
        );
    }
public function createDomain ( $ environmentUuid , $ hostname ) { $ options = [ 'form_params' => [ 'hostname' => $ hostname , ] , ] ; return new OperationResponse ( $ this -> connector -> request ( 'post' , "/environments/${environmentUuid}/domains" , $ this -> query , $ options ) ) ; }
Adds a domain to an environment.

@param string $environmentUuid
@param string $hostname
@return OperationResponse
Adds a domain to an environment .