Create role

Create a role in Snowflake.

Options

Field Definition Type Required

If Role Exists

Choose how to handle role creation when a role with the same name exists already.

  • Throw Error: Throws an error if you try to create a resource that exists.

  • Replace: Automatically replaces the existing resource with the current one.

  • Ignore: Creates the role if it doesn't exist, otherwise returns 200, indicating it exists.

Dropdown TRUE

Input

Field Definition Type Required

Role

Name

The name of the role.

Role names are case-sensitive. For example, TESTROLE and testrole are treated as two different roles.

Text TRUE

Comment

A comment for the role.

Text FALSE

Output

Field Definition Type

Result

Status Code

The status code returned by the server.

Number

Status

The status message returned by the server.

Text