Cal. Penal Code § 830.1
(a) A sheriff, undersheriff, or deputy sheriff, employed in that capacity, of a county, a chief of police of a city or chief, director, or chief executive officer of a consolidated municipal public safety agency that performs police functions, a police officer, employed in that capacity and appointed by the chief of police or chief, director, or chief executive of a public safety agency, of a city, a chief of police, or police officer of a district, including police officers of the San Diego Unified Port District Harbor Police, authorized by statute to maintain a police department, a marshal or deputy marshal of a superior court or county, a port warden or port police officer of the Harbor Department of the City of Los Angeles, or an inspector or investigator employed in that capacity in the office of a district attorney, is a peace officer. The authority of these peace officers extends to any place in the state, as follows: