@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
123 lines (122 loc) • 2.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Site data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const singleSiteById = scm.getSite({
* id: "d037fe30-68ae-47ee-9a74-71bc63ac2c10",
* });
* export const singleSiteDetails = singleSiteById;
* ```
*/
export declare function getSite(args: GetSiteArgs, opts?: pulumi.InvokeOptions): Promise<GetSiteResult>;
/**
* A collection of arguments for invoking getSite.
*/
export interface GetSiteArgs {
/**
* The UUID of the site
*/
id: string;
/**
* The name of the site
*/
name?: string;
}
/**
* A collection of values returned by getSite.
*/
export interface GetSiteResult {
/**
* The address in which the site exists
*/
readonly addressLine1: string;
/**
* The address in which the site exists (continued)
*/
readonly addressLine2: string;
/**
* The city in which the site exists
*/
readonly city: string;
/**
* The country in which the site exists
*/
readonly country: string;
/**
* The UUID of the site
*/
readonly id: string;
/**
* The latitude coordinate for the site
*/
readonly latitude: string;
/**
* The license type of the site
*/
readonly licenseType: string;
/**
* The longitude coordinate for the site
*/
readonly longitude: string;
/**
* Members
*/
readonly members: outputs.GetSiteMember[];
/**
* The name of the site
*/
readonly name: string;
/**
* Qos
*/
readonly qos: outputs.GetSiteQos;
/**
* The state in which the site exists
*/
readonly state: string;
readonly tfid: string;
/**
* The site type
*/
readonly type: string;
/**
* The postal code in which the site exists
*/
readonly zipCode: string;
}
/**
* Site data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const singleSiteById = scm.getSite({
* id: "d037fe30-68ae-47ee-9a74-71bc63ac2c10",
* });
* export const singleSiteDetails = singleSiteById;
* ```
*/
export declare function getSiteOutput(args: GetSiteOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSiteResult>;
/**
* A collection of arguments for invoking getSite.
*/
export interface GetSiteOutputArgs {
/**
* The UUID of the site
*/
id: pulumi.Input<string>;
/**
* The name of the site
*/
name?: pulumi.Input<string>;
}