OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.Ip.getService
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Service
Name string - The service name
 
- Service
Name string - The service name
 
- service
Name String - The service name
 
- service
Name string - The service name
 
- service_
name str - The service name
 
- service
Name String - The service name
 
getService Result
The following output properties are available:
- Can
Be boolTerminated  - 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
 - Organisation
Id string - IP block organisation Id
 - Routed
Tos List<GetService Routed To>  - Routage information
 - Service
Name 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 boolTerminated  - 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
 - Organisation
Id string - IP block organisation Id
 - Routed
Tos []GetService Routed To  - Routage information
 - Service
Name 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 BooleanTerminated  - 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
 - organisation
Id String - IP block organisation Id
 - routed
Tos List<GetService Routed To>  - Routage information
 - service
Name 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 booleanTerminated  - 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
 - organisation
Id string - IP block organisation Id
 - routed
Tos GetService Routed To[]  - Routage information
 - service
Name 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_ boolterminated  - 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.Get Service Routed To]  - 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")
 
- can
Be BooleanTerminated  - 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
 - organisation
Id String - IP block organisation Id
 - routed
Tos List<Property Map> - Routage information
 - service
Name 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   
- Service
Name string - The service name
 
- Service
Name string - The service name
 
- service
Name String - The service name
 
- service
Name string - The service name
 
- service_
name str - The service name
 
- service
Name String - The service name
 
Package Details
- Repository
 - ovh ovh/pulumi-ovh
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ovhTerraform Provider.