1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waf
  5. getProtectionCapabilityGroupTags
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Waf.getProtectionCapabilityGroupTags

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides the list of Protection Capability Group Tags in Oracle Cloud Infrastructure Waf service.

    Lists of available group tags filtered by query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProtectionCapabilityGroupTags = oci.Waf.getProtectionCapabilityGroupTags({
        compartmentId: _var.compartment_id,
        name: _var.protection_capability_group_tag_name,
        type: _var.protection_capability_group_tag_type,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_protection_capability_group_tags = oci.Waf.get_protection_capability_group_tags(compartment_id=var["compartment_id"],
        name=var["protection_capability_group_tag_name"],
        type=var["protection_capability_group_tag_type"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waf"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waf.GetProtectionCapabilityGroupTags(ctx, &waf.GetProtectionCapabilityGroupTagsArgs{
    			CompartmentId: _var.Compartment_id,
    			Name:          pulumi.StringRef(_var.Protection_capability_group_tag_name),
    			Type:          pulumi.StringRef(_var.Protection_capability_group_tag_type),
    		}, 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 testProtectionCapabilityGroupTags = Oci.Waf.GetProtectionCapabilityGroupTags.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            Name = @var.Protection_capability_group_tag_name,
            Type = @var.Protection_capability_group_tag_type,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waf.WafFunctions;
    import com.pulumi.oci.Waf.inputs.GetProtectionCapabilityGroupTagsArgs;
    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 testProtectionCapabilityGroupTags = WafFunctions.getProtectionCapabilityGroupTags(GetProtectionCapabilityGroupTagsArgs.builder()
                .compartmentId(var_.compartment_id())
                .name(var_.protection_capability_group_tag_name())
                .type(var_.protection_capability_group_tag_type())
                .build());
    
        }
    }
    
    variables:
      testProtectionCapabilityGroupTags:
        fn::invoke:
          Function: oci:Waf:getProtectionCapabilityGroupTags
          Arguments:
            compartmentId: ${var.compartment_id}
            name: ${var.protection_capability_group_tag_name}
            type: ${var.protection_capability_group_tag_type}
    

    Using getProtectionCapabilityGroupTags

    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 getProtectionCapabilityGroupTags(args: GetProtectionCapabilityGroupTagsArgs, opts?: InvokeOptions): Promise<GetProtectionCapabilityGroupTagsResult>
    function getProtectionCapabilityGroupTagsOutput(args: GetProtectionCapabilityGroupTagsOutputArgs, opts?: InvokeOptions): Output<GetProtectionCapabilityGroupTagsResult>
    def get_protection_capability_group_tags(compartment_id: Optional[str] = None,
                                             filters: Optional[Sequence[_waf.GetProtectionCapabilityGroupTagsFilter]] = None,
                                             name: Optional[str] = None,
                                             type: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetProtectionCapabilityGroupTagsResult
    def get_protection_capability_group_tags_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_waf.GetProtectionCapabilityGroupTagsFilterArgs]]]] = None,
                                             name: Optional[pulumi.Input[str]] = None,
                                             type: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetProtectionCapabilityGroupTagsResult]
    func GetProtectionCapabilityGroupTags(ctx *Context, args *GetProtectionCapabilityGroupTagsArgs, opts ...InvokeOption) (*GetProtectionCapabilityGroupTagsResult, error)
    func GetProtectionCapabilityGroupTagsOutput(ctx *Context, args *GetProtectionCapabilityGroupTagsOutputArgs, opts ...InvokeOption) GetProtectionCapabilityGroupTagsResultOutput

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

    public static class GetProtectionCapabilityGroupTags 
    {
        public static Task<GetProtectionCapabilityGroupTagsResult> InvokeAsync(GetProtectionCapabilityGroupTagsArgs args, InvokeOptions? opts = null)
        public static Output<GetProtectionCapabilityGroupTagsResult> Invoke(GetProtectionCapabilityGroupTagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProtectionCapabilityGroupTagsResult> getProtectionCapabilityGroupTags(GetProtectionCapabilityGroupTagsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waf/getProtectionCapabilityGroupTags:getProtectionCapabilityGroupTags
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetProtectionCapabilityGroupTagsFilter>
    Name string
    A filter to return only resources that match the entire name given.
    Type string
    A filter to return only resources that matches given type.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters []GetProtectionCapabilityGroupTagsFilter
    Name string
    A filter to return only resources that match the entire name given.
    Type string
    A filter to return only resources that matches given type.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<GetProtectionCapabilityGroupTagsFilter>
    name String
    A filter to return only resources that match the entire name given.
    type String
    A filter to return only resources that matches given type.
    compartmentId string
    The OCID of the compartment in which to list resources.
    filters GetProtectionCapabilityGroupTagsFilter[]
    name string
    A filter to return only resources that match the entire name given.
    type string
    A filter to return only resources that matches given type.
    compartment_id str
    The OCID of the compartment in which to list resources.
    filters GetProtectionCapabilityGroupTagsFilter]
    name str
    A filter to return only resources that match the entire name given.
    type str
    A filter to return only resources that matches given type.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<Property Map>
    name String
    A filter to return only resources that match the entire name given.
    type String
    A filter to return only resources that matches given type.

    getProtectionCapabilityGroupTags Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectionCapabilityGroupTagCollections List<GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection>
    The list of protection_capability_group_tag_collection.
    Filters List<GetProtectionCapabilityGroupTagsFilter>
    Name string
    Unique name of protection capability group tag.
    Type string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectionCapabilityGroupTagCollections []GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection
    The list of protection_capability_group_tag_collection.
    Filters []GetProtectionCapabilityGroupTagsFilter
    Name string
    Unique name of protection capability group tag.
    Type string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    protectionCapabilityGroupTagCollections List<GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection>
    The list of protection_capability_group_tag_collection.
    filters List<GetProtectionCapabilityGroupTagsFilter>
    name String
    Unique name of protection capability group tag.
    type String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    protectionCapabilityGroupTagCollections GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection[]
    The list of protection_capability_group_tag_collection.
    filters GetProtectionCapabilityGroupTagsFilter[]
    name string
    Unique name of protection capability group tag.
    type string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    protection_capability_group_tag_collections GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection]
    The list of protection_capability_group_tag_collection.
    filters GetProtectionCapabilityGroupTagsFilter]
    name str
    Unique name of protection capability group tag.
    type str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    protectionCapabilityGroupTagCollections List<Property Map>
    The list of protection_capability_group_tag_collection.
    filters List<Property Map>
    name String
    Unique name of protection capability group tag.
    type String

    Supporting Types

    GetProtectionCapabilityGroupTagsFilter

    Name string
    A filter to return only resources that match the entire name given.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the entire name given.
    Values []string
    Regex bool
    name String
    A filter to return only resources that match the entire name given.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the entire name given.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the entire name given.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the entire name given.
    values List<String>
    regex Boolean

    GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection

    items List<Property Map>
    List of protection capabilities group tags.

    GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem

    Name string
    A filter to return only resources that match the entire name given.
    Name string
    A filter to return only resources that match the entire name given.
    name String
    A filter to return only resources that match the entire name given.
    name string
    A filter to return only resources that match the entire name given.
    name str
    A filter to return only resources that match the entire name given.
    name String
    A filter to return only resources that match the entire name given.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi