@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
140 lines (139 loc) • 5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.containers.Namespace` data source is used to retrieve information about a Serverless Containers namespace.
*
* Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
*
* ## Retrieve a Serverless Containers namespace
*
* The following commands allow you to:
*
* - retrieve a namespace by its name
* - retrieve a namespace by its ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by namespace name
* const byName = scaleway.containers.getNamespace({
* name: "my-namespace-name",
* });
* // Get info by namespace ID
* const byId = scaleway.containers.getNamespace({
* namespaceId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace */
export declare function getContainerNamespace(args?: GetContainerNamespaceArgs, opts?: pulumi.InvokeOptions): Promise<GetContainerNamespaceResult>;
/**
* A collection of arguments for invoking getContainerNamespace.
*/
export interface GetContainerNamespaceArgs {
/**
* The name of the namespace. Only one of `name` and `namespaceId` should be specified.
*/
name?: string;
/**
* The unique identifier of the namespace. Only one of `name` and `namespaceId` should be specified.
*/
namespaceId?: string;
/**
* `projectId`) The unique identifier of the project with which the namespace is associated.
*/
projectId?: string;
/**
* `region`) The region in which the namespace exists.
*/
region?: string;
}
/**
* A collection of values returned by getContainerNamespace.
*/
export interface GetContainerNamespaceResult {
/**
* The description of the namespace.
*/
readonly description: string;
readonly destroyRegistry: boolean;
/**
* The environment variables of the namespace.
*/
readonly environmentVariables: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name?: string;
readonly namespaceId?: string;
/**
* The unique identifier of the organization with which the namespace is associated.
*/
readonly organizationId: string;
readonly projectId?: string;
readonly region?: string;
/**
* The registry endpoint of the namespace.
*/
readonly registryEndpoint: string;
/**
* The unique identifier of the registry namespace of the Serverless Containers namespace.
*/
readonly registryNamespaceId: string;
readonly secretEnvironmentVariables: {
[key: string]: string;
};
readonly tags: string[];
}
/**
* The `scaleway.containers.Namespace` data source is used to retrieve information about a Serverless Containers namespace.
*
* Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
*
* ## Retrieve a Serverless Containers namespace
*
* The following commands allow you to:
*
* - retrieve a namespace by its name
* - retrieve a namespace by its ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by namespace name
* const byName = scaleway.containers.getNamespace({
* name: "my-namespace-name",
* });
* // Get info by namespace ID
* const byId = scaleway.containers.getNamespace({
* namespaceId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace */
export declare function getContainerNamespaceOutput(args?: GetContainerNamespaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContainerNamespaceResult>;
/**
* A collection of arguments for invoking getContainerNamespace.
*/
export interface GetContainerNamespaceOutputArgs {
/**
* The name of the namespace. Only one of `name` and `namespaceId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The unique identifier of the namespace. Only one of `name` and `namespaceId` should be specified.
*/
namespaceId?: pulumi.Input<string>;
/**
* `projectId`) The unique identifier of the project with which the namespace is associated.
*/
projectId?: pulumi.Input<string>;
/**
* `region`) The region in which the namespace exists.
*/
region?: pulumi.Input<string>;
}