1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waf
  5. getProtectionCapabilityGroupTags
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Waf.getProtectionCapabilityGroupTags

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 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: compartmentId,
    name: protectionCapabilityGroupTagName,
    type: protectionCapabilityGroupTagType,
});
Copy
import pulumi
import pulumi_oci as oci

test_protection_capability_group_tags = oci.Waf.get_protection_capability_group_tags(compartment_id=compartment_id,
    name=protection_capability_group_tag_name,
    type=protection_capability_group_tag_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: compartmentId,
			Name:          pulumi.StringRef(protectionCapabilityGroupTagName),
			Type:          pulumi.StringRef(protectionCapabilityGroupTagType),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 = compartmentId,
        Name = protectionCapabilityGroupTagName,
        Type = protectionCapabilityGroupTagType,
    });

});
Copy
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(compartmentId)
            .name(protectionCapabilityGroupTagName)
            .type(protectionCapabilityGroupTagType)
            .build());

    }
}
Copy
variables:
  testProtectionCapabilityGroupTags:
    fn::invoke:
      function: oci:Waf:getProtectionCapabilityGroupTags
      arguments:
        compartmentId: ${compartmentId}
        name: ${protectionCapabilityGroupTagName}
        type: ${protectionCapabilityGroupTagType}
Copy

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>
Copy
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]
Copy
func GetProtectionCapabilityGroupTags(ctx *Context, args *GetProtectionCapabilityGroupTagsArgs, opts ...InvokeOption) (*GetProtectionCapabilityGroupTagsResult, error)
func GetProtectionCapabilityGroupTagsOutput(ctx *Context, args *GetProtectionCapabilityGroupTagsOutputArgs, opts ...InvokeOption) GetProtectionCapabilityGroupTagsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProtectionCapabilityGroupTagsResult> getProtectionCapabilityGroupTags(GetProtectionCapabilityGroupTagsArgs args, InvokeOptions options)
public static Output<GetProtectionCapabilityGroupTagsResult> getProtectionCapabilityGroupTags(GetProtectionCapabilityGroupTagsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Waf/getProtectionCapabilityGroupTags:getProtectionCapabilityGroupTags
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. 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 This property is required. string
The OCID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. []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 This property is required. String
The OCID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. 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 This property is required. string
The OCID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. 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 This property is required. str
The OCID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[waf.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 This property is required. String
The OCID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. 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 Sequence[waf.GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection]
The list of protection_capability_group_tag_collection.
filters Sequence[waf.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 This property is required. string
A filter to return only resources that match the entire name given.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return only resources that match the entire name given.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return only resources that match the entire name given.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return only resources that match the entire name given.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return only resources that match the entire name given.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return only resources that match the entire name given.
values This property is required. List<String>
regex Boolean

GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollection

Items This property is required. List<GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem>
List of protection capabilities group tags.
Items This property is required. []GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem
List of protection capabilities group tags.
items This property is required. List<GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem>
List of protection capabilities group tags.
items This property is required. GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem[]
List of protection capabilities group tags.
items This property is required. Sequence[waf.GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem]
List of protection capabilities group tags.
items This property is required. List<Property Map>
List of protection capabilities group tags.

GetProtectionCapabilityGroupTagsProtectionCapabilityGroupTagCollectionItem

Name This property is required. string
A filter to return only resources that match the entire name given.
Name This property is required. string
A filter to return only resources that match the entire name given.
name This property is required. String
A filter to return only resources that match the entire name given.
name This property is required. string
A filter to return only resources that match the entire name given.
name This property is required. str
A filter to return only resources that match the entire name given.
name This property is required. 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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi