Scalr\Api\Service\User\V1beta0\Controller\Os::fetchAction PHP Method

fetchAction() public method

Fetches detailed info about the Os
public fetchAction ( string $osId ) : Scalr\Api\DataType\ResultEnvelope
$osId string Unique identifier of the Os
return Scalr\Api\DataType\ResultEnvelope
    public function fetchAction($osId)
    {
        $os = Entity\Os::findPk($osId);
        if (!$os) {
            throw new ApiErrorException(404, ErrorMessage::ERR_OBJECT_NOT_FOUND, "Unable to find requested OS");
        }
        return $this->result($this->adapter('os')->toData($os));
    }