oci.CloudGuard.getManagedLists
Explore with Pulumi AI
This data source provides the list of Managed Lists in Oracle Cloud Infrastructure Cloud Guard service.
Returns a list of all ManagedList resources in a compartment, identified by compartmentId.
The ListManagedLists operation returns only the managed lists in compartmentId
passed.
The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return ManagedLists in only
those compartments for which the requestor has INSPECT permissions on at least one resource directly
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
Principal doesn’t have access to even one of the child compartments. This is valid only when
compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListManagedLists on the
compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned.
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedLists = oci.CloudGuard.getManagedLists({
compartmentId: compartmentId,
accessLevel: managedListAccessLevel,
compartmentIdInSubtree: managedListCompartmentIdInSubtree,
displayName: managedListDisplayName,
listType: managedListListType,
resourceMetadataOnly: managedListResourceMetadataOnly,
state: managedListState,
});
import pulumi
import pulumi_oci as oci
test_managed_lists = oci.CloudGuard.get_managed_lists(compartment_id=compartment_id,
access_level=managed_list_access_level,
compartment_id_in_subtree=managed_list_compartment_id_in_subtree,
display_name=managed_list_display_name,
list_type=managed_list_list_type,
resource_metadata_only=managed_list_resource_metadata_only,
state=managed_list_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudGuard"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CloudGuard.GetManagedLists(ctx, &cloudguard.GetManagedListsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(managedListAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(managedListCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(managedListDisplayName),
ListType: pulumi.StringRef(managedListListType),
ResourceMetadataOnly: pulumi.BoolRef(managedListResourceMetadataOnly),
State: pulumi.StringRef(managedListState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testManagedLists = Oci.CloudGuard.GetManagedLists.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = managedListAccessLevel,
CompartmentIdInSubtree = managedListCompartmentIdInSubtree,
DisplayName = managedListDisplayName,
ListType = managedListListType,
ResourceMetadataOnly = managedListResourceMetadataOnly,
State = managedListState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CloudGuard.CloudGuardFunctions;
import com.pulumi.oci.CloudGuard.inputs.GetManagedListsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testManagedLists = CloudGuardFunctions.getManagedLists(GetManagedListsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(managedListAccessLevel)
.compartmentIdInSubtree(managedListCompartmentIdInSubtree)
.displayName(managedListDisplayName)
.listType(managedListListType)
.resourceMetadataOnly(managedListResourceMetadataOnly)
.state(managedListState)
.build());
}
}
variables:
testManagedLists:
fn::invoke:
Function: oci:CloudGuard:getManagedLists
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${managedListAccessLevel}
compartmentIdInSubtree: ${managedListCompartmentIdInSubtree}
displayName: ${managedListDisplayName}
listType: ${managedListListType}
resourceMetadataOnly: ${managedListResourceMetadataOnly}
state: ${managedListState}
Using getManagedLists
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 getManagedLists(args: GetManagedListsArgs, opts?: InvokeOptions): Promise<GetManagedListsResult>
function getManagedListsOutput(args: GetManagedListsOutputArgs, opts?: InvokeOptions): Output<GetManagedListsResult>
def get_managed_lists(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_cloudguard.GetManagedListsFilter]] = None,
list_type: Optional[str] = None,
resource_metadata_only: Optional[bool] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedListsResult
def get_managed_lists_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudguard.GetManagedListsFilterArgs]]]] = None,
list_type: Optional[pulumi.Input[str]] = None,
resource_metadata_only: Optional[pulumi.Input[bool]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedListsResult]
func GetManagedLists(ctx *Context, args *GetManagedListsArgs, opts ...InvokeOption) (*GetManagedListsResult, error)
func GetManagedListsOutput(ctx *Context, args *GetManagedListsOutputArgs, opts ...InvokeOption) GetManagedListsResultOutput
> Note: This function is named GetManagedLists
in the Go SDK.
public static class GetManagedLists
{
public static Task<GetManagedListsResult> InvokeAsync(GetManagedListsArgs args, InvokeOptions? opts = null)
public static Output<GetManagedListsResult> Invoke(GetManagedListsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedListsResult> getManagedLists(GetManagedListsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CloudGuard/getManagedLists:getManagedLists
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Access
Level string - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Managed Lists Filter> - List
Type string - The type of managed list.
- Resource
Metadata boolOnly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- State string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Access
Level string - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Managed Lists Filter - List
Type string - The type of managed list.
- Resource
Metadata boolOnly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- State string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- compartment
Id String - The OCID of the compartment in which to list resources.
- access
Level String - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Managed Lists Filter> - list
Type String - The type of managed list.
- resource
Metadata BooleanOnly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- state String
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- compartment
Id string - The OCID of the compartment in which to list resources.
- access
Level string - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - compartment
Id booleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Managed Lists Filter[] - list
Type string - The type of managed list.
- resource
Metadata booleanOnly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- state string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- compartment_
id str - The OCID of the compartment in which to list resources.
- access_
level str - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - compartment_
id_ boolin_ subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[cloudguard.
Get Managed Lists Filter] - list_
type str - The type of managed list.
- resource_
metadata_ boolonly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- state str
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- compartment
Id String - The OCID of the compartment in which to list resources.
- access
Level String - Valid values are
RESTRICTED
andACCESSIBLE
. Default isRESTRICTED
. Setting this toACCESSIBLE
returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set toRESTRICTED
permissions are checked and no partial results are displayed. - compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of
accessLevel
. - display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- list
Type String - The type of managed list.
- resource
Metadata BooleanOnly - Default is false. When set to true, the list of all Oracle-managed resources metadata supported by Cloud Guard is returned.
- state String
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
getManagedLists Result
The following output properties are available:
- Compartment
Id string - Compartment OCID where the resource is created
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
List List<GetCollections Managed Lists Managed List Collection> - The list of managed_list_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - Managed list display name
- Filters
List<Get
Managed Lists Filter> - List
Type string - Type of information contained in the managed list
- Resource
Metadata boolOnly - State string
- The current lifecycle state of the resource
- Compartment
Id string - Compartment OCID where the resource is created
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
List []GetCollections Managed Lists Managed List Collection - The list of managed_list_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - Managed list display name
- Filters
[]Get
Managed Lists Filter - List
Type string - Type of information contained in the managed list
- Resource
Metadata boolOnly - State string
- The current lifecycle state of the resource
- compartment
Id String - Compartment OCID where the resource is created
- id String
- The provider-assigned unique ID for this managed resource.
- managed
List List<GetCollections Managed Lists Managed List Collection> - The list of managed_list_collection.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - Managed list display name
- filters
List<Get
Managed Lists Filter> - list
Type String - Type of information contained in the managed list
- resource
Metadata BooleanOnly - state String
- The current lifecycle state of the resource
- compartment
Id string - Compartment OCID where the resource is created
- id string
- The provider-assigned unique ID for this managed resource.
- managed
List GetCollections Managed Lists Managed List Collection[] - The list of managed_list_collection.
- access
Level string - compartment
Id booleanIn Subtree - display
Name string - Managed list display name
- filters
Get
Managed Lists Filter[] - list
Type string - Type of information contained in the managed list
- resource
Metadata booleanOnly - state string
- The current lifecycle state of the resource
- compartment_
id str - Compartment OCID where the resource is created
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
list_ Sequence[cloudguard.collections Get Managed Lists Managed List Collection] - The list of managed_list_collection.
- access_
level str - compartment_
id_ boolin_ subtree - display_
name str - Managed list display name
- filters
Sequence[cloudguard.
Get Managed Lists Filter] - list_
type str - Type of information contained in the managed list
- resource_
metadata_ boolonly - state str
- The current lifecycle state of the resource
- compartment
Id String - Compartment OCID where the resource is created
- id String
- The provider-assigned unique ID for this managed resource.
- managed
List List<Property Map>Collections - The list of managed_list_collection.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - Managed list display name
- filters List<Property Map>
- list
Type String - Type of information contained in the managed list
- resource
Metadata BooleanOnly - state String
- The current lifecycle state of the resource
Supporting Types
GetManagedListsFilter
GetManagedListsManagedListCollection
GetManagedListsManagedListCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Managed list description
- Display
Name string - A filter to return only resources that match the entire display name given.
- Feed
Provider string - Provider of the managed list feed
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier that can't be changed after creation
- Is
Editable bool - Is this list editable?
- Lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- List
Items List<string> - List of items in the managed list
- List
Type string - The type of managed list.
- Source
Managed stringList Id - OCID of the source managed list
- State string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the managed list was created. Format defined by RFC3339.
- Time
Updated string - The date and time the managed list was last updated. Format defined by RFC3339.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Managed list description
- Display
Name string - A filter to return only resources that match the entire display name given.
- Feed
Provider string - Provider of the managed list feed
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier that can't be changed after creation
- Is
Editable bool - Is this list editable?
- Lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- List
Items []string - List of items in the managed list
- List
Type string - The type of managed list.
- Source
Managed stringList Id - OCID of the source managed list
- State string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the managed list was created. Format defined by RFC3339.
- Time
Updated string - The date and time the managed list was last updated. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Managed list description
- display
Name String - A filter to return only resources that match the entire display name given.
- feed
Provider String - Provider of the managed list feed
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier that can't be changed after creation
- is
Editable Boolean - Is this list editable?
- lifecyle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- list
Items List<String> - List of items in the managed list
- list
Type String - The type of managed list.
- source
Managed StringList Id - OCID of the source managed list
- state String
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the managed list was created. Format defined by RFC3339.
- time
Updated String - The date and time the managed list was last updated. Format defined by RFC3339.
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- Managed list description
- display
Name string - A filter to return only resources that match the entire display name given.
- feed
Provider string - Provider of the managed list feed
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- Unique identifier that can't be changed after creation
- is
Editable boolean - Is this list editable?
- lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- list
Items string[] - List of items in the managed list
- list
Type string - The type of managed list.
- source
Managed stringList Id - OCID of the source managed list
- state string
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the managed list was created. Format defined by RFC3339.
- time
Updated string - The date and time the managed list was last updated. Format defined by RFC3339.
- compartment_
id str - The OCID of the compartment in which to list resources.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- Managed list description
- display_
name str - A filter to return only resources that match the entire display name given.
- feed_
provider str - Provider of the managed list feed
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- Unique identifier that can't be changed after creation
- is_
editable bool - Is this list editable?
- lifecyle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- list_
items Sequence[str] - List of items in the managed list
- list_
type str - The type of managed list.
- source_
managed_ strlist_ id - OCID of the source managed list
- state str
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- Mapping[str, Any]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time the managed list was created. Format defined by RFC3339.
- time_
updated str - The date and time the managed list was last updated. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Managed list description
- display
Name String - A filter to return only resources that match the entire display name given.
- feed
Provider String - Provider of the managed list feed
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier that can't be changed after creation
- is
Editable Boolean - Is this list editable?
- lifecyle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- list
Items List<String> - List of items in the managed list
- list
Type String - The type of managed list.
- source
Managed StringList Id - OCID of the source managed list
- state String
- The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the managed list was created. Format defined by RFC3339.
- time
Updated String - The date and time the managed list was last updated. Format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.