Port v2.0.22 published on Thursday, Sep 26, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: port:index/getSearch:getSearch
arguments:
# arguments dictionary
The following arguments are supported:
- 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
- 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
- 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
- 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
- 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
- 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
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 string
- The blueprint identifier the entity relates to
- Created
At string - The creation date of the entity
- Created
By string - The creator of the entity
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
port_
labs. Port. Inputs. Get Search Entity Properties - The properties of the entity
- Relations
port_
labs. Port. Inputs. Get Search Entity Relations - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Scorecards
Dictionary<string, port_
labs. Port. Inputs. Get Search Entity Scorecards> - The scorecards of the entity
- Teams List<string>
- The teams the entity belongs to
- Title string
- The title of the entity
- Updated
At string - The last update date of the entity
- Updated
By string - The last updater of the entity
- Blueprint string
- The blueprint identifier the entity relates to
- Created
At string - The creation date of the entity
- Created
By string - The creator of the entity
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
Get
Search Entity Properties - The properties of the entity
- Relations
Get
Search Entity Relations - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Scorecards
map[string]Get
Search Entity Scorecards - The scorecards of the entity
- Teams []string
- The teams the entity belongs to
- Title string
- The title of the entity
- Updated
At string - The last update date of the entity
- Updated
By string - The last updater of the entity
- blueprint String
- The blueprint identifier the entity relates to
- created
At String - The creation date of the entity
- created
By String - The creator of the entity
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties
Get
Search Entity Properties - The properties of the entity
- relations
Get
Search Entity Relations - The relations of the entity
- run
Id String - The runID of the action run that created the entity
- scorecards
Map<String,Get
Search Entity Scorecards> - The scorecards of the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
- updated
At String - The last update date of the entity
- updated
By String - The last updater of the entity
- blueprint string
- The blueprint identifier the entity relates to
- created
At string - The creation date of the entity
- created
By string - The creator of the entity
- icon string
- The icon of the entity
- identifier string
- The identifier of the entity
- properties
Get
Search Entity Properties - The properties of the entity
- relations
Get
Search Entity Relations - The relations of the entity
- run
Id string - The runID of the action run that created the entity
- scorecards
{[key: string]: Get
Search Entity Scorecards} - The scorecards of the entity
- teams string[]
- The teams the entity belongs to
- title string
- The title of the entity
- updated
At string - The last update date of the entity
- updated
By string - The last updater of the entity
- blueprint str
- The blueprint identifier the entity relates to
- created_
at str - The creation date of the entity
- created_
by str - The creator of the entity
- icon str
- The icon of the entity
- identifier str
- The identifier of the entity
- properties
Get
Search Entity Properties - The properties of the entity
- relations
Get
Search Entity Relations - The relations of the entity
- run_
id str - The runID of the action run that created the entity
- scorecards
Mapping[str, Get
Search Entity Scorecards] - The scorecards of the entity
- teams Sequence[str]
- The teams the entity belongs to
- title str
- The title of the entity
- updated_
at str - The last update date of the entity
- updated_
by str - The last updater of the entity
- blueprint String
- The blueprint identifier the entity relates to
- created
At String - The creation date of the entity
- created
By String - The creator of the entity
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties Property Map
- The properties of the entity
- relations Property Map
- The relations of the entity
- run
Id String - The runID of the action run that created the entity
- scorecards Map<Property Map>
- The scorecards of the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
- updated
At String - The last update date of the entity
- updated
By String - The last updater of the entity
GetSearchEntityProperties
- Array
Props port_labs. Port. Inputs. Get Search Entity Properties Array Props - The array properties of the entity
- Boolean
Props Dictionary<string, bool> - The bool properties of the entity
- Number
Props Dictionary<string, double> - The number properties of the entity
- Object
Props Dictionary<string, string> - The object properties of the entity
- String
Props Dictionary<string, string> - The string properties of the entity
- Array
Props GetSearch Entity Properties Array Props - The array properties of the entity
- Boolean
Props map[string]bool - The bool properties of the entity
- Number
Props map[string]float64 - The number properties of the entity
- Object
Props map[string]string - The object properties of the entity
- String
Props map[string]string - The string properties of the entity
- array
Props GetSearch Entity Properties Array Props - The array properties of the entity
- boolean
Props Map<String,Boolean> - The bool properties of the entity
- number
Props Map<String,Double> - The number properties of the entity
- object
Props Map<String,String> - The object properties of the entity
- string
Props Map<String,String> - The string properties of the entity
- array
Props GetSearch Entity Properties Array Props - The array properties of the entity
- boolean
Props {[key: string]: boolean} - The bool properties of the entity
- number
Props {[key: string]: number} - The number properties of the entity
- object
Props {[key: string]: string} - The object properties of the entity
- string
Props {[key: string]: string} - The string properties of the entity
- array_
props GetSearch Entity Properties Array Props - The array properties of the entity
- boolean_
props Mapping[str, bool] - The bool properties of the entity
- number_
props Mapping[str, float] - The number properties of the entity
- object_
props Mapping[str, str] - The object properties of the entity
- string_
props Mapping[str, str] - The string properties of the entity
- array
Props Property Map - The array properties of the entity
- boolean
Props Map<Boolean> - The bool properties of the entity
- number
Props Map<Number> - The number properties of the entity
- object
Props Map<String> - The object properties of the entity
- string
Props Map<String> - The string properties of the entity
GetSearchEntityPropertiesArrayProps
- Boolean
Items Dictionary<string, ImmutableArray<bool>> - Number
Items Dictionary<string, ImmutableArray<double>> - Object
Items Dictionary<string, ImmutableArray<string>> - String
Items Dictionary<string, ImmutableArray<string>>
- Boolean
Items map[string][]bool - Number
Items map[string][]float64 - Object
Items map[string][]string - String
Items map[string][]string
- boolean
Items Map<String,List<Boolean>> - number
Items Map<String,List<Double>> - object
Items Map<String,List<String>> - string
Items Map<String,List<String>>
- boolean
Items {[key: string]: boolean[]} - number
Items {[key: string]: number[]} - object
Items {[key: string]: string[]} - string
Items {[key: string]: string[]}
- boolean_
items Mapping[str, Sequence[bool]] - number_
items Mapping[str, Sequence[float]] - object_
items Mapping[str, Sequence[str]] - string_
items Mapping[str, Sequence[str]]
- boolean
Items Map<List<Boolean>> - number
Items Map<List<Number>> - object
Items Map<List<String>> - string
Items Map<List<String>>
GetSearchEntityRelations
- Many
Relations Dictionary<string, ImmutableArray<string>> - The many relation of the entity
- Single
Relations Dictionary<string, string> - The single relation of the entity
- Many
Relations map[string][]string - The many relation of the entity
- Single
Relations map[string]string - The single relation of the entity
- many
Relations Map<String,List<String>> - The many relation of the entity
- single
Relations Map<String,String> - The single relation of the entity
- many
Relations {[key: string]: string[]} - The many relation of the entity
- single
Relations {[key: string]: string} - The single relation of the entity
- many_
relations Mapping[str, Sequence[str]] - The many relation of the entity
- single_
relations Mapping[str, str] - The single relation of the entity
- many
Relations Map<List<String>> - The many relation of the entity
- single
Relations Map<String> - The single relation of the entity
GetSearchEntityScorecards
- level String
- rules List<Property Map>
GetSearchEntityScorecardsRule
- Identifier string
- Level string
- Status string
- Identifier string
- Level string
- Status string
- identifier String
- level String
- status String
- identifier string
- level string
- status string
- identifier str
- level str
- status str
- identifier String
- level String
- status 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.