Get details of a service.

        Only the manager nodes can retrieve service details

        Args:
            service_id (string): List of service id

        Returns:
            dict, details of the service
348945
def get_service_details(self, service_id: str) -> dict:
        
        # Raise an exception if we are not a manager
        if not self._manager:
            raise RuntimeError('Only the Swarm manager node can retrieve all'
                               ' the services details.')

        service = self._client.services.get(service_id)
        return service.attrs
213333
def _get_service_state(service_id: str):
        """"""
        LOG.debug('Getting state of service %s', service_id)
        services = get_service_id_list()
        service_ids = [s for s in services if service_id in s]
        if len(service_ids) != 1:
            return 'Service not found! services = {}'.format(str(services))
        subsystem, name, version = service_ids[0].split(':')
        return ServiceState(subsystem, name, version)
1300147
def get_org_details(organization_id):
    '''
    
    '''

    qdata = salt.utils.http.query(
        '{0}/organization/{1}'.format(_base_url(), organization_id),
        method='GET',
        decode=True,
        decode_type='json',
        header_dict={
            'X-DC-DEVKEY': _api_key(),
            'Content-Type': 'application/json',
        },
    )
    return qdata
1362892
def _get_service_bindings(self, service_name):
        
        instance = self.get_instance(service_name)
        return self.api.get(instance['service_bindings_url'])
747037
def info(self, resource):
        '''
        
        '''
        service_def, resource_def, path = self._get_service_information(
            resource)

        print (resource)
        print ("*******************************************")
        print ("Base URL: {0}" . format (self.tld))
        print ("Resource path: {0}" . format (resource_def.get("endpoint")))
        print ("Required parameters: {0}" . format (resource_def.get("required_params")))
        print ("Optional parameters" . format (resource_def.get("optional_params")))
1327320
def get_service_name(self, service_id: str) -> str:
        
        # Raise an exception if we are not a manager
        if not self._manager:
            raise RuntimeError('Only the Swarm manager node can retrieve all'
                               ' the services details.')

        service = self._client.services.get(service_id)
        return service.name
842393
def get_query_details(self, query_id, format='text'):
    
    return self._get("impalaQueries/" + query_id, ApiImpalaQueryDetailsResponse,
        params=dict(format=format), api_version=4)
790982
def info(self, server_id):
        
        result = self._storage[server_id].info()
        result['id'] = server_id
        return result
1055147
def retrieve_dcnm_subnet_info(self, tenant_id, direc):
        
        serv_obj = self.get_service_obj(tenant_id)
        subnet_dict = serv_obj.get_dcnm_subnet_dict(direc)
        return subnet_dict
563348
def _retrieve_info(self, request):
        
        info = _metadata.get_service_account_info(
            request,
            service_account=self._service_account_email)

        self._service_account_email = info['email']
        self._scopes = info['scopes']
747537
def get_plaintext(self, id): # pylint: disable=invalid-name,redefined-builtin
        
        return self.service.get_id(self.base, id, params={'format': 'text'}).text
1071259
def _get_service_keys(self, service_name):
        
        guid = self.get_instance_guid(service_name)
        uri = "/v2/service_instances/%s/service_keys" % (guid)
        return self.api.get(uri)
855818
def get_job_details(job_id,
                    deployment_name,
                    token_manager=None,
                    app_url=defaults.APP_URL):
    

    jobs = get_jobs(deployment_name,
                    token_manager=token_manager,
                    app_url=app_url)

    for job in jobs:
        if job['id'] == job_id:
            return job

    raise JutException('Unable to find job with id "%s"' % job_id)
919189
def info(self, user_id):
        
        resp = self._rtm_client.get('v1/user.info?user_id={}'.format(user_id))
        if resp.is_fail():
            raise RTMServiceError('Failed to get user information', resp)

        return resp.data['result']
437763
def workflow_get_details(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/getDetails' % object_id, input_params, always_retry=always_retry, **kwargs)
840247
def service_info(self, short_name):
        

        if short_name not in self.services:
            raise ArgumentError("Unknown service name", short_name=short_name)

        info = {}
        info['short_name'] = short_name
        info['long_name'] = self.services[short_name]['state'].long_name
        info['preregistered'] = self.services[short_name]['state'].preregistered

        return info
1259547
def service_record(self, service_name):
    
    if not self.services().has_key(service_name):
      return None
    return self.services()[service_name]