@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
86 lines (85 loc) • 2.27 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ServiceGroup data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up a single service group object by its ID.
* // The ID used here is from the terraform.tfstate file.
* const scmServiceGroupDs = scm.getServiceGroup({
* id: "dc430d61-52ca-44bc-a797-e65123a94134",
* });
* export const serviceGroupDsResult = scmServiceGroupDs;
* ```
*/
export declare function getServiceGroup(args: GetServiceGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceGroupResult>;
/**
* A collection of arguments for invoking getServiceGroup.
*/
export interface GetServiceGroupArgs {
/**
* The UUID of the service group
*/
id: string;
/**
* The name of the service group
*/
name?: string;
}
/**
* A collection of values returned by getServiceGroup.
*/
export interface GetServiceGroupResult {
/**
* The device in which the resource is defined
*/
readonly device: string;
readonly folder: string;
/**
* The UUID of the service group
*/
readonly id: string;
readonly members: string[];
/**
* The name of the service group
*/
readonly name: string;
readonly snippet: string;
readonly tags: string[];
readonly tfid: string;
}
/**
* ServiceGroup data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up a single service group object by its ID.
* // The ID used here is from the terraform.tfstate file.
* const scmServiceGroupDs = scm.getServiceGroup({
* id: "dc430d61-52ca-44bc-a797-e65123a94134",
* });
* export const serviceGroupDsResult = scmServiceGroupDs;
* ```
*/
export declare function getServiceGroupOutput(args: GetServiceGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceGroupResult>;
/**
* A collection of arguments for invoking getServiceGroup.
*/
export interface GetServiceGroupOutputArgs {
/**
* The UUID of the service group
*/
id: pulumi.Input<string>;
/**
* The name of the service group
*/
name?: pulumi.Input<string>;
}