Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getAlbHttpRouter
Explore with Pulumi AI
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.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Http
Router stringId - HTTP Router ID.
- Name string
- Name of the HTTP Router.
- Description string
- Description of the HTTP Router.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Http
Router stringId - HTTP Router ID.
- Name string
- Name of the HTTP Router.
- description String
- Description of the HTTP Router.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- http
Router StringId - HTTP Router ID.
- name String
- Name of the HTTP Router.
- description string
- Description of the HTTP Router.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- http
Router stringId - 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_ strid - HTTP Router ID.
- name str
- Name of the HTTP Router.
- description String
- Description of the HTTP Router.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- http
Router StringId - HTTP Router ID.
- name String
- Name of the HTTP Router.
getAlbHttpRouter Result
The following output properties are available:
- Created
At string - Creation timestamp of this HTTP Router.
- Description string
- Description of the HTTP Router.
- Folder
Id string - Http
Router stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- Labels to assign to this HTTP Router.
- Name string
- Created
At string - Creation timestamp of this HTTP Router.
- Description string
- Description of the HTTP Router.
- Folder
Id string - Http
Router stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- Labels to assign to this HTTP Router.
- Name string
- created
At String - Creation timestamp of this HTTP Router.
- description String
- Description of the HTTP Router.
- folder
Id String - http
Router StringId - id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- Labels to assign to this HTTP Router.
- name String
- created
At string - Creation timestamp of this HTTP Router.
- description string
- Description of the HTTP Router.
- folder
Id string - http
Router stringId - 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_ strid - id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- Labels to assign to this HTTP Router.
- name str
- created
At String - Creation timestamp of this HTTP Router.
- description String
- Description of the HTTP Router.
- folder
Id String - http
Router StringId - 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
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.