status
Creates, updates, deletes, gets or lists a status resource.
Overview​
| Name | status |
| Type | Resource |
| Id | sumologic.service_allowlist.status |
Fields​
The following fields are returned by SELECT queries:
- get
The status of service allowlisting for Content and Login.
| Name | Datatype | Description |
|---|---|---|
content_enabled | boolean | Whether service allowlisting is enabled for Content. (wire: contentEnabled) |
login_enabled | boolean | Whether service allowlisting is enabled for Login. (wire: loginEnabled) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | region | Get the status of the service allowlisting functionality for login/API authentication or content sharing for the organization. | |
enable | exec | allowlistType, region | Enable service allowlisting functionality for the organization. The service allowlisting can be for 1. Login: If enabled, access to Sumo Logic is granted only to CIDRs/IP addresses that are allowlisted. 2. Content: If enabled, dashboards can be shared with users connecting from CIDRs/IP addresses that are allowlisted without logging in. | |
disable | exec | allowlistType, region | Disable service allowlisting functionality for login/API authentication or content sharing for the organization. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
allowlistType | string | The type of allowlisting to be disabled. It can be one of: Login, Content, or Both. |
region | string | Sumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT) |
SELECT examples​
- get
Get the status of the service allowlisting functionality for login/API authentication or content sharing for the organization.
SELECT
content_enabled,
login_enabled
FROM sumologic.service_allowlist.status
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- enable
- disable
Enable service allowlisting functionality for the organization. The service allowlisting can be for 1. Login: If enabled, access to Sumo Logic is granted only to CIDRs/IP addresses that are allowlisted. 2. Content: If enabled, dashboards can be shared with users connecting from CIDRs/IP addresses that are allowlisted without logging in.
EXEC sumologic.service_allowlist.status.enable
@allowlistType='{{ allowlistType }}' --required,
@region='{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
;
Disable service allowlisting functionality for login/API authentication or content sharing for the organization.
EXEC sumologic.service_allowlist.status.disable
@allowlistType='{{ allowlistType }}' --required,
@region='{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
;