Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of apig upstream versions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.apig.getUpstreamVersions({
upstreamId: "ud18p5krj5ce3htvrd0v0",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.apig.get_upstream_versions(upstream_id="ud18p5krj5ce3htvrd0v0")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/apig"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apig.GetUpstreamVersions(ctx, &apig.GetUpstreamVersionsArgs{
UpstreamId: "ud18p5krj5ce3htvrd0v0",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Apig.GetUpstreamVersions.Invoke(new()
{
UpstreamId = "ud18p5krj5ce3htvrd0v0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.apig.ApigFunctions;
import com.pulumi.volcengine.apig.inputs.GetUpstreamVersionsArgs;
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 foo = ApigFunctions.getUpstreamVersions(GetUpstreamVersionsArgs.builder()
.upstreamId("ud18p5krj5ce3htvrd0v0")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:apig:getUpstreamVersions
Arguments:
upstreamId: ud18p5krj5ce3htvrd0v0
Using getUpstreamVersions
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 getUpstreamVersions(args: GetUpstreamVersionsArgs, opts?: InvokeOptions): Promise<GetUpstreamVersionsResult>
function getUpstreamVersionsOutput(args: GetUpstreamVersionsOutputArgs, opts?: InvokeOptions): Output<GetUpstreamVersionsResult>def get_upstream_versions(name_regex: Optional[str] = None,
output_file: Optional[str] = None,
upstream_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUpstreamVersionsResult
def get_upstream_versions_output(name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
upstream_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUpstreamVersionsResult]func GetUpstreamVersions(ctx *Context, args *GetUpstreamVersionsArgs, opts ...InvokeOption) (*GetUpstreamVersionsResult, error)
func GetUpstreamVersionsOutput(ctx *Context, args *GetUpstreamVersionsOutputArgs, opts ...InvokeOption) GetUpstreamVersionsResultOutput> Note: This function is named GetUpstreamVersions in the Go SDK.
public static class GetUpstreamVersions
{
public static Task<GetUpstreamVersionsResult> InvokeAsync(GetUpstreamVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetUpstreamVersionsResult> Invoke(GetUpstreamVersionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUpstreamVersionsResult> getUpstreamVersions(GetUpstreamVersionsArgs args, InvokeOptions options)
public static Output<GetUpstreamVersionsResult> getUpstreamVersions(GetUpstreamVersionsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:apig/getUpstreamVersions:getUpstreamVersions
arguments:
# arguments dictionaryThe following arguments are supported:
- Upstream
Id string - The id of the apig upstream.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Upstream
Id string - The id of the apig upstream.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- upstream
Id String - The id of the apig upstream.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- upstream
Id string - The id of the apig upstream.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- upstream_
id str - The id of the apig upstream.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- upstream
Id String - The id of the apig upstream.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
getUpstreamVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Upstream
Id string - Versions
List<Get
Upstream Versions Version> - The collection of query.
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Upstream
Id string - Versions
[]Get
Upstream Versions Version - The collection of query.
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- upstream
Id String - versions
List<Get
Upstream Versions Version> - The collection of query.
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- upstream
Id string - versions
Get
Upstream Versions Version[] - The collection of query.
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- upstream_
id str - versions
Sequence[Get
Upstream Versions Version] - The collection of query.
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- upstream
Id String - versions List<Property Map>
- The collection of query.
- name
Regex String - output
File String
Supporting Types
GetUpstreamVersionsVersion
- Labels
List<Get
Upstream Versions Version Label> - The labels of apig upstream version.
- Name string
- The name of apig upstream version.
- Update
Time string - The update time of apig upstream version.
- Labels
[]Get
Upstream Versions Version Label - The labels of apig upstream version.
- Name string
- The name of apig upstream version.
- Update
Time string - The update time of apig upstream version.
- labels
List<Get
Upstream Versions Version Label> - The labels of apig upstream version.
- name String
- The name of apig upstream version.
- update
Time String - The update time of apig upstream version.
- labels
Get
Upstream Versions Version Label[] - The labels of apig upstream version.
- name string
- The name of apig upstream version.
- update
Time string - The update time of apig upstream version.
- labels
Sequence[Get
Upstream Versions Version Label] - The labels of apig upstream version.
- name str
- The name of apig upstream version.
- update_
time str - The update time of apig upstream version.
- labels List<Property Map>
- The labels of apig upstream version.
- name String
- The name of apig upstream version.
- update
Time String - The update time of apig upstream version.
GetUpstreamVersionsVersionLabel
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
