1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. annotations
  6. getValue
Viewing docs for Scaleway v1.54.0
published on Friday, Jul 31, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.54.0
published on Friday, Jul 31, 2026 by pulumiverse

    Retrieves information about an existing annotation value using its ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const environment = new scaleway.annotations.Key("environment", {
        name: "environment",
        description: "Deployment environment (production, staging, development)",
    });
    const production = new scaleway.annotations.Value("production", {
        keyId: environment.id,
        name: "production",
        description: "Production environment",
    });
    const main = scaleway.annotations.getValueOutput({
        valueId: production.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    import pulumiverse_scaleway as scaleway
    
    environment = scaleway.annotations.Key("environment",
        name="environment",
        description="Deployment environment (production, staging, development)")
    production = scaleway.annotations.Value("production",
        key_id=environment.id,
        name="production",
        description="Production environment")
    main = scaleway.annotations.get_value_output(value_id=production.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/annotations"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		environment, err := annotations.NewKey(ctx, "environment", &annotations.KeyArgs{
    			Name:        pulumi.String("environment"),
    			Description: pulumi.String("Deployment environment (production, staging, development)"),
    		})
    		if err != nil {
    			return err
    		}
    		production, err := annotations.NewValue(ctx, "production", &annotations.ValueArgs{
    			KeyId:       environment.ID(),
    			Name:        pulumi.String("production"),
    			Description: pulumi.String("Production environment"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = annotations.LookupValueOutput(ctx, annotations.GetValueOutputArgs{
    			ValueId: production.ID(),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var environment = new Scaleway.Annotations.Key("environment", new()
        {
            Name = "environment",
            Description = "Deployment environment (production, staging, development)",
        });
    
        var production = new Scaleway.Annotations.Value("production", new()
        {
            KeyId = environment.Id,
            Name = "production",
            Description = "Production environment",
        });
    
        var main = Scaleway.Annotations.GetValue.Invoke(new()
        {
            ValueId = production.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.annotations.Key;
    import com.pulumi.scaleway.annotations.KeyArgs;
    import com.pulumi.scaleway.annotations.Value;
    import com.pulumi.scaleway.annotations.ValueArgs;
    import com.pulumi.scaleway.annotations.AnnotationsFunctions;
    import com.pulumi.scaleway.annotations.inputs.GetValueArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var environment = new Key("environment", KeyArgs.builder()
                .name("environment")
                .description("Deployment environment (production, staging, development)")
                .build());
    
            var production = new Value("production", ValueArgs.builder()
                .keyId(environment.id())
                .name("production")
                .description("Production environment")
                .build());
    
            final var main = AnnotationsFunctions.getValue(GetValueArgs.builder()
                .valueId(production.id())
                .build());
    
        }
    }
    
    resources:
      environment:
        type: scaleway:annotations:Key
        properties:
          name: environment
          description: Deployment environment (production, staging, development)
      production:
        type: scaleway:annotations:Value
        properties:
          keyId: ${environment.id}
          name: production
          description: Production environment
    variables:
      main:
        fn::invoke:
          function: scaleway:annotations:getValue
          arguments:
            valueId: ${production.id}
    
    Example coming soon!
    

    Using getValue

    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 getValue(args: GetValueArgs, opts?: InvokeOptions): Promise<GetValueResult>
    function getValueOutput(args: GetValueOutputArgs, opts?: InvokeOutputOptions): Output<GetValueResult>
    def get_value(value_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetValueResult
    def get_value_output(value_id: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetValueResult]
    func LookupValue(ctx *Context, args *LookupValueArgs, opts ...InvokeOption) (*LookupValueResult, error)
    func LookupValueOutput(ctx *Context, args *LookupValueOutputArgs, opts ...InvokeOption) LookupValueResultOutput

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

    public static class GetValue 
    {
        public static Task<GetValueResult> InvokeAsync(GetValueArgs args, InvokeOptions? opts = null)
        public static Output<GetValueResult> Invoke(GetValueInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetValueResult> Invoke(GetValueInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetValueResult> getValue(GetValueArgs args, InvokeOptions options)
    public static Output<GetValueResult> getValue(GetValueArgs args, InvokeOptions options)
    public static Output<GetValueResult> getValue(GetValueArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scaleway:annotations/getValue:getValue
      arguments:
        # arguments dictionary
    data "scaleway_annotations_get_value" "name" {
        # arguments
    }

    The following arguments are supported:

    ValueId string
    The ID of the annotation value to retrieve.
    ValueId string
    The ID of the annotation value to retrieve.
    value_id string
    The ID of the annotation value to retrieve.
    valueId String
    The ID of the annotation value to retrieve.
    valueId string
    The ID of the annotation value to retrieve.
    value_id str
    The ID of the annotation value to retrieve.
    valueId String
    The ID of the annotation value to retrieve.

    getValue Result

    The following output properties are available:

    Description string
    Description of the annotation value
    Id string
    The ID of the annotation value
    KeyId string
    ID of the key the value is associated to
    Name string
    Name of the annotation value
    ValueId string
    Description string
    Description of the annotation value
    Id string
    The ID of the annotation value
    KeyId string
    ID of the key the value is associated to
    Name string
    Name of the annotation value
    ValueId string
    description string
    Description of the annotation value
    id string
    The ID of the annotation value
    key_id string
    ID of the key the value is associated to
    name string
    Name of the annotation value
    value_id string
    description String
    Description of the annotation value
    id String
    The ID of the annotation value
    keyId String
    ID of the key the value is associated to
    name String
    Name of the annotation value
    valueId String
    description string
    Description of the annotation value
    id string
    The ID of the annotation value
    keyId string
    ID of the key the value is associated to
    name string
    Name of the annotation value
    valueId string
    description str
    Description of the annotation value
    id str
    The ID of the annotation value
    key_id str
    ID of the key the value is associated to
    name str
    Name of the annotation value
    value_id str
    description String
    Description of the annotation value
    id String
    The ID of the annotation value
    keyId String
    ID of the key the value is associated to
    name String
    Name of the annotation value
    valueId String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.54.0
    published on Friday, Jul 31, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial