parameters: (self, request, format=None)
return_statement: return Response(response)
docstring: Return some basic information about this instance
  
          Everything returned here should be considered public / insecure, as
          this requires no auth and is intended for use by the installer process.
docstring_summary: Return some basic information about this instance
docstring_tokens: Return some basic information about this instance
function: def get(self, request, format=None):
          """Return some basic information about this instance
  
          Everything returned here should be considered public / insecure, as
          this requires no auth and is intended for use by the installer process.
          """
          response = {'ha': is_ha_environment(), 'version': get_awx_version(), 'active_node': settings.CLUSTER_HOST_ID, 'install_uuid': settings.INSTALL_UUID}
  
          response['instances'] = []
          for instance in Instance.objects.exclude(node_type='hop'):
              response['instances'].append(
                  dict(
                      node=instance.hostname,
                      node_type=instance.node_type,
                      uuid=instance.uuid,
                      heartbeat=instance.last_seen,
                      capacity=instance.capacity,
                      version=instance.version,
                  )
              )
              response['instances'] = sorted(response['instances'], key=operator.itemgetter('node'))
          response['instance_groups'] = []
          for instance_group in InstanceGroup.objects.prefetch_related('instances'):
              response['instance_groups'].append(
                  dict(name=instance_group.name, capacity=instance_group.capacity, instances=[x.hostname for x in instance_group.instances.all()])
              )
              response['instance_groups'] = sorted(response['instance_groups'], key=lambda x: x['name'].lower())
          return Response(response)
function_tokens: def get ( self , request , format = None ) : response = { 'ha' : is_ha_environment ( ) , 'version' : get_awx_version ( ) , 'active_node' : settings . CLUSTER_HOST_ID , 'install_uuid' : settings . INSTALL_UUID } response [ 'instances' ] = [ ] for instance in Instance . objects . exclude ( node_type = 'hop' ) : response [ 'instances' ] . append ( dict ( node = instance . hostname , node_type = instance . node_type , uuid = instance . uuid , heartbeat = instance . last_seen , capacity = instance . capacity , version = instance . version , ) ) response [ 'instances' ] = sorted ( response [ 'instances' ] , key = operator . itemgetter ( 'node' ) ) response [ 'instance_groups' ] = [ ] for instance_group in InstanceGroup . objects . prefetch_related ( 'instances' ) : response [ 'instance_groups' ] . append ( dict ( name = instance_group . name , capacity = instance_group . capacity , instances = [ x . hostname for x in instance_group . instances . all ( ) ] ) ) response [ 'instance_groups' ] = sorted ( response [ 'instance_groups' ] , key = lambda x : x [ 'name' ] . lower ( ) ) return Response ( response )