1. Packages
  2. OpenStack
  3. API Docs
  4. keymanager
  5. getContainer
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

openstack.keymanager.getContainer

Explore with Pulumi AI

openstack logo
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

    Use this data source to get the ID of an available Barbican container.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const example = openstack.keymanager.getContainer({
        name: "my_container",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    example = openstack.keymanager.get_container(name="my_container")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/keymanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := keymanager.GetContainer(ctx, &keymanager.GetContainerArgs{
    			Name: pulumi.StringRef("my_container"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var example = OpenStack.KeyManager.GetContainer.Invoke(new()
        {
            Name = "my_container",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.keymanager.KeymanagerFunctions;
    import com.pulumi.openstack.keymanager.inputs.GetContainerArgs;
    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 example = KeymanagerFunctions.getContainer(GetContainerArgs.builder()
                .name("my_container")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: openstack:keymanager:getContainer
          Arguments:
            name: my_container
    

    Using getContainer

    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 getContainer(args: GetContainerArgs, opts?: InvokeOptions): Promise<GetContainerResult>
    function getContainerOutput(args: GetContainerOutputArgs, opts?: InvokeOptions): Output<GetContainerResult>
    def get_container(name: Optional[str] = None,
                      region: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetContainerResult
    def get_container_output(name: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetContainerResult]
    func GetContainer(ctx *Context, args *GetContainerArgs, opts ...InvokeOption) (*GetContainerResult, error)
    func GetContainerOutput(ctx *Context, args *GetContainerOutputArgs, opts ...InvokeOption) GetContainerResultOutput

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

    public static class GetContainer 
    {
        public static Task<GetContainerResult> InvokeAsync(GetContainerArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerResult> Invoke(GetContainerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerResult> getContainer(GetContainerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:keymanager/getContainer:getContainer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The Container name.
    Region string
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.
    Name string
    The Container name.
    Region string
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.
    name String
    The Container name.
    region String
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.
    name string
    The Container name.
    region string
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.
    name str
    The Container name.
    region str
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.
    name String
    The Container name.
    region String
    The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.

    getContainer Result

    The following output properties are available:

    Acls List<Pulumi.OpenStack.KeyManager.Outputs.GetContainerAcl>
    The list of ACLs assigned to a container. The read structure is described below.
    Consumers List<Pulumi.OpenStack.KeyManager.Outputs.GetContainerConsumer>
    The list of the container consumers. The structure is described below.
    ContainerRef string
    The container reference / where to find the container.
    CreatedAt string
    The date the container ACL was created.
    CreatorId string
    The creator of the container.
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretRefs List<Pulumi.OpenStack.KeyManager.Outputs.GetContainerSecretRef>
    A set of dictionaries containing references to secrets. The structure is described below.
    Status string
    The status of the container.
    Type string
    The container type.
    UpdatedAt string
    The date the container ACL was last updated.
    Name string
    The name of the consumer.
    Region string
    See Argument Reference above.
    Acls []GetContainerAcl
    The list of ACLs assigned to a container. The read structure is described below.
    Consumers []GetContainerConsumer
    The list of the container consumers. The structure is described below.
    ContainerRef string
    The container reference / where to find the container.
    CreatedAt string
    The date the container ACL was created.
    CreatorId string
    The creator of the container.
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretRefs []GetContainerSecretRef
    A set of dictionaries containing references to secrets. The structure is described below.
    Status string
    The status of the container.
    Type string
    The container type.
    UpdatedAt string
    The date the container ACL was last updated.
    Name string
    The name of the consumer.
    Region string
    See Argument Reference above.
    acls List<GetContainerAcl>
    The list of ACLs assigned to a container. The read structure is described below.
    consumers List<GetContainerConsumer>
    The list of the container consumers. The structure is described below.
    containerRef String
    The container reference / where to find the container.
    createdAt String
    The date the container ACL was created.
    creatorId String
    The creator of the container.
    id String
    The provider-assigned unique ID for this managed resource.
    secretRefs List<GetContainerSecretRef>
    A set of dictionaries containing references to secrets. The structure is described below.
    status String
    The status of the container.
    type String
    The container type.
    updatedAt String
    The date the container ACL was last updated.
    name String
    The name of the consumer.
    region String
    See Argument Reference above.
    acls GetContainerAcl[]
    The list of ACLs assigned to a container. The read structure is described below.
    consumers GetContainerConsumer[]
    The list of the container consumers. The structure is described below.
    containerRef string
    The container reference / where to find the container.
    createdAt string
    The date the container ACL was created.
    creatorId string
    The creator of the container.
    id string
    The provider-assigned unique ID for this managed resource.
    secretRefs GetContainerSecretRef[]
    A set of dictionaries containing references to secrets. The structure is described below.
    status string
    The status of the container.
    type string
    The container type.
    updatedAt string
    The date the container ACL was last updated.
    name string
    The name of the consumer.
    region string
    See Argument Reference above.
    acls Sequence[GetContainerAcl]
    The list of ACLs assigned to a container. The read structure is described below.
    consumers Sequence[GetContainerConsumer]
    The list of the container consumers. The structure is described below.
    container_ref str
    The container reference / where to find the container.
    created_at str
    The date the container ACL was created.
    creator_id str
    The creator of the container.
    id str
    The provider-assigned unique ID for this managed resource.
    secret_refs Sequence[GetContainerSecretRef]
    A set of dictionaries containing references to secrets. The structure is described below.
    status str
    The status of the container.
    type str
    The container type.
    updated_at str
    The date the container ACL was last updated.
    name str
    The name of the consumer.
    region str
    See Argument Reference above.
    acls List<Property Map>
    The list of ACLs assigned to a container. The read structure is described below.
    consumers List<Property Map>
    The list of the container consumers. The structure is described below.
    containerRef String
    The container reference / where to find the container.
    createdAt String
    The date the container ACL was created.
    creatorId String
    The creator of the container.
    id String
    The provider-assigned unique ID for this managed resource.
    secretRefs List<Property Map>
    A set of dictionaries containing references to secrets. The structure is described below.
    status String
    The status of the container.
    type String
    The container type.
    updatedAt String
    The date the container ACL was last updated.
    name String
    The name of the consumer.
    region String
    See Argument Reference above.

    Supporting Types

    GetContainerAcl

    GetContainerAclRead

    CreatedAt string
    The date the container ACL was created.
    UpdatedAt string
    The date the container ACL was last updated.
    ProjectAccess bool
    Whether the container is accessible project wide.
    Users List<string>
    The list of user IDs, which are allowed to access the container, when project_access is set to false.
    CreatedAt string
    The date the container ACL was created.
    UpdatedAt string
    The date the container ACL was last updated.
    ProjectAccess bool
    Whether the container is accessible project wide.
    Users []string
    The list of user IDs, which are allowed to access the container, when project_access is set to false.
    createdAt String
    The date the container ACL was created.
    updatedAt String
    The date the container ACL was last updated.
    projectAccess Boolean
    Whether the container is accessible project wide.
    users List<String>
    The list of user IDs, which are allowed to access the container, when project_access is set to false.
    createdAt string
    The date the container ACL was created.
    updatedAt string
    The date the container ACL was last updated.
    projectAccess boolean
    Whether the container is accessible project wide.
    users string[]
    The list of user IDs, which are allowed to access the container, when project_access is set to false.
    created_at str
    The date the container ACL was created.
    updated_at str
    The date the container ACL was last updated.
    project_access bool
    Whether the container is accessible project wide.
    users Sequence[str]
    The list of user IDs, which are allowed to access the container, when project_access is set to false.
    createdAt String
    The date the container ACL was created.
    updatedAt String
    The date the container ACL was last updated.
    projectAccess Boolean
    Whether the container is accessible project wide.
    users List<String>
    The list of user IDs, which are allowed to access the container, when project_access is set to false.

    GetContainerConsumer

    Name string
    The Container name.
    Url string
    The consumer URL.
    Name string
    The Container name.
    Url string
    The consumer URL.
    name String
    The Container name.
    url String
    The consumer URL.
    name string
    The Container name.
    url string
    The consumer URL.
    name str
    The Container name.
    url str
    The consumer URL.
    name String
    The Container name.
    url String
    The consumer URL.

    GetContainerSecretRef

    Name string
    The Container name.
    SecretRef string
    The secret reference / where to find the secret, URL.
    Name string
    The Container name.
    SecretRef string
    The secret reference / where to find the secret, URL.
    name String
    The Container name.
    secretRef String
    The secret reference / where to find the secret, URL.
    name string
    The Container name.
    secretRef string
    The secret reference / where to find the secret, URL.
    name str
    The Container name.
    secret_ref str
    The secret reference / where to find the secret, URL.
    name String
    The Container name.
    secretRef String
    The secret reference / where to find the secret, URL.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi