1. Packages
  2. Yandex
  3. API Docs
  4. getServerlessContainer
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getServerlessContainer

Explore with Pulumi AI

Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

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",
}));
Copy
import pulumi
import pulumi_yandex as yandex

my_container = yandex.get_serverless_container(container_id="are1samplecontainer11")
Copy
using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var my_container = Output.Create(Yandex.GetServerlessContainer.InvokeAsync(new Yandex.GetServerlessContainerArgs
        {
            ContainerId = "are1samplecontainer11",
        }));
    }

}
Copy
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
	})
}
Copy

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>
Copy
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]
Copy
func LookupServerlessContainer(ctx *Context, args *LookupServerlessContainerArgs, opts ...InvokeOption) (*LookupServerlessContainerResult, error)
func LookupServerlessContainerOutput(ctx *Context, args *LookupServerlessContainerOutputArgs, opts ...InvokeOption) LookupServerlessContainerResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetServerlessContainerResult> getServerlessContainer(GetServerlessContainerArgs args, InvokeOptions options)
public static Output<GetServerlessContainerResult> getServerlessContainer(GetServerlessContainerArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: yandex:index/getServerlessContainer:getServerlessContainer
  arguments:
    # arguments dictionary
Copy

The 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<GetServerlessContainerImage>
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
ServiceAccountId string
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 []GetServerlessContainerImage
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
ServiceAccountId string
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<GetServerlessContainerImage>
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
serviceAccountId String
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 GetServerlessContainerImage[]
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
serviceAccountId string
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[GetServerlessContainerImage]
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_id str
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
serviceAccountId String
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

Args This property is required. List<string>
Commands This property is required. List<string>
Digest This property is required. string
Environment This property is required. Dictionary<string, string>
Url This property is required. string
Invoke URL of the Yandex Cloud Serverless Container
WorkDir This property is required. string
Args This property is required. []string
Commands This property is required. []string
Digest This property is required. string
Environment This property is required. map[string]string
Url This property is required. string
Invoke URL of the Yandex Cloud Serverless Container
WorkDir This property is required. string
args This property is required. List<String>
commands This property is required. List<String>
digest This property is required. String
environment This property is required. Map<String,String>
url This property is required. String
Invoke URL of the Yandex Cloud Serverless Container
workDir This property is required. String
args This property is required. string[]
commands This property is required. string[]
digest This property is required. string
environment This property is required. {[key: string]: string}
url This property is required. string
Invoke URL of the Yandex Cloud Serverless Container
workDir This property is required. string
args This property is required. Sequence[str]
commands This property is required. Sequence[str]
digest This property is required. str
environment This property is required. Mapping[str, str]
url This property is required. str
Invoke URL of the Yandex Cloud Serverless Container
work_dir This property is required. str
args This property is required. List<String>
commands This property is required. List<String>
digest This property is required. String
environment This property is required. Map<String>
url This property is required. String
Invoke URL of the Yandex Cloud Serverless Container
workDir This property is required. String

Package Details

Repository
Yandex pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi