Class AccessGroup
Provides a Cloudflare Access Group resource. Access Groups are used in conjunction with Access Policies to restrict access to a particular resource based on group membership.
Conditions
require, exclude and include arguments share the available
conditions which can be applied. The conditions are:
ip- (Optional) A list of IP addresses or ranges. Example:ip = ["1.2.3.4", "10.0.0.0/2"]email- (Optional) A list of email addresses. Example:email = ["test@example.com"]email_domain- (Optional) A list of email domains. Example:email_domain = ["example.com"]service_token- (Optional) A list of service token ids. Example:service_token = [cloudflare_access_service_token.demo.id]any_valid_service_token- (Optional) Boolean indicating if allow all tokens to be granted. Example:any_valid_service_token = truegroup- (Optional) A list of access group ids. Example:group = [cloudflare_access_group.demo.id]everyone- (Optional) Boolean indicating permitting access for all requests. Example:everyone = truecertificate- (Optional) Whether to use mTLS certificate authentication.common_name- (Optional) Use a certificate common name to authenticate with.gsuite- (Optional) Use GSuite as the authentication mechanism. Example:
# ... other configuration
include {
gsuite {
email = "admins@example.com"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}
github- (Optional) Use a GitHub team as theincludecondition. Example:
# ... other configuration
include {
github {
name = "my-github-team-name"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}
azure- (Optional) Use Azure AD as theincludecondition. Example:
# ... other configuration
include {
azure {
id = "86773093-5feb-48dd-814b-7ccd3676ff50e"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}
okta- (Optional) Use Okta as theincludecondition. Example:
# ... other configuration
include {
okta {
name = "admins"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}
saml- (Optional) Use an external SAML setup as theincludecondition. Example:
# ... other configuration
include {
saml {
attribute_name = "group"
attribute_value = "admins"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class AccessGroup : CustomResource
Constructors
View SourceAccessGroup(String, AccessGroupArgs, CustomResourceOptions)
Create a AccessGroup resource with the given unique name, arguments, and options.
Declaration
public AccessGroup(string name, AccessGroupArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccessGroupArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountId
The ID of the account the group is associated with.
Declaration
public Output<string> AccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Excludes
A series of access conditions, see below for full list.
Declaration
public Output<ImmutableArray<AccessGroupExclude>> Excludes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessGroupExclude>> |
Includes
A series of access conditions, see below for full list.
Declaration
public Output<ImmutableArray<AccessGroupInclude>> Includes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessGroupInclude>> |
Name
Friendly name of the Access Group.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Requires
A series of access conditions, see below for full list.
Declaration
public Output<ImmutableArray<AccessGroupRequire>> Requires { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessGroupRequire>> |
Methods
View SourceGet(String, Input<String>, AccessGroupState, CustomResourceOptions)
Get an existing AccessGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccessGroup Get(string name, Input<string> id, AccessGroupState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccessGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccessGroup |