1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. FgsDependencyVersionV2
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

opentelekomcloud.FgsDependencyVersionV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

    Manages a custom dependency version within OpenTelekomCloud.

    Example Usage

    Create a custom dependency version using an OBS bucket path where the ZIP file is located

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const dependencyName = config.requireObject("dependencyName");
    const customDependencyLocation = config.requireObject("customDependencyLocation");
    const test = new opentelekomcloud.FgsDependencyVersionV2("test", {
        runtime: "Python3.6",
        link: customDependencyLocation,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    dependency_name = config.require_object("dependencyName")
    custom_dependency_location = config.require_object("customDependencyLocation")
    test = opentelekomcloud.FgsDependencyVersionV2("test",
        runtime="Python3.6",
        link=custom_dependency_location)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		dependencyName := cfg.RequireObject("dependencyName")
    		customDependencyLocation := cfg.RequireObject("customDependencyLocation")
    		_, err := opentelekomcloud.NewFgsDependencyVersionV2(ctx, "test", &opentelekomcloud.FgsDependencyVersionV2Args{
    			Runtime: pulumi.String("Python3.6"),
    			Link:    pulumi.Any(customDependencyLocation),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var dependencyName = config.RequireObject<dynamic>("dependencyName");
        var customDependencyLocation = config.RequireObject<dynamic>("customDependencyLocation");
        var test = new Opentelekomcloud.FgsDependencyVersionV2("test", new()
        {
            Runtime = "Python3.6",
            Link = customDependencyLocation,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.FgsDependencyVersionV2;
    import com.pulumi.opentelekomcloud.FgsDependencyVersionV2Args;
    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 config = ctx.config();
            final var dependencyName = config.get("dependencyName");
            final var customDependencyLocation = config.get("customDependencyLocation");
            var test = new FgsDependencyVersionV2("test", FgsDependencyVersionV2Args.builder()
                .runtime("Python3.6")
                .link(customDependencyLocation)
                .build());
    
        }
    }
    
    configuration:
      dependencyName:
        type: dynamic
      customDependencyLocation:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:FgsDependencyVersionV2
        properties:
          runtime: Python3.6
          link: ${customDependencyLocation}
    

    Create a custom dependency version directly from ZIP file

    import * as pulumi from "@pulumi/pulumi";
    import * as fs from "fs";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const dependencyName = config.requireObject("dependencyName");
    const test = new opentelekomcloud.FgsDependencyVersionV2("test", {
        runtime: "Python3.6",
        file: fs.readFileSync(`${path.module}/data/requirements.zip`, { encoding: "base64" }),
    });
    
    import pulumi
    import base64
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    dependency_name = config.require_object("dependencyName")
    test = opentelekomcloud.FgsDependencyVersionV2("test",
        runtime="Python3.6",
        file=(lambda path: base64.b64encode(open(path).read().encode()).decode())(f"{path['module']}/data/requirements.zip"))
    
    package main
    
    import (
    	"encoding/base64"
    	"fmt"
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func filebase64OrPanic(path string) string {
    	if fileData, err := os.ReadFile(path); err == nil {
    		return base64.StdEncoding.EncodeToString(fileData[:])
    	} else {
    		panic(err.Error())
    	}
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		dependencyName := cfg.RequireObject("dependencyName")
    		_, err := opentelekomcloud.NewFgsDependencyVersionV2(ctx, "test", &opentelekomcloud.FgsDependencyVersionV2Args{
    			Runtime: pulumi.String("Python3.6"),
    			File:    pulumi.String(filebase64OrPanic(fmt.Sprintf("%v/data/requirements.zip", path.Module))),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    	
    string ReadFileBase64(string path) 
    {
        return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)));
    }
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var dependencyName = config.RequireObject<dynamic>("dependencyName");
        var test = new Opentelekomcloud.FgsDependencyVersionV2("test", new()
        {
            Runtime = "Python3.6",
            File = ReadFileBase64($"{path.Module}/data/requirements.zip"),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.FgsDependencyVersionV2;
    import com.pulumi.opentelekomcloud.FgsDependencyVersionV2Args;
    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 config = ctx.config();
            final var dependencyName = config.get("dependencyName");
            var test = new FgsDependencyVersionV2("test", FgsDependencyVersionV2Args.builder()
                .runtime("Python3.6")
                .file(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(String.format("%s/data/requirements.zip", path.module())))))
                .build());
    
        }
    }
    
    Example coming soon!
    

    Create FgsDependencyVersionV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FgsDependencyVersionV2(name: string, args: FgsDependencyVersionV2Args, opts?: CustomResourceOptions);
    @overload
    def FgsDependencyVersionV2(resource_name: str,
                               args: FgsDependencyVersionV2Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FgsDependencyVersionV2(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               runtime: Optional[str] = None,
                               description: Optional[str] = None,
                               fgs_dependency_version_v2_id: Optional[str] = None,
                               file: Optional[str] = None,
                               link: Optional[str] = None,
                               name: Optional[str] = None)
    func NewFgsDependencyVersionV2(ctx *Context, name string, args FgsDependencyVersionV2Args, opts ...ResourceOption) (*FgsDependencyVersionV2, error)
    public FgsDependencyVersionV2(string name, FgsDependencyVersionV2Args args, CustomResourceOptions? opts = null)
    public FgsDependencyVersionV2(String name, FgsDependencyVersionV2Args args)
    public FgsDependencyVersionV2(String name, FgsDependencyVersionV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:FgsDependencyVersionV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FgsDependencyVersionV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FgsDependencyVersionV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FgsDependencyVersionV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FgsDependencyVersionV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FgsDependencyVersionV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var fgsDependencyVersionV2Resource = new Opentelekomcloud.FgsDependencyVersionV2("fgsDependencyVersionV2Resource", new()
    {
        Runtime = "string",
        Description = "string",
        FgsDependencyVersionV2Id = "string",
        File = "string",
        Link = "string",
        Name = "string",
    });
    
    example, err := opentelekomcloud.NewFgsDependencyVersionV2(ctx, "fgsDependencyVersionV2Resource", &opentelekomcloud.FgsDependencyVersionV2Args{
    	Runtime:                  pulumi.String("string"),
    	Description:              pulumi.String("string"),
    	FgsDependencyVersionV2Id: pulumi.String("string"),
    	File:                     pulumi.String("string"),
    	Link:                     pulumi.String("string"),
    	Name:                     pulumi.String("string"),
    })
    
    var fgsDependencyVersionV2Resource = new FgsDependencyVersionV2("fgsDependencyVersionV2Resource", FgsDependencyVersionV2Args.builder()
        .runtime("string")
        .description("string")
        .fgsDependencyVersionV2Id("string")
        .file("string")
        .link("string")
        .name("string")
        .build());
    
    fgs_dependency_version_v2_resource = opentelekomcloud.FgsDependencyVersionV2("fgsDependencyVersionV2Resource",
        runtime="string",
        description="string",
        fgs_dependency_version_v2_id="string",
        file="string",
        link="string",
        name="string")
    
    const fgsDependencyVersionV2Resource = new opentelekomcloud.FgsDependencyVersionV2("fgsDependencyVersionV2Resource", {
        runtime: "string",
        description: "string",
        fgsDependencyVersionV2Id: "string",
        file: "string",
        link: "string",
        name: "string",
    });
    
    type: opentelekomcloud:FgsDependencyVersionV2
    properties:
        description: string
        fgsDependencyVersionV2Id: string
        file: string
        link: string
        name: string
        runtime: string
    

    FgsDependencyVersionV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FgsDependencyVersionV2 resource accepts the following input properties:

    Runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    Description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    FgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    File string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    Link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    Name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    Runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    Description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    FgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    File string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    Link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    Name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    runtime String

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    description String
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    fgsDependencyVersionV2Id String
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file String
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    link String

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name String
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    fgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    runtime str

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    description str
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    fgs_dependency_version_v2_id str
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file str
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    link str

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name str
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    runtime String

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    description String
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    fgsDependencyVersionV2Id String
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file String
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    link String

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name String
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FgsDependencyVersionV2 resource produces the following output properties:

    DependencyId string
    The ID of the dependency package corresponding to the version.
    DownloadLink string
    The temporary download link of a dependency file.
    Etag string
    The unique ID of the dependency.
    FileName string
    The dependency file name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    The dependency owner, public indicates a public dependency.
    Size double
    The dependency size, in bytes.
    Version double
    The dependency package version.
    DependencyId string
    The ID of the dependency package corresponding to the version.
    DownloadLink string
    The temporary download link of a dependency file.
    Etag string
    The unique ID of the dependency.
    FileName string
    The dependency file name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    The dependency owner, public indicates a public dependency.
    Size float64
    The dependency size, in bytes.
    Version float64
    The dependency package version.
    dependencyId String
    The ID of the dependency package corresponding to the version.
    downloadLink String
    The temporary download link of a dependency file.
    etag String
    The unique ID of the dependency.
    fileName String
    The dependency file name.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    The dependency owner, public indicates a public dependency.
    size Double
    The dependency size, in bytes.
    version Double
    The dependency package version.
    dependencyId string
    The ID of the dependency package corresponding to the version.
    downloadLink string
    The temporary download link of a dependency file.
    etag string
    The unique ID of the dependency.
    fileName string
    The dependency file name.
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    The dependency owner, public indicates a public dependency.
    size number
    The dependency size, in bytes.
    version number
    The dependency package version.
    dependency_id str
    The ID of the dependency package corresponding to the version.
    download_link str
    The temporary download link of a dependency file.
    etag str
    The unique ID of the dependency.
    file_name str
    The dependency file name.
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    The dependency owner, public indicates a public dependency.
    size float
    The dependency size, in bytes.
    version float
    The dependency package version.
    dependencyId String
    The ID of the dependency package corresponding to the version.
    downloadLink String
    The temporary download link of a dependency file.
    etag String
    The unique ID of the dependency.
    fileName String
    The dependency file name.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    The dependency owner, public indicates a public dependency.
    size Number
    The dependency size, in bytes.
    version Number
    The dependency package version.

    Look up Existing FgsDependencyVersionV2 Resource

    Get an existing FgsDependencyVersionV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FgsDependencyVersionV2State, opts?: CustomResourceOptions): FgsDependencyVersionV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dependency_id: Optional[str] = None,
            description: Optional[str] = None,
            download_link: Optional[str] = None,
            etag: Optional[str] = None,
            fgs_dependency_version_v2_id: Optional[str] = None,
            file: Optional[str] = None,
            file_name: Optional[str] = None,
            link: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            runtime: Optional[str] = None,
            size: Optional[float] = None,
            version: Optional[float] = None) -> FgsDependencyVersionV2
    func GetFgsDependencyVersionV2(ctx *Context, name string, id IDInput, state *FgsDependencyVersionV2State, opts ...ResourceOption) (*FgsDependencyVersionV2, error)
    public static FgsDependencyVersionV2 Get(string name, Input<string> id, FgsDependencyVersionV2State? state, CustomResourceOptions? opts = null)
    public static FgsDependencyVersionV2 get(String name, Output<String> id, FgsDependencyVersionV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:FgsDependencyVersionV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DependencyId string
    The ID of the dependency package corresponding to the version.
    Description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    DownloadLink string
    The temporary download link of a dependency file.
    Etag string
    The unique ID of the dependency.
    FgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    File string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    FileName string
    The dependency file name.
    Link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    Name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    Owner string
    The dependency owner, public indicates a public dependency.
    Runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    Size double
    The dependency size, in bytes.
    Version double
    The dependency package version.
    DependencyId string
    The ID of the dependency package corresponding to the version.
    Description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    DownloadLink string
    The temporary download link of a dependency file.
    Etag string
    The unique ID of the dependency.
    FgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    File string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    FileName string
    The dependency file name.
    Link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    Name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    Owner string
    The dependency owner, public indicates a public dependency.
    Runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    Size float64
    The dependency size, in bytes.
    Version float64
    The dependency package version.
    dependencyId String
    The ID of the dependency package corresponding to the version.
    description String
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    downloadLink String
    The temporary download link of a dependency file.
    etag String
    The unique ID of the dependency.
    fgsDependencyVersionV2Id String
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file String
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    fileName String
    The dependency file name.
    link String

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name String
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    owner String
    The dependency owner, public indicates a public dependency.
    runtime String

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    size Double
    The dependency size, in bytes.
    version Double
    The dependency package version.
    dependencyId string
    The ID of the dependency package corresponding to the version.
    description string
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    downloadLink string
    The temporary download link of a dependency file.
    etag string
    The unique ID of the dependency.
    fgsDependencyVersionV2Id string
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file string
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    fileName string
    The dependency file name.
    link string

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name string
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    owner string
    The dependency owner, public indicates a public dependency.
    runtime string

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    size number
    The dependency size, in bytes.
    version number
    The dependency package version.
    dependency_id str
    The ID of the dependency package corresponding to the version.
    description str
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    download_link str
    The temporary download link of a dependency file.
    etag str
    The unique ID of the dependency.
    fgs_dependency_version_v2_id str
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file str
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    file_name str
    The dependency file name.
    link str

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name str
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    owner str
    The dependency owner, public indicates a public dependency.
    runtime str

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    size float
    The dependency size, in bytes.
    version float
    The dependency package version.
    dependencyId String
    The ID of the dependency package corresponding to the version.
    description String
    Specifies the description of the custom dependency version. The description can contain a maximum of 512 characters. Changing this will create a new resource.
    downloadLink String
    The temporary download link of a dependency file.
    etag String
    The unique ID of the dependency.
    fgsDependencyVersionV2Id String
    The resource ID, consists of dependency ID and version number, separated by a slash (/). The format is <name>/<version>.
    file String
    Specifies the file contents in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS. Either link or file must be specified.
    fileName String
    The dependency file name.
    link String

    Specifies the OBS bucket path where the dependency package is located. The OBS object URL must be in ZIP format, such as https://test-bucket.obs.eu-de.otc.t-systems.com/index.zip. Either link or file must be specified. Changing this will create a new resource.

    A link can only be used to create at most one dependency package.

    name String
    Specifies the name of the custom dependency package to which the version belongs. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Changing this will create a new resource.
    owner String
    The dependency owner, public indicates a public dependency.
    runtime String

    Specifies the runtime of the custom dependency version. The valid values are as follows:

    • Java8
    • Java11
    • Node.js6.10
    • Node.js8.10
    • Node.js10.16
    • Node.js12.13
    • Node.js14.18
    • Python2.7
    • Python3.6
    • Python3.9
    • Go1.8
    • Go1.x
    • C#(.NET Core 2.0)
    • C#(.NET Core 2.1)
    • C#(.NET Core 3.1)
    • Custom
    • PHP 7.3
    • http

    Changing this will create a new resource.

    size Number
    The dependency size, in bytes.
    version Number
    The dependency package version.

    Import

    Dependency version can be imported using name and the version number, separated by a slash (/), e.g.

    bash

    $ pulumi import opentelekomcloud:index/fgsDependencyVersionV2:FgsDependencyVersionV2 test <name>/<version>
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: link, file.

    It is generally recommended running pulumi preview after importing a dependency package.

    You can then decide if changes should be applied to the resource, or the resource definition should be updated to

    align with the dependency package. Also you can ignore changes as below.

    hcl

    resource “opentelekomcloud_fgs_dependency_version_v2” “test” {

    lifecycle {

    ignore_changes = [
    
      link,
    
      file
    
    ]
    

    }

    }

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud