prismacloud.SavedSearch
Explore with Pulumi AI
Import
Resources can be imported using the saved-search ID:
$ pulumi import prismacloud:index/savedSearch:SavedSearch example 11111111-2222-3333-4444-555555555555
Create SavedSearch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SavedSearch(name: string, args: SavedSearchArgs, opts?: CustomResourceOptions);
@overload
def SavedSearch(resource_name: str,
args: SavedSearchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SavedSearch(resource_name: str,
opts: Optional[ResourceOptions] = None,
query: Optional[str] = None,
search_id: Optional[str] = None,
cloud_type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
saved_search_id: Optional[str] = None,
time_range: Optional[SavedSearchTimeRangeArgs] = None)
func NewSavedSearch(ctx *Context, name string, args SavedSearchArgs, opts ...ResourceOption) (*SavedSearch, error)
public SavedSearch(string name, SavedSearchArgs args, CustomResourceOptions? opts = null)
public SavedSearch(String name, SavedSearchArgs args)
public SavedSearch(String name, SavedSearchArgs args, CustomResourceOptions options)
type: prismacloud:SavedSearch
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SavedSearchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SavedSearchArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SavedSearchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SavedSearchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SavedSearchArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var savedSearchResource = new Prismacloud.SavedSearch("savedSearchResource", new()
{
Query = "string",
SearchId = "string",
CloudType = "string",
Description = "string",
Name = "string",
SavedSearchId = "string",
TimeRange = new Prismacloud.Inputs.SavedSearchTimeRangeArgs
{
Absolute = new Prismacloud.Inputs.SavedSearchTimeRangeAbsoluteArgs
{
End = 0,
Start = 0,
},
Relative = new Prismacloud.Inputs.SavedSearchTimeRangeRelativeArgs
{
Amount = 0,
Unit = "string",
},
ToNow = new Prismacloud.Inputs.SavedSearchTimeRangeToNowArgs
{
Unit = "string",
},
},
});
example, err := prismacloud.NewSavedSearch(ctx, "savedSearchResource", &prismacloud.SavedSearchArgs{
Query: pulumi.String("string"),
SearchId: pulumi.String("string"),
CloudType: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SavedSearchId: pulumi.String("string"),
TimeRange: &prismacloud.SavedSearchTimeRangeArgs{
Absolute: &prismacloud.SavedSearchTimeRangeAbsoluteArgs{
End: pulumi.Float64(0),
Start: pulumi.Float64(0),
},
Relative: &prismacloud.SavedSearchTimeRangeRelativeArgs{
Amount: pulumi.Float64(0),
Unit: pulumi.String("string"),
},
ToNow: &prismacloud.SavedSearchTimeRangeToNowArgs{
Unit: pulumi.String("string"),
},
},
})
var savedSearchResource = new SavedSearch("savedSearchResource", SavedSearchArgs.builder()
.query("string")
.searchId("string")
.cloudType("string")
.description("string")
.name("string")
.savedSearchId("string")
.timeRange(SavedSearchTimeRangeArgs.builder()
.absolute(SavedSearchTimeRangeAbsoluteArgs.builder()
.end(0)
.start(0)
.build())
.relative(SavedSearchTimeRangeRelativeArgs.builder()
.amount(0)
.unit("string")
.build())
.toNow(SavedSearchTimeRangeToNowArgs.builder()
.unit("string")
.build())
.build())
.build());
saved_search_resource = prismacloud.SavedSearch("savedSearchResource",
query="string",
search_id="string",
cloud_type="string",
description="string",
name="string",
saved_search_id="string",
time_range={
"absolute": {
"end": 0,
"start": 0,
},
"relative": {
"amount": 0,
"unit": "string",
},
"to_now": {
"unit": "string",
},
})
const savedSearchResource = new prismacloud.SavedSearch("savedSearchResource", {
query: "string",
searchId: "string",
cloudType: "string",
description: "string",
name: "string",
savedSearchId: "string",
timeRange: {
absolute: {
end: 0,
start: 0,
},
relative: {
amount: 0,
unit: "string",
},
toNow: {
unit: "string",
},
},
});
type: prismacloud:SavedSearch
properties:
cloudType: string
description: string
name: string
query: string
savedSearchId: string
searchId: string
timeRange:
absolute:
end: 0
start: 0
relative:
amount: 0
unit: string
toNow:
unit: string
SavedSearch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SavedSearch resource accepts the following input properties:
- Query string
- The RQL query.
- Search
Id string - The search ID.
- Cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - Description string
- Description.
- Name string
- Name (Must be unique and is immutable).
- Saved
Search stringId - Time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- Query string
- The RQL query.
- Search
Id string - The search ID.
- Cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - Description string
- Description.
- Name string
- Name (Must be unique and is immutable).
- Saved
Search stringId - Time
Range SavedSearch Time Range Args - The RQL time range spec, as defined below.
- query String
- The RQL query.
- search
Id String - The search ID.
- cloud
Type String - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description String
- Description.
- name String
- Name (Must be unique and is immutable).
- saved
Search StringId - time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- query string
- The RQL query.
- search
Id string - The search ID.
- cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description string
- Description.
- name string
- Name (Must be unique and is immutable).
- saved
Search stringId - time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- query str
- The RQL query.
- search_
id str - The search ID.
- cloud_
type str - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description str
- Description.
- name str
- Name (Must be unique and is immutable).
- saved_
search_ strid - time_
range SavedSearch Time Range Args - The RQL time range spec, as defined below.
- query String
- The RQL query.
- search
Id String - The search ID.
- cloud
Type String - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description String
- Description.
- name String
- Name (Must be unique and is immutable).
- saved
Search StringId - time
Range Property Map - The RQL time range spec, as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the SavedSearch resource produces the following output properties:
Look up Existing SavedSearch Resource
Get an existing SavedSearch resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SavedSearchState, opts?: CustomResourceOptions): SavedSearch
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
query: Optional[str] = None,
saved: Optional[bool] = None,
saved_search_id: Optional[str] = None,
search_id: Optional[str] = None,
time_range: Optional[SavedSearchTimeRangeArgs] = None) -> SavedSearch
func GetSavedSearch(ctx *Context, name string, id IDInput, state *SavedSearchState, opts ...ResourceOption) (*SavedSearch, error)
public static SavedSearch Get(string name, Input<string> id, SavedSearchState? state, CustomResourceOptions? opts = null)
public static SavedSearch get(String name, Output<String> id, SavedSearchState state, CustomResourceOptions options)
resources: _: type: prismacloud:SavedSearch get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - Description string
- Description.
- Name string
- Name (Must be unique and is immutable).
- Query string
- The RQL query.
- Saved bool
- (bool) This is set to
true
when the saved search is created. - Saved
Search stringId - Search
Id string - The search ID.
- Time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- Cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - Description string
- Description.
- Name string
- Name (Must be unique and is immutable).
- Query string
- The RQL query.
- Saved bool
- (bool) This is set to
true
when the saved search is created. - Saved
Search stringId - Search
Id string - The search ID.
- Time
Range SavedSearch Time Range Args - The RQL time range spec, as defined below.
- cloud
Type String - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description String
- Description.
- name String
- Name (Must be unique and is immutable).
- query String
- The RQL query.
- saved Boolean
- (bool) This is set to
true
when the saved search is created. - saved
Search StringId - search
Id String - The search ID.
- time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- cloud
Type string - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description string
- Description.
- name string
- Name (Must be unique and is immutable).
- query string
- The RQL query.
- saved boolean
- (bool) This is set to
true
when the saved search is created. - saved
Search stringId - search
Id string - The search ID.
- time
Range SavedSearch Time Range - The RQL time range spec, as defined below.
- cloud_
type str - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description str
- Description.
- name str
- Name (Must be unique and is immutable).
- query str
- The RQL query.
- saved bool
- (bool) This is set to
true
when the saved search is created. - saved_
search_ strid - search_
id str - The search ID.
- time_
range SavedSearch Time Range Args - The RQL time range spec, as defined below.
- cloud
Type String - Cloud type. Valid values:
aws
,azure
,gcp
,alibaba_cloud
oroci
. - description String
- Description.
- name String
- Name (Must be unique and is immutable).
- query String
- The RQL query.
- saved Boolean
- (bool) This is set to
true
when the saved search is created. - saved
Search StringId - search
Id String - The search ID.
- time
Range Property Map - The RQL time range spec, as defined below.
Supporting Types
SavedSearchTimeRange, SavedSearchTimeRangeArgs
- Absolute
Saved
Search Time Range Absolute - An absolute time range spec, as defined below.
- Relative
Saved
Search Time Range Relative - A relative time range spec, as defined below.
- To
Now SavedSearch Time Range To Now - A "To Now" time range spec, as defined below.
- Absolute
Saved
Search Time Range Absolute - An absolute time range spec, as defined below.
- Relative
Saved
Search Time Range Relative - A relative time range spec, as defined below.
- To
Now SavedSearch Time Range To Now - A "To Now" time range spec, as defined below.
- absolute
Saved
Search Time Range Absolute - An absolute time range spec, as defined below.
- relative
Saved
Search Time Range Relative - A relative time range spec, as defined below.
- to
Now SavedSearch Time Range To Now - A "To Now" time range spec, as defined below.
- absolute
Saved
Search Time Range Absolute - An absolute time range spec, as defined below.
- relative
Saved
Search Time Range Relative - A relative time range spec, as defined below.
- to
Now SavedSearch Time Range To Now - A "To Now" time range spec, as defined below.
- absolute
Saved
Search Time Range Absolute - An absolute time range spec, as defined below.
- relative
Saved
Search Time Range Relative - A relative time range spec, as defined below.
- to_
now SavedSearch Time Range To Now - A "To Now" time range spec, as defined below.
- absolute Property Map
- An absolute time range spec, as defined below.
- relative Property Map
- A relative time range spec, as defined below.
- to
Now Property Map - A "To Now" time range spec, as defined below.
SavedSearchTimeRangeAbsolute, SavedSearchTimeRangeAbsoluteArgs
SavedSearchTimeRangeRelative, SavedSearchTimeRangeRelativeArgs
SavedSearchTimeRangeToNow, SavedSearchTimeRangeToNowArgs
- Unit string
- The time unit
- Unit string
- The time unit
- unit String
- The time unit
- unit string
- The time unit
- unit str
- The time unit
- unit String
- The time unit
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.