Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Provides information about a policy.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const userPolicy01 = outscale.getPolicy({
policyOrn: "orn:ows:idauth::012345678910:policy/example/example-user-policy",
});
import pulumi
import pulumi_outscale as outscale
user_policy01 = outscale.get_policy(policy_orn="orn:ows:idauth::012345678910:policy/example/example-user-policy")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.LookupPolicy(ctx, &outscale.LookupPolicyArgs{
PolicyOrn: "orn:ows:idauth::012345678910:policy/example/example-user-policy",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var userPolicy01 = Outscale.GetPolicy.Invoke(new()
{
PolicyOrn = "orn:ows:idauth::012345678910:policy/example/example-user-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetPolicyArgs;
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 userPolicy01 = OutscaleFunctions.getPolicy(GetPolicyArgs.builder()
.policyOrn("orn:ows:idauth::012345678910:policy/example/example-user-policy")
.build());
}
}
variables:
userPolicy01:
fn::invoke:
function: outscale:getPolicy
arguments:
policyOrn: orn:ows:idauth::012345678910:policy/example/example-user-policy
Using getPolicy
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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>def get_policy(id: Optional[str] = None,
policy_orn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(id: Optional[pulumi.Input[str]] = None,
policy_orn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput> Note: This function is named LookupPolicy in the Go SDK.
public static class GetPolicy
{
public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getPolicy:getPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Id string
- Policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Id string
- policy
Orn String - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- id String
- policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- id string
- policy_
orn str - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- id str
- policy
Orn String - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- id String
getPolicy Result
The following output properties are available:
- Creation
Date string - The date and time (UTC) at which the policy was created.
- Description string
- A friendly name for the policy (between 0 and 1000 characters).
- Document string
- Id string
- Is
Linkable bool - Indicates whether the policy can be linked to a group or an EIM user.
- Last
Modification stringDate - The date and time (UTC) at which the policy was last modified.
- Orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Path string
- The path to the policy.
- Policy
Default stringVersion Id - The ID of the policy default version.
- Policy
Id string - The ID of the policy.
- Policy
Name string - The name of the policy.
- Policy
Orn string - Resources
Count double - The number of resources attached to the policy.
- Creation
Date string - The date and time (UTC) at which the policy was created.
- Description string
- A friendly name for the policy (between 0 and 1000 characters).
- Document string
- Id string
- Is
Linkable bool - Indicates whether the policy can be linked to a group or an EIM user.
- Last
Modification stringDate - The date and time (UTC) at which the policy was last modified.
- Orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Path string
- The path to the policy.
- Policy
Default stringVersion Id - The ID of the policy default version.
- Policy
Id string - The ID of the policy.
- Policy
Name string - The name of the policy.
- Policy
Orn string - Resources
Count float64 - The number of resources attached to the policy.
- creation
Date String - The date and time (UTC) at which the policy was created.
- description String
- A friendly name for the policy (between 0 and 1000 characters).
- document String
- id String
- is
Linkable Boolean - Indicates whether the policy can be linked to a group or an EIM user.
- last
Modification StringDate - The date and time (UTC) at which the policy was last modified.
- orn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- path String
- The path to the policy.
- policy
Default StringVersion Id - The ID of the policy default version.
- policy
Id String - The ID of the policy.
- policy
Name String - The name of the policy.
- policy
Orn String - resources
Count Double - The number of resources attached to the policy.
- creation
Date string - The date and time (UTC) at which the policy was created.
- description string
- A friendly name for the policy (between 0 and 1000 characters).
- document string
- id string
- is
Linkable boolean - Indicates whether the policy can be linked to a group or an EIM user.
- last
Modification stringDate - The date and time (UTC) at which the policy was last modified.
- orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- path string
- The path to the policy.
- policy
Default stringVersion Id - The ID of the policy default version.
- policy
Id string - The ID of the policy.
- policy
Name string - The name of the policy.
- policy
Orn string - resources
Count number - The number of resources attached to the policy.
- creation_
date str - The date and time (UTC) at which the policy was created.
- description str
- A friendly name for the policy (between 0 and 1000 characters).
- document str
- id str
- is_
linkable bool - Indicates whether the policy can be linked to a group or an EIM user.
- last_
modification_ strdate - The date and time (UTC) at which the policy was last modified.
- orn str
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- path str
- The path to the policy.
- policy_
default_ strversion_ id - The ID of the policy default version.
- policy_
id str - The ID of the policy.
- policy_
name str - The name of the policy.
- policy_
orn str - resources_
count float - The number of resources attached to the policy.
- creation
Date String - The date and time (UTC) at which the policy was created.
- description String
- A friendly name for the policy (between 0 and 1000 characters).
- document String
- id String
- is
Linkable Boolean - Indicates whether the policy can be linked to a group or an EIM user.
- last
Modification StringDate - The date and time (UTC) at which the policy was last modified.
- orn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- path String
- The path to the policy.
- policy
Default StringVersion Id - The ID of the policy default version.
- policy
Id String - The ID of the policy.
- policy
Name String - The name of the policy.
- policy
Orn String - resources
Count Number - The number of resources attached to the policy.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
