Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.workflows/v1.getWorkflow
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details of a single workflow.
Using getWorkflow
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkflow(args: GetWorkflowArgs, opts?: InvokeOptions): Promise<GetWorkflowResult>
function getWorkflowOutput(args: GetWorkflowOutputArgs, opts?: InvokeOptions): Output<GetWorkflowResult>
def get_workflow(location: Optional[str] = None,
project: Optional[str] = None,
revision_id: Optional[str] = None,
workflow_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkflowResult
def get_workflow_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
revision_id: Optional[pulumi.Input[str]] = None,
workflow_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowResult]
func LookupWorkflow(ctx *Context, args *LookupWorkflowArgs, opts ...InvokeOption) (*LookupWorkflowResult, error)
func LookupWorkflowOutput(ctx *Context, args *LookupWorkflowOutputArgs, opts ...InvokeOption) LookupWorkflowResultOutput
> Note: This function is named LookupWorkflow
in the Go SDK.
public static class GetWorkflow
{
public static Task<GetWorkflowResult> InvokeAsync(GetWorkflowArgs args, InvokeOptions? opts = null)
public static Output<GetWorkflowResult> Invoke(GetWorkflowInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkflowResult> getWorkflow(GetWorkflowArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:workflows/v1:getWorkflow
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Workflow
Id string - Project string
- Revision
Id string
- Location string
- Workflow
Id string - Project string
- Revision
Id string
- location String
- workflow
Id String - project String
- revision
Id String
- location string
- workflow
Id string - project string
- revision
Id string
- location str
- workflow_
id str - project str
- revision_
id str
- location String
- workflow
Id String - project String
- revision
Id String
getWorkflow Result
The following output properties are available:
- Call
Log stringLevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- Create
Time string - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- Crypto
Key stringName - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - Description string
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- Labels Dictionary<string, string>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- Name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- Revision
Create stringTime - The timestamp for the latest revision of the workflow's creation.
- Revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- Service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - Source
Contents string - Workflow code to be executed. The size limit is 128KB.
- State string
- State of the workflow deployment.
- State
Error Pulumi.Google Native. Workflows. V1. Outputs. State Error Response - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- Update
Time string - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- User
Env Dictionary<string, string>Vars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
- Call
Log stringLevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- Create
Time string - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- Crypto
Key stringName - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - Description string
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- Labels map[string]string
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- Name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- Revision
Create stringTime - The timestamp for the latest revision of the workflow's creation.
- Revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- Service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - Source
Contents string - Workflow code to be executed. The size limit is 128KB.
- State string
- State of the workflow deployment.
- State
Error StateError Response - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- Update
Time string - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- User
Env map[string]stringVars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
- call
Log StringLevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- create
Time String - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- crypto
Key StringName - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - description String
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- labels Map<String,String>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- name String
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- revision
Create StringTime - The timestamp for the latest revision of the workflow's creation.
- revision
Id String - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- service
Account String - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents String - Workflow code to be executed. The size limit is 128KB.
- state String
- State of the workflow deployment.
- state
Error StateError Response - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- update
Time String - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- user
Env Map<String,String>Vars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
- call
Log stringLevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- create
Time string - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- crypto
Key stringName - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - description string
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- labels {[key: string]: string}
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- revision
Create stringTime - The timestamp for the latest revision of the workflow's creation.
- revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents string - Workflow code to be executed. The size limit is 128KB.
- state string
- State of the workflow deployment.
- state
Error StateError Response - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- update
Time string - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- user
Env {[key: string]: string}Vars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
- call_
log_ strlevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- create_
time str - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- crypto_
key_ strname - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - description str
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- labels Mapping[str, str]
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- name str
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- revision_
create_ strtime - The timestamp for the latest revision of the workflow's creation.
- revision_
id str - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- service_
account str - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source_
contents str - Workflow code to be executed. The size limit is 128KB.
- state str
- State of the workflow deployment.
- state_
error StateError Response - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- update_
time str - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- user_
env_ Mapping[str, str]vars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
- call
Log StringLevel - Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
- create
Time String - The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
- crypto
Key StringName - Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. - description String
- Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
- labels Map<String>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
- name String
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
- revision
Create StringTime - The timestamp for the latest revision of the workflow's creation.
- revision
Id String - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
- service
Account String - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents String - Workflow code to be executed. The size limit is 128KB.
- state String
- State of the workflow deployment.
- state
Error Property Map - Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
- update
Time String - The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
- user
Env Map<String>Vars - Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
Supporting Types
StateErrorResponse
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi