OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi
openstack.keymanager.getContainer
Explore with Pulumi AI
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/v4/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:
getContainer Result
The following output properties are available:
- Acls
List<Pulumi.
Open Stack. Key Manager. Outputs. Get Container Acl> - The list of ACLs assigned to a container. The
read
structure is described below. - Consumers
List<Pulumi.
Open Stack. Key Manager. Outputs. Get Container Consumer> - The list of the container consumers. The structure is described below.
- Container
Ref string - The container reference / where to find the container.
- Created
At string - The date the container ACL was created.
- Creator
Id string - The creator of the container.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Refs List<Pulumi.Open Stack. Key Manager. Outputs. Get Container Secret Ref> - 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.
- Updated
At string - The date the container ACL was last updated.
- Name string
- The name of the consumer.
- Region string
- See Argument Reference above.
- Acls
[]Get
Container Acl - The list of ACLs assigned to a container. The
read
structure is described below. - Consumers
[]Get
Container Consumer - The list of the container consumers. The structure is described below.
- Container
Ref string - The container reference / where to find the container.
- Created
At string - The date the container ACL was created.
- Creator
Id string - The creator of the container.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Refs []GetContainer Secret Ref - 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.
- Updated
At string - The date the container ACL was last updated.
- Name string
- The name of the consumer.
- Region string
- See Argument Reference above.
- acls
List<Get
Container Acl> - The list of ACLs assigned to a container. The
read
structure is described below. - consumers
List<Get
Container Consumer> - The list of the container consumers. The structure is described below.
- container
Ref String - The container reference / where to find the container.
- created
At String - The date the container ACL was created.
- creator
Id String - The creator of the container.
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Refs List<GetContainer Secret Ref> - 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.
- updated
At String - The date the container ACL was last updated.
- name String
- The name of the consumer.
- region String
- See Argument Reference above.
- acls
Get
Container Acl[] - The list of ACLs assigned to a container. The
read
structure is described below. - consumers
Get
Container Consumer[] - The list of the container consumers. The structure is described below.
- container
Ref string - The container reference / where to find the container.
- created
At string - The date the container ACL was created.
- creator
Id string - The creator of the container.
- id string
- The provider-assigned unique ID for this managed resource.
- secret
Refs GetContainer Secret Ref[] - 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.
- updated
At string - The date the container ACL was last updated.
- name string
- The name of the consumer.
- region string
- See Argument Reference above.
- acls
Sequence[Get
Container Acl] - The list of ACLs assigned to a container. The
read
structure is described below. - consumers
Sequence[Get
Container Consumer] - 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[GetContainer Secret Ref] - 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.
- container
Ref String - The container reference / where to find the container.
- created
At String - The date the container ACL was created.
- creator
Id String - The creator of the container.
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Refs 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.
- updated
At 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
- Created
At string - The date the container ACL was created.
- Updated
At string - The date the container ACL was last updated.
- Project
Access 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 tofalse
.
- Created
At string - The date the container ACL was created.
- Updated
At string - The date the container ACL was last updated.
- Project
Access 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 tofalse
.
- created
At String - The date the container ACL was created.
- updated
At String - The date the container ACL was last updated.
- project
Access 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 tofalse
.
- created
At string - The date the container ACL was created.
- updated
At string - The date the container ACL was last updated.
- project
Access 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 tofalse
.
- 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 tofalse
.
- created
At String - The date the container ACL was created.
- updated
At String - The date the container ACL was last updated.
- project
Access 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 tofalse
.
GetContainerConsumer
GetContainerSecretRef
- name str
- The Container name.
- secret_
ref str - 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.