You are here

public function Vcl::prepare_activate_version in Fastly 7.2

Activates last cloned version.

Return value

array

1 call to Vcl::prepare_activate_version()
Vcl::execute in ./fastly.vcl.inc
Main execute function, takes values inserted into constructor, builds requests and sends them via Fastly API.

File

./fastly.vcl.inc, line 663

Class

Vcl
Class to control the VCL handling.

Code

public function prepare_activate_version() {
  $url = $this->_version_base_url . '/' . $this->_last_cloned_version . '/activate';
  $request = array(
    'url' => $url,
    'type' => "PUT",
    'headers' => $this->_headers_get,
  );
  return $request;
}