Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Identity.getTagDefault
Explore with Pulumi AI
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
variables:
testTagDefault:
fn::invoke:
Function: oci:Identity:getTagDefault
Arguments:
tagDefaultId: ${testTagDefaultOciIdentityTagDefault.id}
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>
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]
func GetTagDefault(ctx *Context, args *GetTagDefaultArgs, opts ...InvokeOption) (*GetTagDefaultResult, error)
func GetTagDefaultOutput(ctx *Context, args *GetTagDefaultOutputArgs, opts ...InvokeOption) GetTagDefaultResultOutput
> 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)
}
public static CompletableFuture<GetTagDefaultResult> getTagDefault(GetTagDefaultArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Identity/getTagDefault:getTagDefault
arguments:
# arguments dictionary
The following arguments are supported:
- Tag
Default stringId - The OCID of the tag default.
- Tag
Default stringId - The OCID of the tag default.
- tag
Default StringId - The OCID of the tag default.
- tag
Default stringId - The OCID of the tag default.
- tag_
default_ strid - The OCID of the tag default.
- tag
Default StringId - The OCID of the tag default.
getTagDefault Result
The following output properties are available:
- Compartment
Id 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.
- 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.
- If the
- State string
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - Tag
Default stringId - Tag
Definition stringId - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- Tag
Definition stringName - The name used in the tag definition. This field is informational in the context of the tag default.
- Tag
Namespace stringId - The OCID of the tag namespace that contains the tag definition.
- Time
Created 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 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.
- 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.
- If the
- State string
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - Tag
Default stringId - Tag
Definition stringId - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- Tag
Definition stringName - The name used in the tag definition. This field is informational in the context of the tag default.
- Tag
Namespace stringId - The OCID of the tag namespace that contains the tag definition.
- Time
Created 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 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.
- is
Required 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.
- If the
- state String
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - tag
Default StringId - tag
Definition StringId - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- tag
Definition StringName - The name used in the tag definition. This field is informational in the context of the tag default.
- tag
Namespace StringId - The OCID of the tag namespace that contains the tag definition.
- time
Created 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 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.
- is
Required 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.
- If the
- state string
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - tag
Default stringId - tag
Definition stringId - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- tag
Definition stringName - The name used in the tag definition. This field is informational in the context of the tag default.
- tag
Namespace stringId - The OCID of the tag namespace that contains the tag definition.
- time
Created 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.
- If the
- state str
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - tag_
default_ strid - tag_
definition_ strid - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- tag_
definition_ strname - The name used in the tag definition. This field is informational in the context of the tag default.
- tag_
namespace_ strid - 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.
- compartment
Id 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.
- is
Required 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.
- If the
- state String
- The tag default's current state. After creating a
TagDefault
, make sure itslifecycleState
is ACTIVE before using it. - tag
Default StringId - tag
Definition StringId - The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
- tag
Definition StringName - The name used in the tag definition. This field is informational in the context of the tag default.
- tag
Namespace StringId - The OCID of the tag namespace that contains the tag definition.
- time
Created 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.