def SliverStatus(self, slice_urn, credentials):
        '''Report as much as is known about the status of the resources
        in the sliver. The AM may not know.
        Return a dict of sliver urn, status, and a list of dicts resource
        statuses.'''
        # Loop over the resources in a sliver gathering status.
        self.logger.info('SliverStatus(%r)' % (slice_urn))
        # Note this list of privileges is really the name of an operation
        # from the privilege_table in sfa/trust/rights.py
        # Credentials will specify a list of privileges, each of which
        # confers the right to perform a list of operations.
        # EG the 'info' privilege in a credential allows the operations
        # listslices, listnodes, policy
        privileges = (SLIVERSTATUSPRIV,)
        self._cred_verifier.verify_from_strings(self._server.pem_cert,
                                                credentials,
                                                slice_urn,
                                                privileges)
        if slice_urn in self._slivers:
            sliver = self._slivers[slice_urn]
            # Now calculate the status of the sliver
            res_status = list()
            for res in sliver.resources:
                # Gather the status of all the resources
                # in the sliver. This could be actually
                # communicating with the resources, or simply
                # reporting the state of initialized, started, stopped, ...
                res_status.append(dict(geni_urn=res.urn(),
                                       geni_status=res.status,
                                       geni_error=''))
            self.logger.info("Calculated and returning sliver %r status" % slice_urn)
            return dict(geni_urn=sliver.urn,
                        geni_status=sliver.status(),
                        geni_resources=res_status)
        else:
            self.no_such_slice(slice_urn)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/geni/am.py/ReferenceAggregateManager.SliverStatus/original