1. Packages
  2. Packages
  3. DigitalOcean Provider
  4. API Docs
  5. getDedicatedInferences
Viewing docs for DigitalOcean v4.65.0
published on Wednesday, Apr 29, 2026 by Pulumi
digitalocean logo
Viewing docs for DigitalOcean v4.65.0
published on Wednesday, Apr 29, 2026 by Pulumi

    Returns a list of dedicated inference endpoints in your DigitalOcean account, with the ability to filter and sort the results. If no filters are specified, all endpoints will be returned.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const all = digitalocean.getDedicatedInferences({});
    export const allEndpoints = all.then(all => all.dedicatedInferences);
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    all = digitalocean.get_dedicated_inferences()
    pulumi.export("allEndpoints", all.dedicated_inferences)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := digitalocean.GetDedicatedInferences(ctx, &digitalocean.GetDedicatedInferencesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("allEndpoints", all.DedicatedInferences)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var all = DigitalOcean.Index.GetDedicatedInferences.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["allEndpoints"] = all.Apply(getDedicatedInferencesResult => getDedicatedInferencesResult.DedicatedInferences),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetDedicatedInferencesArgs;
    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 all = DigitaloceanFunctions.getDedicatedInferences(GetDedicatedInferencesArgs.builder()
                .build());
    
            ctx.export("allEndpoints", all.dedicatedInferences());
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: digitalocean:getDedicatedInferences
          arguments: {}
    outputs:
      allEndpoints: ${all.dedicatedInferences}
    

    Filter by name

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const filtered = digitalocean.getDedicatedInferences({
        filters: [{
            key: "name",
            values: ["my-inference"],
        }],
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    filtered = digitalocean.get_dedicated_inferences(filters=[{
        "key": "name",
        "values": ["my-inference"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := digitalocean.GetDedicatedInferences(ctx, &digitalocean.GetDedicatedInferencesArgs{
    			Filters: []digitalocean.GetDedicatedInferencesFilter{
    				{
    					Key: "name",
    					Values: []string{
    						"my-inference",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var filtered = DigitalOcean.Index.GetDedicatedInferences.Invoke(new()
        {
            Filters = new[]
            {
                new DigitalOcean.Inputs.GetDedicatedInferencesFilterInputArgs
                {
                    Key = "name",
                    Values = new[]
                    {
                        "my-inference",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetDedicatedInferencesArgs;
    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 filtered = DigitaloceanFunctions.getDedicatedInferences(GetDedicatedInferencesArgs.builder()
                .filters(GetDedicatedInferencesFilterArgs.builder()
                    .key("name")
                    .values("my-inference")
                    .build())
                .build());
    
        }
    }
    
    variables:
      filtered:
        fn::invoke:
          function: digitalocean:getDedicatedInferences
          arguments:
            filters:
              - key: name
                values:
                  - my-inference
    

    Filter by region

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const byRegion = digitalocean.getDedicatedInferences({
        filters: [{
            key: "region",
            values: ["tor1"],
        }],
        sorts: [{
            key: "name",
            direction: "asc",
        }],
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    by_region = digitalocean.get_dedicated_inferences(filters=[{
            "key": "region",
            "values": ["tor1"],
        }],
        sorts=[{
            "key": "name",
            "direction": "asc",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := digitalocean.GetDedicatedInferences(ctx, &digitalocean.GetDedicatedInferencesArgs{
    			Filters: []digitalocean.GetDedicatedInferencesFilter{
    				{
    					Key: "region",
    					Values: []string{
    						"tor1",
    					},
    				},
    			},
    			Sorts: []digitalocean.GetDedicatedInferencesSort{
    				{
    					Key:       "name",
    					Direction: pulumi.StringRef("asc"),
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var byRegion = DigitalOcean.Index.GetDedicatedInferences.Invoke(new()
        {
            Filters = new[]
            {
                new DigitalOcean.Inputs.GetDedicatedInferencesFilterInputArgs
                {
                    Key = "region",
                    Values = new[]
                    {
                        "tor1",
                    },
                },
            },
            Sorts = new[]
            {
                new DigitalOcean.Inputs.GetDedicatedInferencesSortInputArgs
                {
                    Key = "name",
                    Direction = "asc",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetDedicatedInferencesArgs;
    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 byRegion = DigitaloceanFunctions.getDedicatedInferences(GetDedicatedInferencesArgs.builder()
                .filters(GetDedicatedInferencesFilterArgs.builder()
                    .key("region")
                    .values("tor1")
                    .build())
                .sorts(GetDedicatedInferencesSortArgs.builder()
                    .key("name")
                    .direction("asc")
                    .build())
                .build());
    
        }
    }
    
    variables:
      byRegion:
        fn::invoke:
          function: digitalocean:getDedicatedInferences
          arguments:
            filters:
              - key: region
                values:
                  - tor1
            sorts:
              - key: name
                direction: asc
    

    Using getDedicatedInferences

    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 getDedicatedInferences(args: GetDedicatedInferencesArgs, opts?: InvokeOptions): Promise<GetDedicatedInferencesResult>
    function getDedicatedInferencesOutput(args: GetDedicatedInferencesOutputArgs, opts?: InvokeOptions): Output<GetDedicatedInferencesResult>
    def get_dedicated_inferences(filters: Optional[Sequence[GetDedicatedInferencesFilter]] = None,
                                 sorts: Optional[Sequence[GetDedicatedInferencesSort]] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDedicatedInferencesResult
    def get_dedicated_inferences_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDedicatedInferencesFilterArgs]]]] = None,
                                 sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDedicatedInferencesSortArgs]]]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedInferencesResult]
    func GetDedicatedInferences(ctx *Context, args *GetDedicatedInferencesArgs, opts ...InvokeOption) (*GetDedicatedInferencesResult, error)
    func GetDedicatedInferencesOutput(ctx *Context, args *GetDedicatedInferencesOutputArgs, opts ...InvokeOption) GetDedicatedInferencesResultOutput

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

    public static class GetDedicatedInferences 
    {
        public static Task<GetDedicatedInferencesResult> InvokeAsync(GetDedicatedInferencesArgs args, InvokeOptions? opts = null)
        public static Output<GetDedicatedInferencesResult> Invoke(GetDedicatedInferencesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDedicatedInferencesResult> getDedicatedInferences(GetDedicatedInferencesArgs args, InvokeOptions options)
    public static Output<GetDedicatedInferencesResult> getDedicatedInferences(GetDedicatedInferencesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: digitalocean:index/getDedicatedInferences:getDedicatedInferences
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<Pulumi.DigitalOcean.Inputs.GetDedicatedInferencesFilter>
    Filter the results. The filter block is documented below.
    Sorts List<Pulumi.DigitalOcean.Inputs.GetDedicatedInferencesSort>
    Sort the results. The sort block is documented below.
    Filters []GetDedicatedInferencesFilter
    Filter the results. The filter block is documented below.
    Sorts []GetDedicatedInferencesSort
    Sort the results. The sort block is documented below.
    filters List<GetDedicatedInferencesFilter>
    Filter the results. The filter block is documented below.
    sorts List<GetDedicatedInferencesSort>
    Sort the results. The sort block is documented below.
    filters GetDedicatedInferencesFilter[]
    Filter the results. The filter block is documented below.
    sorts GetDedicatedInferencesSort[]
    Sort the results. The sort block is documented below.
    filters Sequence[GetDedicatedInferencesFilter]
    Filter the results. The filter block is documented below.
    sorts Sequence[GetDedicatedInferencesSort]
    Sort the results. The sort block is documented below.
    filters List<Property Map>
    Filter the results. The filter block is documented below.
    sorts List<Property Map>
    Sort the results. The sort block is documented below.

    getDedicatedInferences Result

    The following output properties are available:

    DedicatedInferences List<Pulumi.DigitalOcean.Outputs.GetDedicatedInferencesDedicatedInference>
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<Pulumi.DigitalOcean.Outputs.GetDedicatedInferencesFilter>
    Sorts List<Pulumi.DigitalOcean.Outputs.GetDedicatedInferencesSort>
    DedicatedInferences []GetDedicatedInferencesDedicatedInference
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDedicatedInferencesFilter
    Sorts []GetDedicatedInferencesSort
    dedicatedInferences List<GetDedicatedInferencesDedicatedInference>
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDedicatedInferencesFilter>
    sorts List<GetDedicatedInferencesSort>
    dedicatedInferences GetDedicatedInferencesDedicatedInference[]
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDedicatedInferencesFilter[]
    sorts GetDedicatedInferencesSort[]
    dedicated_inferences Sequence[GetDedicatedInferencesDedicatedInference]
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetDedicatedInferencesFilter]
    sorts Sequence[GetDedicatedInferencesSort]
    dedicatedInferences List<Property Map>
    A list of dedicated inference endpoints satisfying any filter and sort criteria. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    sorts List<Property Map>

    Supporting Types

    GetDedicatedInferencesDedicatedInference

    CreatedAt string
    The date and time when the dedicated inference endpoint was created.
    Id string
    The unique ID of the dedicated inference endpoint.
    Name string
    The name of the dedicated inference endpoint.
    PrivateEndpointFqdn string
    The fully-qualified domain name of the private endpoint.
    ProviderModelIds List<string>
    The list of provider model IDs for the dedicated inference endpoint.
    PublicEndpointFqdn string
    The fully-qualified domain name of the public endpoint, if enabled.
    Region string
    The region where the dedicated inference endpoint is deployed.
    Status string
    The current status of the dedicated inference endpoint.
    UpdatedAt string
    The date and time when the dedicated inference endpoint was last updated.
    VpcUuid string
    The UUID of the VPC the dedicated inference endpoint is deployed in.
    CreatedAt string
    The date and time when the dedicated inference endpoint was created.
    Id string
    The unique ID of the dedicated inference endpoint.
    Name string
    The name of the dedicated inference endpoint.
    PrivateEndpointFqdn string
    The fully-qualified domain name of the private endpoint.
    ProviderModelIds []string
    The list of provider model IDs for the dedicated inference endpoint.
    PublicEndpointFqdn string
    The fully-qualified domain name of the public endpoint, if enabled.
    Region string
    The region where the dedicated inference endpoint is deployed.
    Status string
    The current status of the dedicated inference endpoint.
    UpdatedAt string
    The date and time when the dedicated inference endpoint was last updated.
    VpcUuid string
    The UUID of the VPC the dedicated inference endpoint is deployed in.
    createdAt String
    The date and time when the dedicated inference endpoint was created.
    id String
    The unique ID of the dedicated inference endpoint.
    name String
    The name of the dedicated inference endpoint.
    privateEndpointFqdn String
    The fully-qualified domain name of the private endpoint.
    providerModelIds List<String>
    The list of provider model IDs for the dedicated inference endpoint.
    publicEndpointFqdn String
    The fully-qualified domain name of the public endpoint, if enabled.
    region String
    The region where the dedicated inference endpoint is deployed.
    status String
    The current status of the dedicated inference endpoint.
    updatedAt String
    The date and time when the dedicated inference endpoint was last updated.
    vpcUuid String
    The UUID of the VPC the dedicated inference endpoint is deployed in.
    createdAt string
    The date and time when the dedicated inference endpoint was created.
    id string
    The unique ID of the dedicated inference endpoint.
    name string
    The name of the dedicated inference endpoint.
    privateEndpointFqdn string
    The fully-qualified domain name of the private endpoint.
    providerModelIds string[]
    The list of provider model IDs for the dedicated inference endpoint.
    publicEndpointFqdn string
    The fully-qualified domain name of the public endpoint, if enabled.
    region string
    The region where the dedicated inference endpoint is deployed.
    status string
    The current status of the dedicated inference endpoint.
    updatedAt string
    The date and time when the dedicated inference endpoint was last updated.
    vpcUuid string
    The UUID of the VPC the dedicated inference endpoint is deployed in.
    created_at str
    The date and time when the dedicated inference endpoint was created.
    id str
    The unique ID of the dedicated inference endpoint.
    name str
    The name of the dedicated inference endpoint.
    private_endpoint_fqdn str
    The fully-qualified domain name of the private endpoint.
    provider_model_ids Sequence[str]
    The list of provider model IDs for the dedicated inference endpoint.
    public_endpoint_fqdn str
    The fully-qualified domain name of the public endpoint, if enabled.
    region str
    The region where the dedicated inference endpoint is deployed.
    status str
    The current status of the dedicated inference endpoint.
    updated_at str
    The date and time when the dedicated inference endpoint was last updated.
    vpc_uuid str
    The UUID of the VPC the dedicated inference endpoint is deployed in.
    createdAt String
    The date and time when the dedicated inference endpoint was created.
    id String
    The unique ID of the dedicated inference endpoint.
    name String
    The name of the dedicated inference endpoint.
    privateEndpointFqdn String
    The fully-qualified domain name of the private endpoint.
    providerModelIds List<String>
    The list of provider model IDs for the dedicated inference endpoint.
    publicEndpointFqdn String
    The fully-qualified domain name of the public endpoint, if enabled.
    region String
    The region where the dedicated inference endpoint is deployed.
    status String
    The current status of the dedicated inference endpoint.
    updatedAt String
    The date and time when the dedicated inference endpoint was last updated.
    vpcUuid String
    The UUID of the VPC the dedicated inference endpoint is deployed in.

    GetDedicatedInferencesFilter

    Key string
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    Values List<string>
    A list of values to match against the key field.
    All bool
    Set to true to require that a field match all of the values instead of just one.
    MatchBy string
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.
    Key string
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    Values []string
    A list of values to match against the key field.
    All bool
    Set to true to require that a field match all of the values instead of just one.
    MatchBy string
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.
    key String
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    values List<String>
    A list of values to match against the key field.
    all Boolean
    Set to true to require that a field match all of the values instead of just one.
    matchBy String
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.
    key string
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    values string[]
    A list of values to match against the key field.
    all boolean
    Set to true to require that a field match all of the values instead of just one.
    matchBy string
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.
    key str
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    values Sequence[str]
    A list of values to match against the key field.
    all bool
    Set to true to require that a field match all of the values instead of just one.
    match_by str
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.
    key String
    Filter the dedicated inference endpoints by this key. This may be one of id, name, region, status, vpcUuid, publicEndpointFqdn, privateEndpointFqdn, createdAt, updatedAt.
    values List<String>
    A list of values to match against the key field.
    all Boolean
    Set to true to require that a field match all of the values instead of just one.
    matchBy String
    One of exact (default), re, or substring. For string-typed fields, the match mode controls how the filter is applied.

    GetDedicatedInferencesSort

    Key string
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    Direction string
    The sort direction. This may be either asc or desc.
    Key string
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    Direction string
    The sort direction. This may be either asc or desc.
    key String
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    direction String
    The sort direction. This may be either asc or desc.
    key string
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    direction string
    The sort direction. This may be either asc or desc.
    key str
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    direction str
    The sort direction. This may be either asc or desc.
    key String
    Sort the dedicated inference endpoints by this key. This may be one of the keys listed in filter.
    direction String
    The sort direction. This may be either asc or desc.

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    Viewing docs for DigitalOcean v4.65.0
    published on Wednesday, Apr 29, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.