ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getServiceKey
Explore with Pulumi AI
Using getServiceKey
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 getServiceKey(args: GetServiceKeyArgs, opts?: InvokeOptions): Promise<GetServiceKeyResult>
function getServiceKeyOutput(args: GetServiceKeyOutputArgs, opts?: InvokeOptions): Output<GetServiceKeyResult>
def get_service_key(id: Optional[str] = None,
name: Optional[str] = None,
service_instance_name: Optional[str] = None,
space_guid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceKeyResult
def get_service_key_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
service_instance_name: Optional[pulumi.Input[str]] = None,
space_guid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceKeyResult]
func LookupServiceKey(ctx *Context, args *LookupServiceKeyArgs, opts ...InvokeOption) (*LookupServiceKeyResult, error)
func LookupServiceKeyOutput(ctx *Context, args *LookupServiceKeyOutputArgs, opts ...InvokeOption) LookupServiceKeyResultOutput
> Note: This function is named LookupServiceKey
in the Go SDK.
public static class GetServiceKey
{
public static Task<GetServiceKeyResult> InvokeAsync(GetServiceKeyArgs args, InvokeOptions? opts = null)
public static Output<GetServiceKeyResult> Invoke(GetServiceKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceKeyResult> getServiceKey(GetServiceKeyArgs args, InvokeOptions options)
public static Output<GetServiceKeyResult> getServiceKey(GetServiceKeyArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getServiceKey:getServiceKey
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Service
Instance stringName - Space
Guid string - Id string
- Name string
- Service
Instance stringName - Space
Guid string - Id string
- name String
- service
Instance StringName - space
Guid String - id String
- name string
- service
Instance stringName - space
Guid string - id string
- name str
- service_
instance_ strname - space_
guid str - id str
- name String
- service
Instance StringName - space
Guid String - id String
getServiceKey Result
The following output properties are available:
- Credentials Dictionary<string, string>
- Id string
- Name string
- Service
Instance stringName - Space
Guid string
- Credentials map[string]string
- Id string
- Name string
- Service
Instance stringName - Space
Guid string
- credentials Map<String,String>
- id String
- name String
- service
Instance StringName - space
Guid String
- credentials {[key: string]: string}
- id string
- name string
- service
Instance stringName - space
Guid string
- credentials Mapping[str, str]
- id str
- name str
- service_
instance_ strname - space_
guid str
- credentials Map<String>
- id String
- name String
- service
Instance StringName - space
Guid String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.