1. Packages
  2. OVH
  3. API Docs
  4. Ip
  5. getService
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Ip.getService

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const myip = ovh.Ip.getService({
        serviceName: "XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    myip = ovh.Ip.get_service(service_name="XXXXXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Ip"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Ip.GetService(ctx, &ip.GetServiceArgs{
    			ServiceName: "XXXXXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myip = Ovh.Ip.GetService.Invoke(new()
        {
            ServiceName = "XXXXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Ip.IpFunctions;
    import com.pulumi.ovh.Ip.inputs.GetServiceArgs;
    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 = IpFunctions.getService(GetServiceArgs.builder()
                .serviceName("XXXXXX")
                .build());
    
        }
    }
    
    variables:
      myip:
        fn::invoke:
          Function: ovh:Ip:getService
          Arguments:
            serviceName: XXXXXX
    

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(service_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(service_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)
    func GetServiceOutput(ctx *Context, args *GetServiceOutputArgs, opts ...InvokeOption) GetServiceResultOutput

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

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Ip/getService:getService
      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

    getService 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<GetServiceRoutedTo>
    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 []GetServiceRoutedTo
    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<GetServiceRoutedTo>
    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 GetServiceRoutedTo[]
    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[ip.GetServiceRoutedTo]
    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

    GetServiceRoutedTo

    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
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud