Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getIpService

Use this data source to retrieve information about an ip service.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var myip = Ovh.GetIpService.Invoke(new()
    {
        ServiceName = "XXXXXX",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.LookupIpService(ctx, &GetIpServiceArgs{
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetIpServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var myip = OvhFunctions.getIpService(GetIpServiceArgs.builder()
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

myip = ovh.get_ip_service(service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const myip = pulumi.output(ovh.getIpService({
    serviceName: "XXXXXX",
}));
variables:
  myip:
    Fn::Invoke:
      Function: ovh:getIpService
      Arguments:
        serviceName: XXXXXX

Using getIpService

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 getIpService(args: GetIpServiceArgs, opts?: InvokeOptions): Promise<GetIpServiceResult>
function getIpServiceOutput(args: GetIpServiceOutputArgs, opts?: InvokeOptions): Output<GetIpServiceResult>
def get_ip_service(service_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetIpServiceResult
def get_ip_service_output(service_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetIpServiceResult]
func LookupIpService(ctx *Context, args *LookupIpServiceArgs, opts ...InvokeOption) (*LookupIpServiceResult, error)
func LookupIpServiceOutput(ctx *Context, args *LookupIpServiceOutputArgs, opts ...InvokeOption) LookupIpServiceResultOutput

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

public static class GetIpService 
{
    public static Task<GetIpServiceResult> InvokeAsync(GetIpServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetIpServiceResult> Invoke(GetIpServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpServiceResult> getIpService(GetIpServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getIpService:getIpService
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ServiceName string

The service name

ServiceName string

The service name

serviceName String

The service name

serviceName string

The service name

service_name str

The service name

serviceName String

The service name

getIpService Result

The following output properties are available:

CanBeTerminated bool

can be terminated

Country string

country

Description string

Custom description on your ip

Id string

The provider-assigned unique ID for this managed resource.

Ip string

ip block

OrganisationId string

IP block organisation Id

RoutedTos List<Lbrlabs.PulumiPackage.Ovh.Outputs.GetIpServiceRoutedTo>

Routage information

ServiceName string

Service where ip is routed to

Type string

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

CanBeTerminated bool

can be terminated

Country string

country

Description string

Custom description on your ip

Id string

The provider-assigned unique ID for this managed resource.

Ip string

ip block

OrganisationId string

IP block organisation Id

RoutedTos []GetIpServiceRoutedTo

Routage information

ServiceName string

Service where ip is routed to

Type string

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

canBeTerminated Boolean

can be terminated

country String

country

description String

Custom description on your ip

id String

The provider-assigned unique ID for this managed resource.

ip String

ip block

organisationId String

IP block organisation Id

routedTos List<GetIpServiceRoutedTo>

Routage information

serviceName String

Service where ip is routed to

type String

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

canBeTerminated boolean

can be terminated

country string

country

description string

Custom description on your ip

id string

The provider-assigned unique ID for this managed resource.

ip string

ip block

organisationId string

IP block organisation Id

routedTos GetIpServiceRoutedTo[]

Routage information

serviceName string

Service where ip is routed to

type string

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

can_be_terminated bool

can be terminated

country str

country

description str

Custom description on your ip

id str

The provider-assigned unique ID for this managed resource.

ip str

ip block

organisation_id str

IP block organisation Id

routed_tos Sequence[GetIpServiceRoutedTo]

Routage information

service_name str

Service where ip is routed to

type str

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

canBeTerminated Boolean

can be terminated

country String

country

description String

Custom description on your ip

id String

The provider-assigned unique ID for this managed resource.

ip String

ip block

organisationId String

IP block organisation Id

routedTos List<Property Map>

Routage information

serviceName String

Service where ip is routed to

type String

Possible values for ip type ( "cdn", "cloud", "dedicated", "failover", "hosted_ssl", "housing", "loadBalancing", "mail", "overthebox", "pcc", "pci", "private", "vpn", "vps", "vrack", "xdsl")

Supporting Types

GetIpServiceRoutedTo

ServiceName string

The service name

ServiceName string

The service name

serviceName String

The service name

serviceName string

The service name

service_name str

The service name

serviceName String

The service name

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.