Port v2.4.0 published on Sunday, Mar 9, 2025 by port-labs
port.getSearch
Explore with Pulumi AI
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>
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]
func GetSearch(ctx *Context, args *GetSearchArgs, opts ...InvokeOption) (*GetSearchResult, error)
func GetSearchOutput(ctx *Context, args *GetSearchOutputArgs, opts ...InvokeOption) GetSearchResultOutput
> 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)
}
public static CompletableFuture<GetSearchResult> getSearch(GetSearchArgs args, InvokeOptions options)
public static Output<GetSearchResult> getSearch(GetSearchArgs args, InvokeOptions options)
fn::invoke:
function: port:index/getSearch:getSearch
arguments:
# arguments dictionary
The following arguments are supported:
- Query
This property is required. string - The search query
- Attach
Title boolTo Relation - Attach title to relation
- Exclude
Calculated boolProperties - 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
- Attach
Title boolTo Relation - Attach title to relation
- Exclude
Calculated boolProperties - 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
- attach
Title BooleanTo Relation - Attach title to relation
- exclude
Calculated BooleanProperties - 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
- attach
Title booleanTo Relation - Attach title to relation
- exclude
Calculated booleanProperties - 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_ boolto_ relation - Attach title to relation
- exclude_
calculated_ boolproperties - 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
- attach
Title BooleanTo Relation - Attach title to relation
- exclude
Calculated BooleanProperties - 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. Get Search Entity> - A list of entities matching the search query
- Id string
- The ID of this resource.
- Matching
Blueprints List<string> - The matching blueprints for the search query
- Query string
- The search query
- Attach
Title boolTo Relation - Attach title to relation
- Exclude
Calculated boolProperties - Exclude calculated properties
- Excludes List<string>
- Properties to exclude from the results
- Includes List<string>
- Properties to include in the results
- Entities
[]Get
Search Entity - A list of entities matching the search query
- Id string
- The ID of this resource.
- Matching
Blueprints []string - The matching blueprints for the search query
- Query string
- The search query
- Attach
Title boolTo Relation - Attach title to relation
- Exclude
Calculated boolProperties - Exclude calculated properties
- Excludes []string
- Properties to exclude from the results
- Includes []string
- Properties to include in the results
- entities
List<Get
Search Entity> - A list of entities matching the search query
- id String
- The ID of this resource.
- matching
Blueprints List<String> - The matching blueprints for the search query
- query String
- The search query
- attach
Title BooleanTo Relation - Attach title to relation
- exclude
Calculated BooleanProperties - Exclude calculated properties
- excludes List<String>
- Properties to exclude from the results
- includes List<String>
- Properties to include in the results
- entities
Get
Search Entity[] - A list of entities matching the search query
- id string
- The ID of this resource.
- matching
Blueprints string[] - The matching blueprints for the search query
- query string
- The search query
- attach
Title booleanTo Relation - Attach title to relation
- exclude
Calculated booleanProperties - Exclude calculated properties
- excludes string[]
- Properties to exclude from the results
- includes string[]
- Properties to include in the results
- entities
Sequence[Get
Search Entity] - 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_ boolto_ relation - Attach title to relation
- exclude_
calculated_ boolproperties - 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.
- matching
Blueprints List<String> - The matching blueprints for the search query
- query String
- The search query
- attach
Title BooleanTo Relation - Attach title to relation
- exclude
Calculated BooleanProperties - 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
- Created
At This property is required. string - The creation date of the entity
- Created
By 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. Get Search Entity Properties - The properties of the entity
- Relations
This property is required. port_labs. Port. Inputs. Get Search Entity Relations - The relations of the entity
- Run
Id 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. Get Search Entity Scorecards> - 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
- Updated
At This property is required. string - The last update date of the entity
- Updated
By This property is required. string - The last updater of the entity
- Blueprint
This property is required. string - The blueprint identifier the entity relates to
- Created
At This property is required. string - The creation date of the entity
- Created
By 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. GetSearch Entity Properties - The properties of the entity
- Relations
This property is required. GetSearch Entity Relations - The relations of the entity
- Run
Id This property is required. string - The runID of the action run that created the entity
- Scorecards
This property is required. map[string]GetSearch Entity Scorecards - 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
- Updated
At This property is required. string - The last update date of the entity
- Updated
By This property is required. string - The last updater of the entity
- blueprint
This property is required. String - The blueprint identifier the entity relates to
- created
At This property is required. String - The creation date of the entity
- created
By 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. GetSearch Entity Properties - The properties of the entity
- relations
This property is required. GetSearch Entity Relations - The relations of the entity
- run
Id This property is required. String - The runID of the action run that created the entity
- scorecards
This property is required. Map<String,GetSearch Entity Scorecards> - 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
- updated
At This property is required. String - The last update date of the entity
- updated
By This property is required. String - The last updater of the entity
- blueprint
This property is required. string - The blueprint identifier the entity relates to
- created
At This property is required. string - The creation date of the entity
- created
By 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. GetSearch Entity Properties - The properties of the entity
- relations
This property is required. GetSearch Entity Relations - The relations of the entity
- run
Id This property is required. string - The runID of the action run that created the entity
- scorecards
This property is required. {[key: string]: GetSearch Entity Scorecards} - 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
- updated
At This property is required. string - The last update date of the entity
- updated
By 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. GetSearch Entity Properties - The properties of the entity
- relations
This property is required. GetSearch Entity Relations - 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, GetSearch Entity Scorecards] - 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
- created
At This property is required. String - The creation date of the entity
- created
By 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
- run
Id 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
- updated
At This property is required. String - The last update date of the entity
- updated
By This property is required. String - The last updater of the entity
GetSearchEntityProperties
- Array
Props This property is required. port_labs. Port. Inputs. Get Search Entity Properties Array Props - The array properties of the entity
- Boolean
Props This property is required. Dictionary<string, bool> - The bool properties of the entity
- Number
Props This property is required. Dictionary<string, double> - The number properties of the entity
- Object
Props This property is required. Dictionary<string, string> - The object properties of the entity
- String
Props This property is required. Dictionary<string, string> - The string properties of the entity
- Array
Props This property is required. GetSearch Entity Properties Array Props - The array properties of the entity
- Boolean
Props This property is required. map[string]bool - The bool properties of the entity
- Number
Props This property is required. map[string]float64 - The number properties of the entity
- Object
Props This property is required. map[string]string - The object properties of the entity
- String
Props This property is required. map[string]string - The string properties of the entity
- array
Props This property is required. GetSearch Entity Properties Array Props - The array properties of the entity
- boolean
Props This property is required. Map<String,Boolean> - The bool properties of the entity
- number
Props This property is required. Map<String,Double> - The number properties of the entity
- object
Props This property is required. Map<String,String> - The object properties of the entity
- string
Props This property is required. Map<String,String> - The string properties of the entity
- array
Props This property is required. GetSearch Entity Properties Array Props - The array properties of the entity
- boolean
Props This property is required. {[key: string]: boolean} - The bool properties of the entity
- number
Props This property is required. {[key: string]: number} - The number properties of the entity
- object
Props This property is required. {[key: string]: string} - The object properties of the entity
- string
Props This property is required. {[key: string]: string} - The string properties of the entity
- array_
props This property is required. GetSearch Entity Properties Array Props - 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
- array
Props This property is required. Property Map - The array properties of the entity
- boolean
Props This property is required. Map<Boolean> - The bool properties of the entity
- number
Props This property is required. Map<Number> - The number properties of the entity
- object
Props This property is required. Map<String> - The object properties of the entity
- string
Props This property is required. Map<String> - The string properties of the entity
GetSearchEntityPropertiesArrayProps
- Boolean
Items This property is required. Dictionary<string, ImmutableArray<bool>> - Number
Items This property is required. Dictionary<string, ImmutableArray<double>> - Object
Items This property is required. Dictionary<string, ImmutableArray<string>> - String
Items This property is required. Dictionary<string, ImmutableArray<string>>
- Boolean
Items This property is required. map[string][]bool - Number
Items This property is required. map[string][]float64 - Object
Items This property is required. map[string][]string - String
Items This property is required. map[string][]string
- boolean
Items This property is required. Map<String,List<Boolean>> - number
Items This property is required. Map<String,List<Double>> - object
Items This property is required. Map<String,List<String>> - string
Items This property is required. Map<String,List<String>>
- boolean
Items This property is required. {[key: string]: boolean[]} - number
Items This property is required. {[key: string]: number[]} - object
Items This property is required. {[key: string]: string[]} - string
Items 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]]
- boolean
Items This property is required. Map<List<Boolean>> - number
Items This property is required. Map<List<Number>> - object
Items This property is required. Map<List<String>> - string
Items This property is required. Map<List<String>>
GetSearchEntityRelations
- Many
Relations This property is required. Dictionary<string, ImmutableArray<string>> - The many relation of the entity
- Single
Relations This property is required. Dictionary<string, string> - The single relation of the entity
- Many
Relations This property is required. map[string][]string - The many relation of the entity
- Single
Relations This property is required. map[string]string - The single relation of the entity
- many
Relations This property is required. Map<String,List<String>> - The many relation of the entity
- single
Relations This property is required. Map<String,String> - The single relation of the entity
- many
Relations This property is required. {[key: string]: string[]} - The many relation of the entity
- single
Relations 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
- many
Relations This property is required. Map<List<String>> - The many relation of the entity
- single
Relations 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. Get Search Entity Scorecards Rule>
- Level
This property is required. string - Rules
This property is required. []GetSearch Entity Scorecards Rule
- level
This property is required. String - rules
This property is required. List<GetSearch Entity Scorecards Rule>
- level
This property is required. string - rules
This property is required. GetSearch Entity Scorecards Rule[]
- level
This property is required. str - rules
This property is required. Sequence[GetSearch Entity Scorecards Rule]
- 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.