# File lib/fog/rackspace/requests/identity/create_token.rb, line 169
        def service_catalog_entry(name, type, tenant_id, options)
          if options[:rackspace_api_name]
            api_name = options[:rackspace_api_name]
            api_version = options[:rackspace_api_version] || "1.0"
            options[:public_url] = lambda do |r|
              prefix = r ? "#{r}." : ""
              "https://#{prefix}#{api_name}.api.rackspacecloud.com/v#{api_version}/#{tenant_id}"
            end
          end

          entry = { "name" => name, "type" => type }
          if options[:single_endpoint]
            entry["endpoints"] = [endpoint_entry(tenant_id, nil, options)]
          else
            entry["endpoints"] = %w{ORD DFW SYD IAD HKG}.map do |region|
              endpoint_entry(tenant_id, region, options)
            end
          end
          entry
        end