getServerPolicy
Use this data source to retrieve a authorization server policy from Okta.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Okta.Auth.GetServerPolicy.InvokeAsync(new Okta.Auth.GetServerPolicyArgs
{
AuthServerId = "<auth server id>",
Name = "staff",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/auth"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth.LookupServerPolicy(ctx, &auth.LookupServerPolicyArgs{
AuthServerId: "<auth server id>",
Name: "staff",
}, nil)
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_okta as okta
example = okta.auth.get_server_policy(auth_server_id="<auth server id>",
name="staff")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = pulumi.output(okta.auth.getServerPolicy({
authServerId: "<auth server id>",
name: "staff",
}, { async: true }));
Using getServerPolicy
function getServerPolicy(args: GetServerPolicyArgs, opts?: InvokeOptions): Promise<GetServerPolicyResult>
def get_server_policy(auth_server_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerPolicyResult
func LookupServerPolicy(ctx *Context, args *LookupServerPolicyArgs, opts ...InvokeOption) (*LookupServerPolicyResult, error)
Note: This function is named
LookupServerPolicy
in the Go SDK.
public static class GetServerPolicy {
public static Task<GetServerPolicyResult> InvokeAsync(GetServerPolicyArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Auth
Server stringId - The ID of the Auth Server.
- Name string
- Name of policy to retrieve.
- Auth
Server stringId - The ID of the Auth Server.
- Name string
- Name of policy to retrieve.
- auth
Server stringId - The ID of the Auth Server.
- name string
- Name of policy to retrieve.
- auth_
server_ strid - The ID of the Auth Server.
- name str
- Name of policy to retrieve.
getServerPolicy Result
The following output properties are available:
- Assigned
Clients List<string> - list of clients this policy is assigned to.
["ALL_CLIENTS"]
is a special value when policy is assigned to all clients. - Auth
Server stringId - Description string
- description of authorization server policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Assigned
Clients []string - list of clients this policy is assigned to.
["ALL_CLIENTS"]
is a special value when policy is assigned to all clients. - Auth
Server stringId - Description string
- description of authorization server policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- assigned
Clients string[] - list of clients this policy is assigned to.
["ALL_CLIENTS"]
is a special value when policy is assigned to all clients. - auth
Server stringId - description string
- description of authorization server policy.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- assigned_
clients Sequence[str] - list of clients this policy is assigned to.
["ALL_CLIENTS"]
is a special value when policy is assigned to all clients. - auth_
server_ strid - description str
- description of authorization server policy.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.