1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsShareAccessorBinding
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsShareAccessorBinding

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about a ShareAccessorBinding. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const isShareAccessorBindings = ibm.getIsShareAccessorBindings({
        share: "shareId",
    });
    const isShareAccessorBinding = ibm.getIsShareAccessorBinding({
        accessorBinding: "share_accessor_binding_id",
        share: "share_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    is_share_accessor_bindings = ibm.get_is_share_accessor_bindings(share="shareId")
    is_share_accessor_binding = ibm.get_is_share_accessor_binding(accessor_binding="share_accessor_binding_id",
        share="share_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIsShareAccessorBindings(ctx, &ibm.GetIsShareAccessorBindingsArgs{
    			Share: "shareId",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ibm.LookupIsShareAccessorBinding(ctx, &ibm.LookupIsShareAccessorBindingArgs{
    			AccessorBinding: "share_accessor_binding_id",
    			Share:           "share_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var isShareAccessorBindings = Ibm.GetIsShareAccessorBindings.Invoke(new()
        {
            Share = "shareId",
        });
    
        var isShareAccessorBinding = Ibm.GetIsShareAccessorBinding.Invoke(new()
        {
            AccessorBinding = "share_accessor_binding_id",
            Share = "share_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsShareAccessorBindingsArgs;
    import com.pulumi.ibm.inputs.GetIsShareAccessorBindingArgs;
    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 isShareAccessorBindings = IbmFunctions.getIsShareAccessorBindings(GetIsShareAccessorBindingsArgs.builder()
                .share("shareId")
                .build());
    
            final var isShareAccessorBinding = IbmFunctions.getIsShareAccessorBinding(GetIsShareAccessorBindingArgs.builder()
                .accessorBinding("share_accessor_binding_id")
                .share("share_id")
                .build());
    
        }
    }
    
    variables:
      isShareAccessorBindings:
        fn::invoke:
          function: ibm:getIsShareAccessorBindings
          arguments:
            share: shareId
      isShareAccessorBinding:
        fn::invoke:
          function: ibm:getIsShareAccessorBinding
          arguments:
            accessorBinding: share_accessor_binding_id
            share: share_id
    

    Using getIsShareAccessorBinding

    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 getIsShareAccessorBinding(args: GetIsShareAccessorBindingArgs, opts?: InvokeOptions): Promise<GetIsShareAccessorBindingResult>
    function getIsShareAccessorBindingOutput(args: GetIsShareAccessorBindingOutputArgs, opts?: InvokeOptions): Output<GetIsShareAccessorBindingResult>
    def get_is_share_accessor_binding(accessor_binding: Optional[str] = None,
                                      id: Optional[str] = None,
                                      share: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIsShareAccessorBindingResult
    def get_is_share_accessor_binding_output(accessor_binding: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      share: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIsShareAccessorBindingResult]
    func LookupIsShareAccessorBinding(ctx *Context, args *LookupIsShareAccessorBindingArgs, opts ...InvokeOption) (*LookupIsShareAccessorBindingResult, error)
    func LookupIsShareAccessorBindingOutput(ctx *Context, args *LookupIsShareAccessorBindingOutputArgs, opts ...InvokeOption) LookupIsShareAccessorBindingResultOutput

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

    public static class GetIsShareAccessorBinding 
    {
        public static Task<GetIsShareAccessorBindingResult> InvokeAsync(GetIsShareAccessorBindingArgs args, InvokeOptions? opts = null)
        public static Output<GetIsShareAccessorBindingResult> Invoke(GetIsShareAccessorBindingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsShareAccessorBindingResult> getIsShareAccessorBinding(GetIsShareAccessorBindingArgs args, InvokeOptions options)
    public static Output<GetIsShareAccessorBindingResult> getIsShareAccessorBinding(GetIsShareAccessorBindingArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsShareAccessorBinding:getIsShareAccessorBinding
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessorBinding string
    The file share accessor binding identifier.
    Share string
    The file share identifier.
    Id string
    (String) The unique identifier for this account.
    AccessorBinding string
    The file share accessor binding identifier.
    Share string
    The file share identifier.
    Id string
    (String) The unique identifier for this account.
    accessorBinding String
    The file share accessor binding identifier.
    share String
    The file share identifier.
    id String
    (String) The unique identifier for this account.
    accessorBinding string
    The file share accessor binding identifier.
    share string
    The file share identifier.
    id string
    (String) The unique identifier for this account.
    accessor_binding str
    The file share accessor binding identifier.
    share str
    The file share identifier.
    id str
    (String) The unique identifier for this account.
    accessorBinding String
    The file share accessor binding identifier.
    share String
    The file share identifier.
    id String
    (String) The unique identifier for this account.

    getIsShareAccessorBinding Result

    The following output properties are available:

    AccessorBinding string
    Accessors List<GetIsShareAccessorBindingAccessor>
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    CreatedAt string
    (String) The date and time that the share accessor binding was created.
    Href string
    (String) The URL for this share accessor binding.
    Id string
    (String) The unique identifier for this account.
    LifecycleState string
    (String) The lifecycle state of the file share accessor binding.
    ResourceType string
    (String) The resource type.
    Share string
    AccessorBinding string
    Accessors []GetIsShareAccessorBindingAccessor
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    CreatedAt string
    (String) The date and time that the share accessor binding was created.
    Href string
    (String) The URL for this share accessor binding.
    Id string
    (String) The unique identifier for this account.
    LifecycleState string
    (String) The lifecycle state of the file share accessor binding.
    ResourceType string
    (String) The resource type.
    Share string
    accessorBinding String
    accessors List<GetIsShareAccessorBindingAccessor>
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    createdAt String
    (String) The date and time that the share accessor binding was created.
    href String
    (String) The URL for this share accessor binding.
    id String
    (String) The unique identifier for this account.
    lifecycleState String
    (String) The lifecycle state of the file share accessor binding.
    resourceType String
    (String) The resource type.
    share String
    accessorBinding string
    accessors GetIsShareAccessorBindingAccessor[]
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    createdAt string
    (String) The date and time that the share accessor binding was created.
    href string
    (String) The URL for this share accessor binding.
    id string
    (String) The unique identifier for this account.
    lifecycleState string
    (String) The lifecycle state of the file share accessor binding.
    resourceType string
    (String) The resource type.
    share string
    accessor_binding str
    accessors Sequence[GetIsShareAccessorBindingAccessor]
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    created_at str
    (String) The date and time that the share accessor binding was created.
    href str
    (String) The URL for this share accessor binding.
    id str
    (String) The unique identifier for this account.
    lifecycle_state str
    (String) The lifecycle state of the file share accessor binding.
    resource_type str
    (String) The resource type.
    share str
    accessorBinding String
    accessors List<Property Map>
    (List) The accessor for this share accessor binding.The resources supported by this property mayexpand in the future. Nested schema for accessor:
    createdAt String
    (String) The date and time that the share accessor binding was created.
    href String
    (String) The URL for this share accessor binding.
    id String
    (String) The unique identifier for this account.
    lifecycleState String
    (String) The lifecycle state of the file share accessor binding.
    resourceType String
    (String) The resource type.
    share String

    Supporting Types

    GetIsShareAccessorBindingAccessor

    Crn string
    (String) The CRN for this file share.
    Deleteds List<GetIsShareAccessorBindingAccessorDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    Href string
    (String) The URL for this share accessor binding.
    Id string
    (String) The unique identifier for this account.
    Name string
    (String) The globally unique name for this region.
    Remotes List<GetIsShareAccessorBindingAccessorRemote>
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    ResourceType string
    (String) The resource type.
    Crn string
    (String) The CRN for this file share.
    Deleteds []GetIsShareAccessorBindingAccessorDeleted
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    Href string
    (String) The URL for this share accessor binding.
    Id string
    (String) The unique identifier for this account.
    Name string
    (String) The globally unique name for this region.
    Remotes []GetIsShareAccessorBindingAccessorRemote
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    ResourceType string
    (String) The resource type.
    crn String
    (String) The CRN for this file share.
    deleteds List<GetIsShareAccessorBindingAccessorDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href String
    (String) The URL for this share accessor binding.
    id String
    (String) The unique identifier for this account.
    name String
    (String) The globally unique name for this region.
    remotes List<GetIsShareAccessorBindingAccessorRemote>
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    resourceType String
    (String) The resource type.
    crn string
    (String) The CRN for this file share.
    deleteds GetIsShareAccessorBindingAccessorDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href string
    (String) The URL for this share accessor binding.
    id string
    (String) The unique identifier for this account.
    name string
    (String) The globally unique name for this region.
    remotes GetIsShareAccessorBindingAccessorRemote[]
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    resourceType string
    (String) The resource type.
    crn str
    (String) The CRN for this file share.
    deleteds Sequence[GetIsShareAccessorBindingAccessorDeleted]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href str
    (String) The URL for this share accessor binding.
    id str
    (String) The unique identifier for this account.
    name str
    (String) The globally unique name for this region.
    remotes Sequence[GetIsShareAccessorBindingAccessorRemote]
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    resource_type str
    (String) The resource type.
    crn String
    (String) The CRN for this file share.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href String
    (String) The URL for this share accessor binding.
    id String
    (String) The unique identifier for this account.
    name String
    (String) The globally unique name for this region.
    remotes List<Property Map>
    (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable. Nested schema for remote:
    resourceType String
    (String) The resource type.

    GetIsShareAccessorBindingAccessorDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsShareAccessorBindingAccessorRemote

    Accounts List<GetIsShareAccessorBindingAccessorRemoteAccount>
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    Regions List<GetIsShareAccessorBindingAccessorRemoteRegion>
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:
    Accounts []GetIsShareAccessorBindingAccessorRemoteAccount
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    Regions []GetIsShareAccessorBindingAccessorRemoteRegion
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:
    accounts List<GetIsShareAccessorBindingAccessorRemoteAccount>
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    regions List<GetIsShareAccessorBindingAccessorRemoteRegion>
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:
    accounts GetIsShareAccessorBindingAccessorRemoteAccount[]
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    regions GetIsShareAccessorBindingAccessorRemoteRegion[]
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:
    accounts Sequence[GetIsShareAccessorBindingAccessorRemoteAccount]
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    regions Sequence[GetIsShareAccessorBindingAccessorRemoteRegion]
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:
    accounts List<Property Map>
    (List) If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account. Nested schema for account:
    regions List<Property Map>
    (List) If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region. Nested schema for region:

    GetIsShareAccessorBindingAccessorRemoteAccount

    Id string
    (String) The unique identifier for this account.
    ResourceType string
    (String) The resource type.
    Id string
    (String) The unique identifier for this account.
    ResourceType string
    (String) The resource type.
    id String
    (String) The unique identifier for this account.
    resourceType String
    (String) The resource type.
    id string
    (String) The unique identifier for this account.
    resourceType string
    (String) The resource type.
    id str
    (String) The unique identifier for this account.
    resource_type str
    (String) The resource type.
    id String
    (String) The unique identifier for this account.
    resourceType String
    (String) The resource type.

    GetIsShareAccessorBindingAccessorRemoteRegion

    Href string
    (String) The URL for this share accessor binding.
    Name string
    (String) The globally unique name for this region.
    Href string
    (String) The URL for this share accessor binding.
    Name string
    (String) The globally unique name for this region.
    href String
    (String) The URL for this share accessor binding.
    name String
    (String) The globally unique name for this region.
    href string
    (String) The URL for this share accessor binding.
    name string
    (String) The globally unique name for this region.
    href str
    (String) The URL for this share accessor binding.
    name str
    (String) The globally unique name for this region.
    href String
    (String) The URL for this share accessor binding.
    name String
    (String) The globally unique name for this region.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud