junipermist.org.SsoRole
Explore with Pulumi AI
This resource manages Org SSO Roles for Admin Authantication. SSO roles refer to the different functions assigned to users within a Single Sign-On (SSO) system. These roles determine the tasks and actions that users can perform within the SSO system. There are typically predefined roles and custom roles in an SSO system. Roles in SSO provide a well-defined separation of responsibility and visibility, allowing for granular-level access control on SSO objects..
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.SsoRole;
import com.pulumi.junipermist.org.SsoRoleArgs;
import com.pulumi.junipermist.org.inputs.SsoRolePrivilegeArgs;
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) {
var ssoRoleOne = new SsoRole("ssoRoleOne", SsoRoleArgs.builder()
.orgId(terraformTest.id())
.name("admin_sso")
.privileges(SsoRolePrivilegeArgs.builder()
.scope("site")
.role("read")
.site_id(terraformSite.id())
.build())
.build());
}
}
resources:
ssoRoleOne:
type: junipermist:org:SsoRole
name: sso_role_one
properties:
orgId: ${terraformTest.id}
name: admin_sso
privileges:
- scope: site
role: read
site_id: ${terraformSite.id}
Create SsoRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SsoRole(name: string, args: SsoRoleArgs, opts?: CustomResourceOptions);
@overload
def SsoRole(resource_name: str,
args: SsoRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SsoRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
privileges: Optional[Sequence[SsoRolePrivilegeArgs]] = None,
name: Optional[str] = None)
func NewSsoRole(ctx *Context, name string, args SsoRoleArgs, opts ...ResourceOption) (*SsoRole, error)
public SsoRole(string name, SsoRoleArgs args, CustomResourceOptions? opts = null)
public SsoRole(String name, SsoRoleArgs args)
public SsoRole(String name, SsoRoleArgs args, CustomResourceOptions options)
type: junipermist:org:SsoRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SsoRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SsoRoleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SsoRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SsoRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SsoRoleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ssoRoleResource = new JuniperMist.Org.SsoRole("ssoRoleResource", new()
{
OrgId = "string",
Privileges = new[]
{
new JuniperMist.Org.Inputs.SsoRolePrivilegeArgs
{
Role = "string",
Scope = "string",
SiteId = "string",
SitegroupId = "string",
},
},
Name = "string",
});
example, err := org.NewSsoRole(ctx, "ssoRoleResource", &org.SsoRoleArgs{
OrgId: pulumi.String("string"),
Privileges: org.SsoRolePrivilegeArray{
&org.SsoRolePrivilegeArgs{
Role: pulumi.String("string"),
Scope: pulumi.String("string"),
SiteId: pulumi.String("string"),
SitegroupId: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var ssoRoleResource = new SsoRole("ssoRoleResource", SsoRoleArgs.builder()
.orgId("string")
.privileges(SsoRolePrivilegeArgs.builder()
.role("string")
.scope("string")
.siteId("string")
.sitegroupId("string")
.build())
.name("string")
.build());
sso_role_resource = junipermist.org.SsoRole("ssoRoleResource",
org_id="string",
privileges=[{
"role": "string",
"scope": "string",
"site_id": "string",
"sitegroup_id": "string",
}],
name="string")
const ssoRoleResource = new junipermist.org.SsoRole("ssoRoleResource", {
orgId: "string",
privileges: [{
role: "string",
scope: "string",
siteId: "string",
sitegroupId: "string",
}],
name: "string",
});
type: junipermist:org:SsoRole
properties:
name: string
orgId: string
privileges:
- role: string
scope: string
siteId: string
sitegroupId: string
SsoRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SsoRole resource accepts the following input properties:
- Org
Id string - Privileges
[]Sso
Role Privilege Args - Name string
- org
Id String - privileges
List<Sso
Role Privilege> - name String
- org
Id string - privileges
Sso
Role Privilege[] - name string
- org
Id String - privileges List<Property Map>
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the SsoRole resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SsoRole Resource
Get an existing SsoRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SsoRoleState, opts?: CustomResourceOptions): SsoRole
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
privileges: Optional[Sequence[SsoRolePrivilegeArgs]] = None) -> SsoRole
func GetSsoRole(ctx *Context, name string, id IDInput, state *SsoRoleState, opts ...ResourceOption) (*SsoRole, error)
public static SsoRole Get(string name, Input<string> id, SsoRoleState? state, CustomResourceOptions? opts = null)
public static SsoRole get(String name, Output<String> id, SsoRoleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Name string
- Org
Id string - Privileges
[]Sso
Role Privilege Args
- name String
- org
Id String - privileges
List<Sso
Role Privilege>
- name string
- org
Id string - privileges
Sso
Role Privilege[]
- name String
- org
Id String - privileges List<Property Map>
Supporting Types
SsoRolePrivilege, SsoRolePrivilegeArgs
- Role string
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- Scope string
- enum:
org
,site
,sitegroup
- Site
Id string - Required if
scope
==site
- Sitegroup
Id string - Required if
scope
==sitegroup
- Role string
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- Scope string
- enum:
org
,site
,sitegroup
- Site
Id string - Required if
scope
==site
- Sitegroup
Id string - Required if
scope
==sitegroup
- role String
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- scope String
- enum:
org
,site
,sitegroup
- site
Id String - Required if
scope
==site
- sitegroup
Id String - Required if
scope
==sitegroup
- role string
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- scope string
- enum:
org
,site
,sitegroup
- site
Id string - Required if
scope
==site
- sitegroup
Id string - Required if
scope
==sitegroup
- role str
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- scope str
- enum:
org
,site
,sitegroup
- site_
id str - Required if
scope
==site
- sitegroup_
id str - Required if
scope
==sitegroup
- role String
- access permissions. enum:
admin
,helpdesk
,installer
,read
,write
- scope String
- enum:
org
,site
,sitegroup
- site
Id String - Required if
scope
==site
- sitegroup
Id String - Required if
scope
==sitegroup
Import
Using pulumi import
, import mist_org_sso_role
with:
Org PSK can be imported by specifying the org_id and the sso_role_id
$ pulumi import junipermist:org/ssoRole:SsoRole sso_role_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.