# File lib/fog/profitbricks/requests/compute/create_volume_snapshot.rb, line 59
        def create_volume_snapshot(datacenter_id, _volume_id, options = {})
          response = Excon::Response.new
          response.status = 202

          if datacenter = data[:datacenters]['items'].find do |attrib|
            attrib['id'] == datacenter_id
          end
          else
            raise Excon::Error::HTTPStatus, 'Data center resource could not be found'
          end

          snapshot_id = Fog::UUID.uuid
          snapshot = {
            'id' => snapshot_id,
            'type'        => 'snapshot',
            'href'        => "https =>//api.profitbricks.com/rest/v2/snapshots/#{snapshot_id}",
            'metadata'    => {
              'createdDate' => '2016-08-07T22:28:39Z',
              'createdBy'         => 'test@stackpointcloud.com',
              'etag'              => '83ad78a4757ab0d9bdeaebc3a6485dcf',
              'lastModifiedDate'  => '2016-08-07T22:28:39Z',
              'lastModifiedBy'    => 'test@stackpointcloud.com',
              'state'             => 'AVAILABLE'
            },
            'properties' => {
              'name' => options[:name],
              'description'         => options[:description],
              'location'            => 'us/las',
              'size'                => 5,
              'cpuHotPlug'          => 'true',
              'cpuHotUnplug'        => 'false',
              'ramHotPlug'          => 'false',
              'ramHotUnplug'        => 'false',
              'nicHotPlug'          => 'true',
              'nicHotUnplug'        => 'true',
              'discVirtioHotPlug'   => 'true',
              'discVirtioHotUnplug' => 'true',
              'discScsiHotPlug'     => 'false',
              'discScsiHotUnplug'   => 'false',
              'licenceType'         => 'OTHER'
            }
          }

          data[:snapshots]['items'] << snapshot

          response.body = snapshot
          response
        end