Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler
zpa.getSAMLAttribute
Explore with Pulumi AI
Use the zpa_saml_attribute data source to get information about a SAML Attributes from an Identity Provider (IdP). This data source can then be referenced in an Access Policy, Timeout policy, Forwarding Policy, Inspection Policy or Isolation Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const emailUserSso = zpa.getSAMLAttribute({
idpName: "idp_name",
name: "Email_User SSO",
});
import pulumi
import pulumi_zpa as zpa
email_user_sso = zpa.get_saml_attribute(idp_name="idp_name",
name="Email_User SSO")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
IdpName: pulumi.StringRef("idp_name"),
Name: pulumi.StringRef("Email_User SSO"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var emailUserSso = Zpa.GetSAMLAttribute.Invoke(new()
{
IdpName = "idp_name",
Name = "Email_User SSO",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ZpaFunctions;
import com.pulumi.zpa.inputs.GetSAMLAttributeArgs;
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 emailUserSso = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
.idpName("idp_name")
.name("Email_User SSO")
.build());
}
}
variables:
emailUserSso:
fn::invoke:
Function: zpa:getSAMLAttribute
Arguments:
idpName: idp_name
name: Email_User SSO
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const department = zpa.getSAMLAttribute({
idpName: "idp_name",
name: "DepartmentName_IdP_Name_Users",
});
import pulumi
import pulumi_zpa as zpa
department = zpa.get_saml_attribute(idp_name="idp_name",
name="DepartmentName_IdP_Name_Users")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
IdpName: pulumi.StringRef("idp_name"),
Name: pulumi.StringRef("DepartmentName_IdP_Name_Users"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var department = Zpa.GetSAMLAttribute.Invoke(new()
{
IdpName = "idp_name",
Name = "DepartmentName_IdP_Name_Users",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ZpaFunctions;
import com.pulumi.zpa.inputs.GetSAMLAttributeArgs;
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 department = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
.idpName("idp_name")
.name("DepartmentName_IdP_Name_Users")
.build());
}
}
variables:
department:
fn::invoke:
Function: zpa:getSAMLAttribute
Arguments:
idpName: idp_name
name: DepartmentName_IdP_Name_Users
Using getSAMLAttribute
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 getSAMLAttribute(args: GetSAMLAttributeArgs, opts?: InvokeOptions): Promise<GetSAMLAttributeResult>
function getSAMLAttributeOutput(args: GetSAMLAttributeOutputArgs, opts?: InvokeOptions): Output<GetSAMLAttributeResult>
def get_saml_attribute(id: Optional[str] = None,
idp_name: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSAMLAttributeResult
def get_saml_attribute_output(id: Optional[pulumi.Input[str]] = None,
idp_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSAMLAttributeResult]
func GetSAMLAttribute(ctx *Context, args *GetSAMLAttributeArgs, opts ...InvokeOption) (*GetSAMLAttributeResult, error)
func GetSAMLAttributeOutput(ctx *Context, args *GetSAMLAttributeOutputArgs, opts ...InvokeOption) GetSAMLAttributeResultOutput
> Note: This function is named GetSAMLAttribute
in the Go SDK.
public static class GetSAMLAttribute
{
public static Task<GetSAMLAttributeResult> InvokeAsync(GetSAMLAttributeArgs args, InvokeOptions? opts = null)
public static Output<GetSAMLAttributeResult> Invoke(GetSAMLAttributeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSAMLAttributeResult> getSAMLAttribute(GetSAMLAttributeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zpa:index/getSAMLAttribute:getSAMLAttribute
arguments:
# arguments dictionary
The following arguments are supported:
getSAMLAttribute Result
The following output properties are available:
- Creation
Time string - Id string
- Idp
Id string - Modified
Time string - Modifiedby string
- Name string
- Saml
Name string - User
Attribute bool - Idp
Name string
- Creation
Time string - Id string
- Idp
Id string - Modified
Time string - Modifiedby string
- Name string
- Saml
Name string - User
Attribute bool - Idp
Name string
- creation
Time String - id String
- idp
Id String - modified
Time String - modifiedby String
- name String
- saml
Name String - user
Attribute Boolean - idp
Name String
- creation
Time string - id string
- idp
Id string - modified
Time string - modifiedby string
- name string
- saml
Name string - user
Attribute boolean - idp
Name string
- creation_
time str - id str
- idp_
id str - modified_
time str - modifiedby str
- name str
- saml_
name str - user_
attribute bool - idp_
name str
- creation
Time String - id String
- idp
Id String - modified
Time String - modifiedby String
- name String
- saml
Name String - user
Attribute Boolean - idp
Name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.