1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getDataObject
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi
scm logo
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi

    DataObject data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Replace the ID with the UUID of the SCM Data Object you want to find.
    const scmDataObjectGet = scm.getDataObject({
        id: "b1398675-254e-4eff-8050-007ef2f9c0a1",
    });
    export const scmDataObjectDetails = scmDataObjectGet.then(scmDataObjectGet => scmDataObjectGet.patternType);
    
    import pulumi
    import pulumi_scm as scm
    
    # Replace the ID with the UUID of the SCM Data Object you want to find.
    scm_data_object_get = scm.get_data_object(id="b1398675-254e-4eff-8050-007ef2f9c0a1")
    pulumi.export("scmDataObjectDetails", scm_data_object_get.pattern_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Replace the ID with the UUID of the SCM Data Object you want to find.
    		scmDataObjectGet, err := scm.LookupDataObject(ctx, &scm.LookupDataObjectArgs{
    			Id: "b1398675-254e-4eff-8050-007ef2f9c0a1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmDataObjectDetails", scmDataObjectGet.PatternType)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Replace the ID with the UUID of the SCM Data Object you want to find.
        var scmDataObjectGet = Scm.GetDataObject.Invoke(new()
        {
            Id = "b1398675-254e-4eff-8050-007ef2f9c0a1",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmDataObjectDetails"] = scmDataObjectGet.Apply(getDataObjectResult => getDataObjectResult.PatternType),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetDataObjectArgs;
    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) {
            // Replace the ID with the UUID of the SCM Data Object you want to find.
            final var scmDataObjectGet = ScmFunctions.getDataObject(GetDataObjectArgs.builder()
                .id("b1398675-254e-4eff-8050-007ef2f9c0a1")
                .build());
    
            ctx.export("scmDataObjectDetails", scmDataObjectGet.patternType());
        }
    }
    
    variables:
      # Replace the ID with the UUID of the SCM Data Object you want to find.
      scmDataObjectGet:
        fn::invoke:
          function: scm:getDataObject
          arguments:
            id: b1398675-254e-4eff-8050-007ef2f9c0a1
    outputs:
      # Output the details of the single SCM Dataobject found.
      scmDataObjectDetails: ${scmDataObjectGet.patternType}
    

    Using getDataObject

    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 getDataObject(args: GetDataObjectArgs, opts?: InvokeOptions): Promise<GetDataObjectResult>
    function getDataObjectOutput(args: GetDataObjectOutputArgs, opts?: InvokeOptions): Output<GetDataObjectResult>
    def get_data_object(device: Optional[str] = None,
                        folder: Optional[str] = None,
                        id: Optional[str] = None,
                        name: Optional[str] = None,
                        snippet: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataObjectResult
    def get_data_object_output(device: Optional[pulumi.Input[str]] = None,
                        folder: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        snippet: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDataObjectResult]
    func LookupDataObject(ctx *Context, args *LookupDataObjectArgs, opts ...InvokeOption) (*LookupDataObjectResult, error)
    func LookupDataObjectOutput(ctx *Context, args *LookupDataObjectOutputArgs, opts ...InvokeOption) LookupDataObjectResultOutput

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

    public static class GetDataObject 
    {
        public static Task<GetDataObjectResult> InvokeAsync(GetDataObjectArgs args, InvokeOptions? opts = null)
        public static Output<GetDataObjectResult> Invoke(GetDataObjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataObjectResult> getDataObject(GetDataObjectArgs args, InvokeOptions options)
    public static Output<GetDataObjectResult> getDataObject(GetDataObjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getDataObject:getDataObject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the data object
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    Id string
    The UUID of the data object
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    id String
    The UUID of the data object
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String
    id string
    The UUID of the data object
    device string
    The device in which the resource is defined
    folder string
    name string
    snippet string
    id str
    The UUID of the data object
    device str
    The device in which the resource is defined
    folder str
    name str
    snippet str
    id String
    The UUID of the data object
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String

    getDataObject Result

    The following output properties are available:

    Description string
    Device string
    The device in which the resource is defined
    DisableOverride string
    Folder string
    Id string
    The UUID of the data object
    Name string
    PatternType GetDataObjectPatternType
    Snippet string
    Tfid string
    Description string
    Device string
    The device in which the resource is defined
    DisableOverride string
    Folder string
    Id string
    The UUID of the data object
    Name string
    PatternType GetDataObjectPatternType
    Snippet string
    Tfid string
    description String
    device String
    The device in which the resource is defined
    disableOverride String
    folder String
    id String
    The UUID of the data object
    name String
    patternType GetDataObjectPatternType
    snippet String
    tfid String
    description string
    device string
    The device in which the resource is defined
    disableOverride string
    folder string
    id string
    The UUID of the data object
    name string
    patternType GetDataObjectPatternType
    snippet string
    tfid string
    description str
    device str
    The device in which the resource is defined
    disable_override str
    folder str
    id str
    The UUID of the data object
    name str
    pattern_type GetDataObjectPatternType
    snippet str
    tfid str
    description String
    device String
    The device in which the resource is defined
    disableOverride String
    folder String
    id String
    The UUID of the data object
    name String
    patternType Property Map
    snippet String
    tfid String

    Supporting Types

    GetDataObjectPatternType

    GetDataObjectPatternTypeFileProperties

    GetDataObjectPatternTypeFilePropertiesPattern

    FileProperty string
    File property
    FileType string
    File type
    Name string
    Name
    PropertyValue string
    Property value
    FileProperty string
    File property
    FileType string
    File type
    Name string
    Name
    PropertyValue string
    Property value
    fileProperty String
    File property
    fileType String
    File type
    name String
    Name
    propertyValue String
    Property value
    fileProperty string
    File property
    fileType string
    File type
    name string
    Name
    propertyValue string
    Property value
    file_property str
    File property
    file_type str
    File type
    name str
    Name
    property_value str
    Property value
    fileProperty String
    File property
    fileType String
    File type
    name String
    Name
    propertyValue String
    Property value

    GetDataObjectPatternTypePredefined

    GetDataObjectPatternTypePredefinedPattern

    FileTypes List<string>
    File type
    Name string
    Name
    FileTypes []string
    File type
    Name string
    Name
    fileTypes List<String>
    File type
    name String
    Name
    fileTypes string[]
    File type
    name string
    Name
    file_types Sequence[str]
    File type
    name str
    Name
    fileTypes List<String>
    File type
    name String
    Name

    GetDataObjectPatternTypeRegex

    GetDataObjectPatternTypeRegexPattern

    FileTypes List<string>
    File type
    Name string
    Name
    Regex string
    Regex
    FileTypes []string
    File type
    Name string
    Name
    Regex string
    Regex
    fileTypes List<String>
    File type
    name String
    Name
    regex String
    Regex
    fileTypes string[]
    File type
    name string
    Name
    regex string
    Regex
    file_types Sequence[str]
    File type
    name str
    Name
    regex str
    Regex
    fileTypes List<String>
    File type
    name String
    Name
    regex String
    Regex

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Viewing docs for Strata Cloud Manager v1.0.5
    published on Saturday, Mar 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.