This is a replacement for the plastic port covers on the back of the Apple IIgs. These will fit in the 4 longest ports on the back of the GS. Versions for the shorter ports are available.
Break or cut the retaining ring off the main body, and it can be used to secure the port from the inside with a half-turn.