Skip to main content

status

Creates, updates, deletes, gets or lists a status resource.

Overview​

Namestatus
TypeResource
Idsumologic.service_allowlist.status

Fields​

The following fields are returned by SELECT queries:

The status of service allowlisting for Content and Login.

NameDatatypeDescription
content_enabledbooleanWhether service allowlisting is enabled for Content. (wire: contentEnabled)
login_enabledbooleanWhether service allowlisting is enabled for Login. (wire: loginEnabled)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregionGet the status of the service allowlisting functionality for login/API authentication or content sharing for the organization.
enableexecallowlistType, regionEnable 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.
disableexecallowlistType, regionDisable 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.

NameDatatypeDescription
allowlistTypestringThe type of allowlisting to be disabled. It can be one of: Login, Content, or Both.
regionstringSumo 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 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 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
;