def get_capacity(self, legacy=None):
params = None<EOL>if legacy:<EOL><INDENT>params = {'<STR_LIT>': legacy}<EOL><DEDENT>return self.call_api('<STR_LIT>', params=params)['<STR_LIT>']<EOL>
Get capacity of all facilities.

        :param legacy: Indicate set of server types to include in response

        Validation of `legacy` is left to the packet api to avoid going out of date if any new value is introduced.
        The currently known values are:
          - only (current default, will be switched "soon")
          - include
          - exclude (soon to be default)