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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getServerlessContainer:getServerlessContainer
arguments:
# arguments dictionary
The following arguments are supported:
- Container
Id string - Yandex Cloud Serverless Container id used to define container
- Folder
Id string - Folder ID for the Yandex Cloud Serverless Container
- Name string
- Yandex Cloud Serverless Container name used to define container
- Container
Id string - Yandex Cloud Serverless Container id used to define container
- Folder
Id string - Folder ID for the Yandex Cloud Serverless Container
- Name string
- Yandex Cloud Serverless Container name used to define container
- container
Id String - Yandex Cloud Serverless Container id used to define container
- folder
Id String - Folder ID for the Yandex Cloud Serverless Container
- name String
- Yandex Cloud Serverless Container name used to define container
- container
Id string - Yandex Cloud Serverless Container id used to define container
- folder
Id 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
- container
Id String - Yandex Cloud Serverless Container id used to define container
- folder
Id 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
- Core
Fraction int - Core fraction (0...100) of the Yandex Cloud Serverless Container
- Cores int
- Created
At string - Creation timestamp of the Yandex Cloud Serverless Container
- Description string
- Description of the Yandex Cloud Serverless Container
- Execution
Timeout string - Execution timeout (duration format) of Yandex Cloud Serverless Container
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
List<Get
Serverless 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
- Revision
Id string - Last revision ID of the Yandex Cloud Serverless Container
- Service
Account stringId - Service account ID of Yandex Cloud Serverless Container
image.0.url
- URL of image that deployed as Yandex Cloud Serverless Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- Container
Id string - Folder
Id 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 string - Creation timestamp of the Yandex Cloud Serverless Container
- Description string
- Description of the Yandex Cloud Serverless Container
- Execution
Timeout string - Execution timeout (duration format) of Yandex Cloud Serverless Container
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
[]Get
Serverless 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
- Revision
Id string - Last revision ID of the Yandex Cloud Serverless Container
- Service
Account stringId - Service account ID of Yandex Cloud Serverless Container
image.0.url
- URL of image that deployed as Yandex Cloud Serverless Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- Container
Id string - Folder
Id string - Name string
- concurrency Integer
- Concurrency of Yandex Cloud Serverless Container
- core
Fraction Integer - Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores Integer
- created
At String - Creation timestamp of the Yandex Cloud Serverless Container
- description String
- Description of the Yandex Cloud Serverless Container
- execution
Timeout String - Execution timeout (duration format) of Yandex Cloud Serverless Container
- id String
- The provider-assigned unique ID for this managed resource.
- images
List<Get
Serverless 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
- revision
Id String - Last revision ID of the Yandex Cloud Serverless Container
- service
Account StringId - Service account ID of Yandex Cloud Serverless Container
image.0.url
- URL of image that deployed as Yandex Cloud Serverless Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- container
Id String - folder
Id String - name String
- concurrency number
- Concurrency of Yandex Cloud Serverless Container
- core
Fraction number - Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores number
- created
At string - Creation timestamp of the Yandex Cloud Serverless Container
- description string
- Description of the Yandex Cloud Serverless Container
- execution
Timeout string - Execution timeout (duration format) of Yandex Cloud Serverless Container
- id string
- The provider-assigned unique ID for this managed resource.
- images
Get
Serverless 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
- revision
Id string - Last revision ID of the Yandex Cloud Serverless Container
- service
Account stringId - Service account ID of Yandex Cloud Serverless Container
image.0.url
- URL of image that deployed as Yandex Cloud Serverless Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- container
Id string - folder
Id 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[Get
Serverless 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 Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- core
Fraction Number - Core fraction (0...100) of the Yandex Cloud Serverless Container
- cores Number
- created
At String - Creation timestamp of the Yandex Cloud Serverless Container
- description String
- Description of the Yandex Cloud Serverless Container
- execution
Timeout 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
- revision
Id String - Last revision ID of the Yandex Cloud Serverless Container
- service
Account StringId - Service account ID of Yandex Cloud Serverless Container
image.0.url
- URL of image that deployed as Yandex Cloud Serverless Containerimage.0.work_dir
- Working directory of Yandex Cloud Serverless Containerimage.0.digest
- Digest of image that deployed as Yandex Cloud Serverless Containerimage.0.command
- List of commands of the Yandex Cloud Serverless Containerimage.0.args
- List of arguments of the Yandex Cloud Serverless Containerimage.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
- container
Id String - folder
Id 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
yandex
Terraform Provider.