Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getServerlessContainer
Explore with Pulumi AI
Get information about a Yandex Cloud Serverless Container.
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const my_container = pulumi.output(yandex.getServerlessContainer({
    containerId: "are1samplecontainer11",
}));
import pulumi
import pulumi_yandex as yandex
my_container = yandex.get_serverless_container(container_id="are1samplecontainer11")
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
    public MyStack()
    {
        var my_container = Output.Create(Yandex.GetServerlessContainer.InvokeAsync(new Yandex.GetServerlessContainerArgs
        {
            ContainerId = "are1samplecontainer11",
        }));
    }
}
package main
import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "are1samplecontainer11"
		_, err := yandex.LookupServerlessContainer(ctx, &GetServerlessContainerArgs{
			ContainerId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
This data source is used to define Yandex Cloud Container that can be used by other resources.
Using getServerlessContainer
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 getServerlessContainer(args: GetServerlessContainerArgs, opts?: InvokeOptions): Promise<GetServerlessContainerResult>
function getServerlessContainerOutput(args: GetServerlessContainerOutputArgs, opts?: InvokeOptions): Output<GetServerlessContainerResult>def get_serverless_container(container_id: Optional[str] = None,
                             folder_id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetServerlessContainerResult
def get_serverless_container_output(container_id: Optional[pulumi.Input[str]] = None,
                             folder_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetServerlessContainerResult]func LookupServerlessContainer(ctx *Context, args *LookupServerlessContainerArgs, opts ...InvokeOption) (*LookupServerlessContainerResult, error)
func LookupServerlessContainerOutput(ctx *Context, args *LookupServerlessContainerOutputArgs, opts ...InvokeOption) LookupServerlessContainerResultOutput> Note: This function is named LookupServerlessContainer in the Go SDK.
public static class GetServerlessContainer 
{
    public static Task<GetServerlessContainerResult> InvokeAsync(GetServerlessContainerArgs args, InvokeOptions? opts = null)
    public static Output<GetServerlessContainerResult> Invoke(GetServerlessContainerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerlessContainerResult> getServerlessContainer(GetServerlessContainerArgs args, InvokeOptions options)
public static Output<GetServerlessContainerResult> getServerlessContainer(GetServerlessContainerArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getServerlessContainer:getServerlessContainer
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ContainerId string
- Yandex Cloud Serverless Container id used to define container
- FolderId string
- Folder ID for the Yandex Cloud Serverless Container
- Name string
- Yandex Cloud Serverless Container name used to define container
- ContainerId string
- Yandex Cloud Serverless Container id used to define container
- FolderId string
- Folder ID for the Yandex Cloud Serverless Container
- Name string
- Yandex Cloud Serverless Container name used to define container
- containerId String
- Yandex Cloud Serverless Container id used to define container
- folderId String
- Folder ID for the Yandex Cloud Serverless Container
- name String
- Yandex Cloud Serverless Container name used to define container
- containerId string
- Yandex Cloud Serverless Container id used to define container
- folderId string
- Folder ID for the Yandex Cloud Serverless Container
- name string
- Yandex Cloud Serverless Container name used to define container
- container_id str
- Yandex Cloud Serverless Container id used to define container
- folder_id str
- Folder ID for the Yandex Cloud Serverless Container
- name str
- Yandex Cloud Serverless Container name used to define container
- containerId String
- Yandex Cloud Serverless Container id used to define container
- folderId String
- Folder ID for the Yandex Cloud Serverless Container
- name String
- Yandex Cloud Serverless Container name used to define container
getServerlessContainer Result
The following output properties are available:
- Concurrency int
- Concurrency of Yandex Cloud Serverless Container
- CoreFraction int
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- Cores int
- CreatedAt string
- Creation timestamp of the Yandex Cloud Serverless Container
- Description string
- Description of the Yandex Cloud Serverless Container
- ExecutionTimeout string
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
List<GetServerless Container Image> 
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- Memory int
- Memory in megabytes of Yandex Cloud Serverless Container
- RevisionId string
- Last revision ID of the Yandex Cloud Serverless Container
- ServiceAccount stringId 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- Url string
- Invoke URL of the Yandex Cloud Serverless Container
- ContainerId string
- FolderId string
- Name string
- Concurrency int
- Concurrency of Yandex Cloud Serverless Container
- CoreFraction int
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- Cores int
- CreatedAt string
- Creation timestamp of the Yandex Cloud Serverless Container
- Description string
- Description of the Yandex Cloud Serverless Container
- ExecutionTimeout string
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
[]GetServerless Container Image 
- Labels map[string]string
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- Memory int
- Memory in megabytes of Yandex Cloud Serverless Container
- RevisionId string
- Last revision ID of the Yandex Cloud Serverless Container
- ServiceAccount stringId 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- Url string
- Invoke URL of the Yandex Cloud Serverless Container
- ContainerId string
- FolderId string
- Name string
- concurrency Integer
- Concurrency of Yandex Cloud Serverless Container
- coreFraction Integer
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores Integer
- createdAt String
- Creation timestamp of the Yandex Cloud Serverless Container
- description String
- Description of the Yandex Cloud Serverless Container
- executionTimeout String
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- id String
- The provider-assigned unique ID for this managed resource.
- images
List<GetServerless Container Image> 
- labels Map<String,String>
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- memory Integer
- Memory in megabytes of Yandex Cloud Serverless Container
- revisionId String
- Last revision ID of the Yandex Cloud Serverless Container
- serviceAccount StringId 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- url String
- Invoke URL of the Yandex Cloud Serverless Container
- containerId String
- folderId String
- name String
- concurrency number
- Concurrency of Yandex Cloud Serverless Container
- coreFraction number
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores number
- createdAt string
- Creation timestamp of the Yandex Cloud Serverless Container
- description string
- Description of the Yandex Cloud Serverless Container
- executionTimeout string
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- id string
- The provider-assigned unique ID for this managed resource.
- images
GetServerless Container Image[] 
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- memory number
- Memory in megabytes of Yandex Cloud Serverless Container
- revisionId string
- Last revision ID of the Yandex Cloud Serverless Container
- serviceAccount stringId 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- url string
- Invoke URL of the Yandex Cloud Serverless Container
- containerId string
- folderId string
- name string
- concurrency int
- Concurrency of Yandex Cloud Serverless Container
- core_fraction int
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores int
- created_at str
- Creation timestamp of the Yandex Cloud Serverless Container
- description str
- Description of the Yandex Cloud Serverless Container
- execution_timeout str
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- id str
- The provider-assigned unique ID for this managed resource.
- images
Sequence[GetServerless Container Image] 
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- memory int
- Memory in megabytes of Yandex Cloud Serverless Container
- revision_id str
- Last revision ID of the Yandex Cloud Serverless Container
- service_account_ strid 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- url str
- Invoke URL of the Yandex Cloud Serverless Container
- container_id str
- folder_id str
- name str
- concurrency Number
- Concurrency of Yandex Cloud Serverless Container
- coreFraction Number
- Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores Number
- createdAt String
- Creation timestamp of the Yandex Cloud Serverless Container
- description String
- Description of the Yandex Cloud Serverless Container
- executionTimeout String
- Execution timeout (duration format) of Yandex Cloud Serverless Container
- id String
- The provider-assigned unique ID for this managed resource.
- images List<Property Map>
- labels Map<String>
- A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
- memory Number
- Memory in megabytes of Yandex Cloud Serverless Container
- revisionId String
- Last revision ID of the Yandex Cloud Serverless Container
- serviceAccount StringId 
- Service account ID of Yandex Cloud Serverless Container- image.0.url- URL of image that deployed as Yandex Cloud Serverless Container
- image.0.work_dir- Working directory of Yandex Cloud Serverless Container
- image.0.digest- Digest of image that deployed as Yandex Cloud Serverless Container
- image.0.command- List of commands of the Yandex Cloud Serverless Container
- image.0.args- List of arguments of the Yandex Cloud Serverless Container
- image.0.environment- A set of key/value environment variable pairs of Yandex Cloud Serverless Container
 
- url String
- Invoke URL of the Yandex Cloud Serverless Container
- containerId String
- folderId String
- name String
Supporting Types
GetServerlessContainerImage   
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.