Yandex

Pulumi Official
Package maintained by Pulumi
v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

getAlbHttpRouter

Get information about a Yandex Application Load Balancer HTTP Router. For more information, see Yandex.Cloud Application Load Balancer.

import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const tf_router = pulumi.output(yandex.getAlbHttpRouter({
    httpRouterId: "my-http-router-id",
}));
import pulumi
import pulumi_yandex as yandex

tf_router = yandex.get_alb_http_router(http_router_id="my-http-router-id")
using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var tf_router = Output.Create(Yandex.GetAlbHttpRouter.InvokeAsync(new Yandex.GetAlbHttpRouterArgs
        {
            HttpRouterId = "my-http-router-id",
        }));
    }

}
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 := "my-http-router-id"
		_, err := yandex.LookupAlbHttpRouter(ctx, &GetAlbHttpRouterArgs{
			HttpRouterId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

This data source is used to define [Application Load Balancer HTTP Router] that can be used by other resources.

Using getAlbHttpRouter

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 getAlbHttpRouter(args: GetAlbHttpRouterArgs, opts?: InvokeOptions): Promise<GetAlbHttpRouterResult>
function getAlbHttpRouterOutput(args: GetAlbHttpRouterOutputArgs, opts?: InvokeOptions): Output<GetAlbHttpRouterResult>
def get_alb_http_router(description: Optional[str] = None,
                        folder_id: Optional[str] = None,
                        http_router_id: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAlbHttpRouterResult
def get_alb_http_router_output(description: Optional[pulumi.Input[str]] = None,
                        folder_id: Optional[pulumi.Input[str]] = None,
                        http_router_id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAlbHttpRouterResult]
func LookupAlbHttpRouter(ctx *Context, args *LookupAlbHttpRouterArgs, opts ...InvokeOption) (*LookupAlbHttpRouterResult, error)
func LookupAlbHttpRouterOutput(ctx *Context, args *LookupAlbHttpRouterOutputArgs, opts ...InvokeOption) LookupAlbHttpRouterResultOutput

> Note: This function is named LookupAlbHttpRouter in the Go SDK.

public static class GetAlbHttpRouter 
{
    public static Task<GetAlbHttpRouterResult> InvokeAsync(GetAlbHttpRouterArgs args, InvokeOptions? opts = null)
    public static Output<GetAlbHttpRouterResult> Invoke(GetAlbHttpRouterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlbHttpRouterResult> getAlbHttpRouter(GetAlbHttpRouterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: yandex:index/getAlbHttpRouter:getAlbHttpRouter
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Description string

Description of the HTTP Router.

FolderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

HttpRouterId string

HTTP Router ID.

Name string
  • Name of the HTTP Router.
Description string

Description of the HTTP Router.

FolderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

HttpRouterId string

HTTP Router ID.

Name string
  • Name of the HTTP Router.
description String

Description of the HTTP Router.

folderId String

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

httpRouterId String

HTTP Router ID.

name String
  • Name of the HTTP Router.
description string

Description of the HTTP Router.

folderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

httpRouterId string

HTTP Router ID.

name string
  • Name of the HTTP Router.
description str

Description of the HTTP Router.

folder_id str

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

http_router_id str

HTTP Router ID.

name str
  • Name of the HTTP Router.
description String

Description of the HTTP Router.

folderId String

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

httpRouterId String

HTTP Router ID.

name String
  • Name of the HTTP Router.

getAlbHttpRouter Result

The following output properties are available:

CreatedAt string

Creation timestamp of this HTTP Router.

Description string

Description of the HTTP Router.

FolderId string
HttpRouterId string
Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, string>

Labels to assign to this HTTP Router.

Name string
CreatedAt string

Creation timestamp of this HTTP Router.

Description string

Description of the HTTP Router.

FolderId string
HttpRouterId string
Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]string

Labels to assign to this HTTP Router.

Name string
createdAt String

Creation timestamp of this HTTP Router.

description String

Description of the HTTP Router.

folderId String
httpRouterId String
id String

The provider-assigned unique ID for this managed resource.

labels Map<String,String>

Labels to assign to this HTTP Router.

name String
createdAt string

Creation timestamp of this HTTP Router.

description string

Description of the HTTP Router.

folderId string
httpRouterId string
id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: string}

Labels to assign to this HTTP Router.

name string
created_at str

Creation timestamp of this HTTP Router.

description str

Description of the HTTP Router.

folder_id str
http_router_id str
id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, str]

Labels to assign to this HTTP Router.

name str
createdAt String

Creation timestamp of this HTTP Router.

description String

Description of the HTTP Router.

folderId String
httpRouterId String
id String

The provider-assigned unique ID for this managed resource.

labels Map<String>

Labels to assign to this HTTP Router.

name String

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes

This Pulumi package is based on the yandex Terraform Provider.