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

oci.Identity.getTagDefault

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides details about a specific Tag Default resource in Oracle Cloud Infrastructure Identity service.

Retrieves the specified tag default.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTagDefault = oci.Identity.getTagDefault({
    tagDefaultId: testTagDefaultOciIdentityTagDefault.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_tag_default = oci.Identity.get_tag_default(tag_default_id=test_tag_default_oci_identity_tag_default["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := identity.GetTagDefault(ctx, &identity.GetTagDefaultArgs{
			TagDefaultId: testTagDefaultOciIdentityTagDefault.Id,
		}, 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 testTagDefault = Oci.Identity.GetTagDefault.Invoke(new()
    {
        TagDefaultId = testTagDefaultOciIdentityTagDefault.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetTagDefaultArgs;
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 testTagDefault = IdentityFunctions.getTagDefault(GetTagDefaultArgs.builder()
            .tagDefaultId(testTagDefaultOciIdentityTagDefault.id())
            .build());

    }
}
Copy
variables:
  testTagDefault:
    fn::invoke:
      function: oci:Identity:getTagDefault
      arguments:
        tagDefaultId: ${testTagDefaultOciIdentityTagDefault.id}
Copy

Using getTagDefault

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 getTagDefault(args: GetTagDefaultArgs, opts?: InvokeOptions): Promise<GetTagDefaultResult>
function getTagDefaultOutput(args: GetTagDefaultOutputArgs, opts?: InvokeOptions): Output<GetTagDefaultResult>
Copy
def get_tag_default(tag_default_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetTagDefaultResult
def get_tag_default_output(tag_default_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetTagDefaultResult]
Copy
func GetTagDefault(ctx *Context, args *GetTagDefaultArgs, opts ...InvokeOption) (*GetTagDefaultResult, error)
func GetTagDefaultOutput(ctx *Context, args *GetTagDefaultOutputArgs, opts ...InvokeOption) GetTagDefaultResultOutput
Copy

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

public static class GetTagDefault 
{
    public static Task<GetTagDefaultResult> InvokeAsync(GetTagDefaultArgs args, InvokeOptions? opts = null)
    public static Output<GetTagDefaultResult> Invoke(GetTagDefaultInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTagDefaultResult> getTagDefault(GetTagDefaultArgs args, InvokeOptions options)
public static Output<GetTagDefaultResult> getTagDefault(GetTagDefaultArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Identity/getTagDefault:getTagDefault
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TagDefaultId This property is required. string
The OCID of the tag default.
TagDefaultId This property is required. string
The OCID of the tag default.
tagDefaultId This property is required. String
The OCID of the tag default.
tagDefaultId This property is required. string
The OCID of the tag default.
tag_default_id This property is required. str
The OCID of the tag default.
tagDefaultId This property is required. String
The OCID of the tag default.

getTagDefault Result

The following output properties are available:

CompartmentId string
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
Id string
The OCID of the tag default.
IsRequired bool
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
State string
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
TagDefaultId string
TagDefinitionId string
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
TagDefinitionName string
The name used in the tag definition. This field is informational in the context of the tag default.
TagNamespaceId string
The OCID of the tag namespace that contains the tag definition.
TimeCreated string
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Value string
The default value for the tag definition. This will be applied to all new resources created in the compartment.
CompartmentId string
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
Id string
The OCID of the tag default.
IsRequired bool
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
State string
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
TagDefaultId string
TagDefinitionId string
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
TagDefinitionName string
The name used in the tag definition. This field is informational in the context of the tag default.
TagNamespaceId string
The OCID of the tag namespace that contains the tag definition.
TimeCreated string
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Value string
The default value for the tag definition. This will be applied to all new resources created in the compartment.
compartmentId String
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
id String
The OCID of the tag default.
isRequired Boolean
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
state String
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
tagDefaultId String
tagDefinitionId String
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
tagDefinitionName String
The name used in the tag definition. This field is informational in the context of the tag default.
tagNamespaceId String
The OCID of the tag namespace that contains the tag definition.
timeCreated String
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
value String
The default value for the tag definition. This will be applied to all new resources created in the compartment.
compartmentId string
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
id string
The OCID of the tag default.
isRequired boolean
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
state string
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
tagDefaultId string
tagDefinitionId string
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
tagDefinitionName string
The name used in the tag definition. This field is informational in the context of the tag default.
tagNamespaceId string
The OCID of the tag namespace that contains the tag definition.
timeCreated string
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
value string
The default value for the tag definition. This will be applied to all new resources created in the compartment.
compartment_id str
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
id str
The OCID of the tag default.
is_required bool
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
state str
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
tag_default_id str
tag_definition_id str
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
tag_definition_name str
The name used in the tag definition. This field is informational in the context of the tag default.
tag_namespace_id str
The OCID of the tag namespace that contains the tag definition.
time_created str
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
value str
The default value for the tag definition. This will be applied to all new resources created in the compartment.
compartmentId String
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
id String
The OCID of the tag default.
isRequired Boolean
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
state String
The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
tagDefaultId String
tagDefinitionId String
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
tagDefinitionName String
The name used in the tag definition. This field is informational in the context of the tag default.
tagNamespaceId String
The OCID of the tag namespace that contains the tag definition.
timeCreated String
Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
value String
The default value for the tag definition. This will be applied to all new resources created in the compartment.

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