1. Packages
  2. Port
  3. API Docs
  4. getSearch
Port v2.4.0 published on Sunday, Mar 9, 2025 by port-labs

port.getSearch

Explore with Pulumi AI

Port v2.4.0 published on Sunday, Mar 9, 2025 by port-labs

The search data source allows you to search for entities in Port.

See the Port documentation for more information about the search capabilities in Port.

Example Usage

Using getSearch

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSearch(args: GetSearchArgs, opts?: InvokeOptions): Promise<GetSearchResult>
function getSearchOutput(args: GetSearchOutputArgs, opts?: InvokeOptions): Output<GetSearchResult>
Copy
def get_search(attach_title_to_relation: Optional[bool] = None,
               exclude_calculated_properties: Optional[bool] = None,
               excludes: Optional[Sequence[str]] = None,
               includes: Optional[Sequence[str]] = None,
               query: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSearchResult
def get_search_output(attach_title_to_relation: Optional[pulumi.Input[bool]] = None,
               exclude_calculated_properties: Optional[pulumi.Input[bool]] = None,
               excludes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               includes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               query: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSearchResult]
Copy
func GetSearch(ctx *Context, args *GetSearchArgs, opts ...InvokeOption) (*GetSearchResult, error)
func GetSearchOutput(ctx *Context, args *GetSearchOutputArgs, opts ...InvokeOption) GetSearchResultOutput
Copy

> Note: This function is named GetSearch in the Go SDK.

public static class GetSearch 
{
    public static Task<GetSearchResult> InvokeAsync(GetSearchArgs args, InvokeOptions? opts = null)
    public static Output<GetSearchResult> Invoke(GetSearchInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSearchResult> getSearch(GetSearchArgs args, InvokeOptions options)
public static Output<GetSearchResult> getSearch(GetSearchArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: port:index/getSearch:getSearch
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Query This property is required. string
The search query
AttachTitleToRelation bool
Attach title to relation
ExcludeCalculatedProperties bool
Exclude calculated properties
Excludes List<string>
Properties to exclude from the results
Includes List<string>
Properties to include in the results
Query This property is required. string
The search query
AttachTitleToRelation bool
Attach title to relation
ExcludeCalculatedProperties bool
Exclude calculated properties
Excludes []string
Properties to exclude from the results
Includes []string
Properties to include in the results
query This property is required. String
The search query
attachTitleToRelation Boolean
Attach title to relation
excludeCalculatedProperties Boolean
Exclude calculated properties
excludes List<String>
Properties to exclude from the results
includes List<String>
Properties to include in the results
query This property is required. string
The search query
attachTitleToRelation boolean
Attach title to relation
excludeCalculatedProperties boolean
Exclude calculated properties
excludes string[]
Properties to exclude from the results
includes string[]
Properties to include in the results
query This property is required. str
The search query
attach_title_to_relation bool
Attach title to relation
exclude_calculated_properties bool
Exclude calculated properties
excludes Sequence[str]
Properties to exclude from the results
includes Sequence[str]
Properties to include in the results
query This property is required. String
The search query
attachTitleToRelation Boolean
Attach title to relation
excludeCalculatedProperties Boolean
Exclude calculated properties
excludes List<String>
Properties to exclude from the results
includes List<String>
Properties to include in the results

getSearch Result

The following output properties are available:

Entities List<port_labs.Port.Outputs.GetSearchEntity>
A list of entities matching the search query
Id string
The ID of this resource.
MatchingBlueprints List<string>
The matching blueprints for the search query
Query string
The search query
AttachTitleToRelation bool
Attach title to relation
ExcludeCalculatedProperties bool
Exclude calculated properties
Excludes List<string>
Properties to exclude from the results
Includes List<string>
Properties to include in the results
Entities []GetSearchEntity
A list of entities matching the search query
Id string
The ID of this resource.
MatchingBlueprints []string
The matching blueprints for the search query
Query string
The search query
AttachTitleToRelation bool
Attach title to relation
ExcludeCalculatedProperties bool
Exclude calculated properties
Excludes []string
Properties to exclude from the results
Includes []string
Properties to include in the results
entities List<GetSearchEntity>
A list of entities matching the search query
id String
The ID of this resource.
matchingBlueprints List<String>
The matching blueprints for the search query
query String
The search query
attachTitleToRelation Boolean
Attach title to relation
excludeCalculatedProperties Boolean
Exclude calculated properties
excludes List<String>
Properties to exclude from the results
includes List<String>
Properties to include in the results
entities GetSearchEntity[]
A list of entities matching the search query
id string
The ID of this resource.
matchingBlueprints string[]
The matching blueprints for the search query
query string
The search query
attachTitleToRelation boolean
Attach title to relation
excludeCalculatedProperties boolean
Exclude calculated properties
excludes string[]
Properties to exclude from the results
includes string[]
Properties to include in the results
entities Sequence[GetSearchEntity]
A list of entities matching the search query
id str
The ID of this resource.
matching_blueprints Sequence[str]
The matching blueprints for the search query
query str
The search query
attach_title_to_relation bool
Attach title to relation
exclude_calculated_properties bool
Exclude calculated properties
excludes Sequence[str]
Properties to exclude from the results
includes Sequence[str]
Properties to include in the results
entities List<Property Map>
A list of entities matching the search query
id String
The ID of this resource.
matchingBlueprints List<String>
The matching blueprints for the search query
query String
The search query
attachTitleToRelation Boolean
Attach title to relation
excludeCalculatedProperties Boolean
Exclude calculated properties
excludes List<String>
Properties to exclude from the results
includes List<String>
Properties to include in the results

Supporting Types

GetSearchEntity

Blueprint This property is required. string
The blueprint identifier the entity relates to
CreatedAt This property is required. string
The creation date of the entity
CreatedBy This property is required. string
The creator of the entity
Icon This property is required. string
The icon of the entity
Identifier This property is required. string
The identifier of the entity
Properties This property is required. port_labs.Port.Inputs.GetSearchEntityProperties
The properties of the entity
Relations This property is required. port_labs.Port.Inputs.GetSearchEntityRelations
The relations of the entity
RunId This property is required. string
The runID of the action run that created the entity
Scorecards This property is required. Dictionary<string, port_labs.Port.Inputs.GetSearchEntityScorecards>
The scorecards of the entity
Teams This property is required. List<string>
The teams the entity belongs to
Title This property is required. string
The title of the entity
UpdatedAt This property is required. string
The last update date of the entity
UpdatedBy This property is required. string
The last updater of the entity
Blueprint This property is required. string
The blueprint identifier the entity relates to
CreatedAt This property is required. string
The creation date of the entity
CreatedBy This property is required. string
The creator of the entity
Icon This property is required. string
The icon of the entity
Identifier This property is required. string
The identifier of the entity
Properties This property is required. GetSearchEntityProperties
The properties of the entity
Relations This property is required. GetSearchEntityRelations
The relations of the entity
RunId This property is required. string
The runID of the action run that created the entity
Scorecards This property is required. map[string]GetSearchEntityScorecards
The scorecards of the entity
Teams This property is required. []string
The teams the entity belongs to
Title This property is required. string
The title of the entity
UpdatedAt This property is required. string
The last update date of the entity
UpdatedBy This property is required. string
The last updater of the entity
blueprint This property is required. String
The blueprint identifier the entity relates to
createdAt This property is required. String
The creation date of the entity
createdBy This property is required. String
The creator of the entity
icon This property is required. String
The icon of the entity
identifier This property is required. String
The identifier of the entity
properties This property is required. GetSearchEntityProperties
The properties of the entity
relations This property is required. GetSearchEntityRelations
The relations of the entity
runId This property is required. String
The runID of the action run that created the entity
scorecards This property is required. Map<String,GetSearchEntityScorecards>
The scorecards of the entity
teams This property is required. List<String>
The teams the entity belongs to
title This property is required. String
The title of the entity
updatedAt This property is required. String
The last update date of the entity
updatedBy This property is required. String
The last updater of the entity
blueprint This property is required. string
The blueprint identifier the entity relates to
createdAt This property is required. string
The creation date of the entity
createdBy This property is required. string
The creator of the entity
icon This property is required. string
The icon of the entity
identifier This property is required. string
The identifier of the entity
properties This property is required. GetSearchEntityProperties
The properties of the entity
relations This property is required. GetSearchEntityRelations
The relations of the entity
runId This property is required. string
The runID of the action run that created the entity
scorecards This property is required. {[key: string]: GetSearchEntityScorecards}
The scorecards of the entity
teams This property is required. string[]
The teams the entity belongs to
title This property is required. string
The title of the entity
updatedAt This property is required. string
The last update date of the entity
updatedBy This property is required. string
The last updater of the entity
blueprint This property is required. str
The blueprint identifier the entity relates to
created_at This property is required. str
The creation date of the entity
created_by This property is required. str
The creator of the entity
icon This property is required. str
The icon of the entity
identifier This property is required. str
The identifier of the entity
properties This property is required. GetSearchEntityProperties
The properties of the entity
relations This property is required. GetSearchEntityRelations
The relations of the entity
run_id This property is required. str
The runID of the action run that created the entity
scorecards This property is required. Mapping[str, GetSearchEntityScorecards]
The scorecards of the entity
teams This property is required. Sequence[str]
The teams the entity belongs to
title This property is required. str
The title of the entity
updated_at This property is required. str
The last update date of the entity
updated_by This property is required. str
The last updater of the entity
blueprint This property is required. String
The blueprint identifier the entity relates to
createdAt This property is required. String
The creation date of the entity
createdBy This property is required. String
The creator of the entity
icon This property is required. String
The icon of the entity
identifier This property is required. String
The identifier of the entity
properties This property is required. Property Map
The properties of the entity
relations This property is required. Property Map
The relations of the entity
runId This property is required. String
The runID of the action run that created the entity
scorecards This property is required. Map<Property Map>
The scorecards of the entity
teams This property is required. List<String>
The teams the entity belongs to
title This property is required. String
The title of the entity
updatedAt This property is required. String
The last update date of the entity
updatedBy This property is required. String
The last updater of the entity

GetSearchEntityProperties

ArrayProps This property is required. port_labs.Port.Inputs.GetSearchEntityPropertiesArrayProps
The array properties of the entity
BooleanProps This property is required. Dictionary<string, bool>
The bool properties of the entity
NumberProps This property is required. Dictionary<string, double>
The number properties of the entity
ObjectProps This property is required. Dictionary<string, string>
The object properties of the entity
StringProps This property is required. Dictionary<string, string>
The string properties of the entity
ArrayProps This property is required. GetSearchEntityPropertiesArrayProps
The array properties of the entity
BooleanProps This property is required. map[string]bool
The bool properties of the entity
NumberProps This property is required. map[string]float64
The number properties of the entity
ObjectProps This property is required. map[string]string
The object properties of the entity
StringProps This property is required. map[string]string
The string properties of the entity
arrayProps This property is required. GetSearchEntityPropertiesArrayProps
The array properties of the entity
booleanProps This property is required. Map<String,Boolean>
The bool properties of the entity
numberProps This property is required. Map<String,Double>
The number properties of the entity
objectProps This property is required. Map<String,String>
The object properties of the entity
stringProps This property is required. Map<String,String>
The string properties of the entity
arrayProps This property is required. GetSearchEntityPropertiesArrayProps
The array properties of the entity
booleanProps This property is required. {[key: string]: boolean}
The bool properties of the entity
numberProps This property is required. {[key: string]: number}
The number properties of the entity
objectProps This property is required. {[key: string]: string}
The object properties of the entity
stringProps This property is required. {[key: string]: string}
The string properties of the entity
array_props This property is required. GetSearchEntityPropertiesArrayProps
The array properties of the entity
boolean_props This property is required. Mapping[str, bool]
The bool properties of the entity
number_props This property is required. Mapping[str, float]
The number properties of the entity
object_props This property is required. Mapping[str, str]
The object properties of the entity
string_props This property is required. Mapping[str, str]
The string properties of the entity
arrayProps This property is required. Property Map
The array properties of the entity
booleanProps This property is required. Map<Boolean>
The bool properties of the entity
numberProps This property is required. Map<Number>
The number properties of the entity
objectProps This property is required. Map<String>
The object properties of the entity
stringProps This property is required. Map<String>
The string properties of the entity

GetSearchEntityPropertiesArrayProps

BooleanItems This property is required. Dictionary<string, ImmutableArray<bool>>
NumberItems This property is required. Dictionary<string, ImmutableArray<double>>
ObjectItems This property is required. Dictionary<string, ImmutableArray<string>>
StringItems This property is required. Dictionary<string, ImmutableArray<string>>
BooleanItems This property is required. map[string][]bool
NumberItems This property is required. map[string][]float64
ObjectItems This property is required. map[string][]string
StringItems This property is required. map[string][]string
booleanItems This property is required. Map<String,List<Boolean>>
numberItems This property is required. Map<String,List<Double>>
objectItems This property is required. Map<String,List<String>>
stringItems This property is required. Map<String,List<String>>
booleanItems This property is required. {[key: string]: boolean[]}
numberItems This property is required. {[key: string]: number[]}
objectItems This property is required. {[key: string]: string[]}
stringItems This property is required. {[key: string]: string[]}
boolean_items This property is required. Mapping[str, Sequence[bool]]
number_items This property is required. Mapping[str, Sequence[float]]
object_items This property is required. Mapping[str, Sequence[str]]
string_items This property is required. Mapping[str, Sequence[str]]
booleanItems This property is required. Map<List<Boolean>>
numberItems This property is required. Map<List<Number>>
objectItems This property is required. Map<List<String>>
stringItems This property is required. Map<List<String>>

GetSearchEntityRelations

ManyRelations This property is required. Dictionary<string, ImmutableArray<string>>
The many relation of the entity
SingleRelations This property is required. Dictionary<string, string>
The single relation of the entity
ManyRelations This property is required. map[string][]string
The many relation of the entity
SingleRelations This property is required. map[string]string
The single relation of the entity
manyRelations This property is required. Map<String,List<String>>
The many relation of the entity
singleRelations This property is required. Map<String,String>
The single relation of the entity
manyRelations This property is required. {[key: string]: string[]}
The many relation of the entity
singleRelations This property is required. {[key: string]: string}
The single relation of the entity
many_relations This property is required. Mapping[str, Sequence[str]]
The many relation of the entity
single_relations This property is required. Mapping[str, str]
The single relation of the entity
manyRelations This property is required. Map<List<String>>
The many relation of the entity
singleRelations This property is required. Map<String>
The single relation of the entity

GetSearchEntityScorecards

Level This property is required. string
Rules This property is required. List<port_labs.Port.Inputs.GetSearchEntityScorecardsRule>
Level This property is required. string
Rules This property is required. []GetSearchEntityScorecardsRule
level This property is required. String
rules This property is required. List<GetSearchEntityScorecardsRule>
level This property is required. string
rules This property is required. GetSearchEntityScorecardsRule[]
level This property is required. str
rules This property is required. Sequence[GetSearchEntityScorecardsRule]
level This property is required. String
rules This property is required. List<Property Map>

GetSearchEntityScorecardsRule

Identifier This property is required. string
Level This property is required. string
Status This property is required. string
Identifier This property is required. string
Level This property is required. string
Status This property is required. string
identifier This property is required. String
level This property is required. String
status This property is required. String
identifier This property is required. string
level This property is required. string
status This property is required. string
identifier This property is required. str
level This property is required. str
status This property is required. str
identifier This property is required. String
level This property is required. String
status This property is required. String

Package Details

Repository
port port-labs/pulumi-port
License
Apache-2.0
Notes
This Pulumi package is based on the port-labs Terraform Provider.
Port v2.4.0 published on Sunday, Mar 9, 2025 by port-labs