Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudsupport/v2.getCase
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Retrieve a case. EXAMPLES: cURL: shell case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case"
Python: python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.cases().get( name="projects/some-project/cases/43595344", ) print(request.execute())
Using getCase
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 getCase(args: GetCaseArgs, opts?: InvokeOptions): Promise<GetCaseResult>
function getCaseOutput(args: GetCaseOutputArgs, opts?: InvokeOptions): Output<GetCaseResult>
def get_case(case_id: Optional[str] = None,
v2_id: Optional[str] = None,
v2_id1: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCaseResult
def get_case_output(case_id: Optional[pulumi.Input[str]] = None,
v2_id: Optional[pulumi.Input[str]] = None,
v2_id1: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCaseResult]
func LookupCase(ctx *Context, args *LookupCaseArgs, opts ...InvokeOption) (*LookupCaseResult, error)
func LookupCaseOutput(ctx *Context, args *LookupCaseOutputArgs, opts ...InvokeOption) LookupCaseResultOutput
> Note: This function is named LookupCase
in the Go SDK.
public static class GetCase
{
public static Task<GetCaseResult> InvokeAsync(GetCaseArgs args, InvokeOptions? opts = null)
public static Output<GetCaseResult> Invoke(GetCaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCaseResult> getCase(GetCaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudsupport/v2:getCase
arguments:
# arguments dictionary
The following arguments are supported:
getCase Result
The following output properties are available:
- Classification
Pulumi.
Google Native. Cloud Support. V2. Outputs. Case Classification Response - The issue classification applicable to this case.
- Contact
Email string - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- Create
Time string - The time this case was created.
- Creator
Pulumi.
Google Native. Cloud Support. V2. Outputs. Actor Response - The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- Description string
- A broad description of the issue.
- Display
Name string - The short summary of the issue reported in this case.
- Escalated bool
- Whether the case is currently escalated.
- Language
Code string - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - Name string
- The resource name for the case.
- Priority string
- The priority of this case.
- State string
- The current status of the support case.
- Subscriber
Email List<string>Addresses - The email addresses to receive updates on this case.
- Test
Case bool - Whether this case was created for internal API testing and should not be acted on by the support team.
- Time
Zone string - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- Update
Time string - The time this case was last updated.
- Classification
Case
Classification Response - The issue classification applicable to this case.
- Contact
Email string - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- Create
Time string - The time this case was created.
- Creator
Actor
Response - The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- Description string
- A broad description of the issue.
- Display
Name string - The short summary of the issue reported in this case.
- Escalated bool
- Whether the case is currently escalated.
- Language
Code string - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - Name string
- The resource name for the case.
- Priority string
- The priority of this case.
- State string
- The current status of the support case.
- Subscriber
Email []stringAddresses - The email addresses to receive updates on this case.
- Test
Case bool - Whether this case was created for internal API testing and should not be acted on by the support team.
- Time
Zone string - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- Update
Time string - The time this case was last updated.
- classification
Case
Classification Response - The issue classification applicable to this case.
- contact
Email String - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- create
Time String - The time this case was created.
- creator
Actor
Response - The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- description String
- A broad description of the issue.
- display
Name String - The short summary of the issue reported in this case.
- escalated Boolean
- Whether the case is currently escalated.
- language
Code String - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - name String
- The resource name for the case.
- priority String
- The priority of this case.
- state String
- The current status of the support case.
- subscriber
Email List<String>Addresses - The email addresses to receive updates on this case.
- test
Case Boolean - Whether this case was created for internal API testing and should not be acted on by the support team.
- time
Zone String - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- update
Time String - The time this case was last updated.
- classification
Case
Classification Response - The issue classification applicable to this case.
- contact
Email string - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- create
Time string - The time this case was created.
- creator
Actor
Response - The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- description string
- A broad description of the issue.
- display
Name string - The short summary of the issue reported in this case.
- escalated boolean
- Whether the case is currently escalated.
- language
Code string - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - name string
- The resource name for the case.
- priority string
- The priority of this case.
- state string
- The current status of the support case.
- subscriber
Email string[]Addresses - The email addresses to receive updates on this case.
- test
Case boolean - Whether this case was created for internal API testing and should not be acted on by the support team.
- time
Zone string - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- update
Time string - The time this case was last updated.
- classification
Case
Classification Response - The issue classification applicable to this case.
- contact_
email str - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- create_
time str - The time this case was created.
- creator
Actor
Response - The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- description str
- A broad description of the issue.
- display_
name str - The short summary of the issue reported in this case.
- escalated bool
- Whether the case is currently escalated.
- language_
code str - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - name str
- The resource name for the case.
- priority str
- The priority of this case.
- state str
- The current status of the support case.
- subscriber_
email_ Sequence[str]addresses - The email addresses to receive updates on this case.
- test_
case bool - Whether this case was created for internal API testing and should not be acted on by the support team.
- time_
zone str - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- update_
time str - The time this case was last updated.
- classification Property Map
- The issue classification applicable to this case.
- contact
Email String - A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
- create
Time String - The time this case was created.
- creator Property Map
- The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
- description String
- A broad description of the issue.
- display
Name String - The short summary of the issue reported in this case.
- escalated Boolean
- Whether the case is currently escalated.
- language
Code String - The language the user has requested to receive support in. This should be a BCP 47 language code (e.g.,
"en"
,"zh-CN"
,"zh-TW"
,"ja"
,"ko"
). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours - name String
- The resource name for the case.
- priority String
- The priority of this case.
- state String
- The current status of the support case.
- subscriber
Email List<String>Addresses - The email addresses to receive updates on this case.
- test
Case Boolean - Whether this case was created for internal API testing and should not be acted on by the support team.
- time
Zone String - The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
- update
Time String - The time this case was last updated.
Supporting Types
ActorResponse
- Display
Name string - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- Email string
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- Google
Support bool - Whether the actor is a Google support actor.
- Display
Name string - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- Email string
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- Google
Support bool - Whether the actor is a Google support actor.
- display
Name String - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- email String
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- google
Support Boolean - Whether the actor is a Google support actor.
- display
Name string - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- email string
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- google
Support boolean - Whether the actor is a Google support actor.
- display_
name str - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- email str
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- google_
support bool - Whether the actor is a Google support actor.
- display
Name String - The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
- email String
- The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
- google
Support Boolean - Whether the actor is a Google support actor.
CaseClassificationResponse
- Display
Name string - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
- Display
Name string - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
- display
Name String - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
- display
Name string - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
- display_
name str - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
- display
Name String - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the
CaseClassification.id
field.
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.