google-native.apigeeregistry/v1.getArtifact
Returns a specified artifact.
Using getArtifact
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 getArtifact(args: GetArtifactArgs, opts?: InvokeOptions): Promise<GetArtifactResult>
function getArtifactOutput(args: GetArtifactOutputArgs, opts?: InvokeOptions): Output<GetArtifactResult>
def get_artifact(api_id: Optional[str] = None,
artifact_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
spec_id: Optional[str] = None,
version_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetArtifactResult
def get_artifact_output(api_id: Optional[pulumi.Input[str]] = None,
artifact_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
spec_id: Optional[pulumi.Input[str]] = None,
version_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetArtifactResult]
func LookupArtifact(ctx *Context, args *LookupArtifactArgs, opts ...InvokeOption) (*LookupArtifactResult, error)
func LookupArtifactOutput(ctx *Context, args *LookupArtifactOutputArgs, opts ...InvokeOption) LookupArtifactResultOutput
> Note: This function is named LookupArtifact
in the Go SDK.
public static class GetArtifact
{
public static Task<GetArtifactResult> InvokeAsync(GetArtifactArgs args, InvokeOptions? opts = null)
public static Output<GetArtifactResult> Invoke(GetArtifactInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetArtifactResult> getArtifact(GetArtifactArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:apigeeregistry/v1:getArtifact
arguments:
# arguments dictionary
The following arguments are supported:
- api_
id str - artifact_
id str - location str
- spec_
id str - version_
id str - project str
getArtifact Result
The following output properties are available:
- Contents string
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- Create
Time string Creation timestamp.
- Hash string
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- Mime
Type string A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- Name string
Resource name.
- Size
Bytes int The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- Update
Time string Last update timestamp.
- Contents string
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- Create
Time string Creation timestamp.
- Hash string
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- Mime
Type string A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- Name string
Resource name.
- Size
Bytes int The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- Update
Time string Last update timestamp.
- contents String
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- create
Time String Creation timestamp.
- hash String
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- mime
Type String A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name String
Resource name.
- size
Bytes Integer The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update
Time String Last update timestamp.
- contents string
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- create
Time string Creation timestamp.
- hash string
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- mime
Type string A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name string
Resource name.
- size
Bytes number The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update
Time string Last update timestamp.
- contents str
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- create_
time str Creation timestamp.
- hash str
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- mime_
type str A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name str
Resource name.
- size_
bytes int The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update_
time str Last update timestamp.
- contents String
Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- create
Time String Creation timestamp.
- hash String
A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- mime
Type String A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name String
Resource name.
- size
Bytes Number The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update
Time String Last update timestamp.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0