The perimeter is the distance along the edge of a figure, it is most commonly used for 2-D figures.
Then, it does apply to a rectangle since is a 2-D figure with defined sides.
However, it does not apply to a sphere since it is a 3-D figure with no defined sides, for a sphere we can calculate volume, surface area, radius, diameter, and circumference.